Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(87)

Delta Between Two Patch Sets: src/cmd/cc/cc.h

Issue 198044: code review 198044: Avoid overflow of include and define buffers in 5a/6a/8... (Closed)
Left Patch Set: code review 198044: Avoid overflow of include and define buffers in 5a/6a/8... Created 15 years, 1 month ago
Right Patch Set: code review 198044: Avoid overflow of include and define buffers in 5a/6a/8... Created 15 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/cmd/8a/lex.c ('k') | src/cmd/cc/lex.c » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Inferno utils/cc/cc.h 1 // Inferno utils/cc/cc.h
2 // http://code.google.com/p/inferno-os/source/browse/utils/cc/cc.h 2 // http://code.google.com/p/inferno-os/source/browse/utils/cc/cc.h
3 // 3 //
4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved. 4 // Copyright © 1994-1999 Lucent Technologies Inc. All rights reserved.
5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net) 5 // Portions Copyright © 1995-1997 C H Forsyth (forsyth@terzarima.net)
6 // Portions Copyright © 1997-1999 Vita Nuova Limited 6 // Portions Copyright © 1997-1999 Vita Nuova Limited
7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov a.com) 7 // Portions Copyright © 2000-2007 Vita Nuova Holdings Limited (www.vitanuov a.com)
8 // Portions Copyright © 2004,2006 Bruce Ellis 8 // Portions Copyright © 2004,2006 Bruce Ellis
9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net) 9 // Portions Copyright © 2005-2007 C H Forsyth (forsyth@terzarima.net)
10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others 10 // Revisions Copyright © 2000-2007 Lucent Technologies Inc. and others
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 #define NHUNK 50000L 61 #define NHUNK 50000L
62 #define BUFSIZ 8192 62 #define BUFSIZ 8192
63 #define NSYMB 500 63 #define NSYMB 500
64 #define NHASH 1024 64 #define NHASH 1024
65 #define STRINGSZ 200 65 #define STRINGSZ 200
66 #define HISTSZ 20 66 #define HISTSZ 20
67 #define YYMAXDEPTH 500 67 #define YYMAXDEPTH 500
68 #define NTERM 10 68 #define NTERM 10
69 #define MAXALIGN 7 69 #define MAXALIGN 7
70 #define NALLOC 8
71 70
72 #define SIGN(n) ((uvlong)1<<(n-1)) 71 #define SIGN(n) ((uvlong)1<<(n-1))
73 #define MASK(n) (SIGN(n)|(SIGN(n)-1)) 72 #define MASK(n) (SIGN(n)|(SIGN(n)-1))
74 73
75 #define BITS 5 74 #define BITS 5
76 #define NVAR (BITS*sizeof(uint32)*8) 75 #define NVAR (BITS*sizeof(uint32)*8)
77 struct Bits 76 struct Bits
78 { 77 {
79 uint32 b[BITS]; 78 uint32 b[BITS];
80 }; 79 };
(...skipping 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
810 enum 809 enum
811 { 810 {
812 Plan9 = 1<<0, 811 Plan9 = 1<<0,
813 Unix = 1<<1, 812 Unix = 1<<1,
814 Windows = 1<<2, 813 Windows = 1<<2,
815 }; 814 };
816 int pathchar(void); 815 int pathchar(void);
817 int systemtype(int); 816 int systemtype(int);
818 void* alloc(int32 n); 817 void* alloc(int32 n);
819 void* allocn(void*, int32, int32); 818 void* allocn(void*, int32, int32);
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b