History

20080626-1728

Charles.Forsyth committed 18 years ago

Commit af15ef91 parent 4dea1762 files · +10 −10Browse files

Unified · Split

2 files
  1. include/version.h +1 −1
  2. utils/libmach/sym.c +9 −9
include/version.h+1−1
@@ -1 +1 @@
1−#define VERSION "Fourth Edition (20080623)"
1+#define VERSION "Fourth Edition (20080626)"
utils/libmach/sym.c+9−9
@@ -43,7 +43,7 @@ static int debug = 0; · 42 unmodified lines
4343
4444 static Sym **autos; /* Base of auto variables */
4545 static File *files; /* Base of file arena */
46−static int fmax; /* largest file path index */
46+static int fmaxp; /* largest file path index */
4747 static Sym **fnames; /* file names path component table */
4848 static Sym **globals; /* globals by addr table */
4949 static Hist *hist; /* base of history stack */
@@ -144,8 +144,8 @@ syminit(int fd, Fhdr *fp) · 94 unmodified lines
144144 p->type = 'm';
145145 nauto++;
146146 }
147− else if(p->value > fmax)
148− fmax = p->value; /* highest path index */
147+ else if(p->value > fmaxp)
148+ fmaxp = p->value; /* highest path index */
149149 break;
150150 case 'a':
151151 case 'p':
@@ -164,7 +164,7 @@ syminit(int fd, Fhdr *fp) · 12 unmodified lines
164164 }
165165 }
166166 if (debug)
167− fprint(2,"NG: %ld NT: %ld NF: %d\n", nglob, ntxt, fmax);
167+ fprint(2,"NG: %ld NT: %ld NF: %d\n", nglob, ntxt, fmaxp);
168168 if (fp->sppcsz) { /* pc-sp offset table */
169169 spoff = (uchar *)malloc(fp->sppcsz);
170170 if(spoff == 0) {
@@ -285,7 +285,7 @@ cleansyms(void) · 114 unmodified lines
285285 if(fnames)
286286 free(fnames);
287287 fnames = 0;
288− fmax = 0;
288+ fmaxp = 0;
289289
290290 if(files)
291291 free(files);
@@ -373,13 +373,13 @@ buildtbls(void) · 81 unmodified lines
373373 return 0;
374374 }
375375 }
376− fmax++;
377− fnames = malloc(fmax*sizeof(*fnames));
376+ fmaxp++;
377+ fnames = malloc(fmaxp*sizeof(*fnames));
378378 if (!fnames) {
379379 werrstr("can't malloc file name table");
380380 return 0;
381381 }
382− memset(fnames, 0, fmax*sizeof(*fnames));
382+ memset(fnames, 0, fmaxp*sizeof(*fnames));
383383 files = malloc(nfiles*sizeof(*files));
384384 if(!files) {
385385 werrstr("can't malloc file table");
@@ -858,7 +858,7 @@ pathcomp(char *s, int n) · 472 unmodified lines
858858 {
859859 int i;
860860
861− for(i = 0; i <= fmax; i++)
861+ for(i = 0; i <= fmaxp; i++)
862862 if(fnames[i] && strncmp(s, fnames[i]->name, n) == 0 && fnames[i]->name[n] == 0)
863863 return i;
864864 return -1;