Mercurial > hg-old > index.cgi
comparison lwlink/trunk/src/readfiles.c @ 126:269ef87192ad
Fixed stupid logic problem reading input files
author | lost |
---|---|
date | Fri, 23 Jan 2009 05:10:33 +0000 |
parents | 4ac96c697ef0 |
children | 44dd2f2e42a7 |
comparison
equal
deleted
inserted
replaced
125:f9bfc2986023 | 126:269ef87192ad |
---|---|
114 section_t *s; | 114 section_t *s; |
115 int val; | 115 int val; |
116 symtab_t *se; | 116 symtab_t *se; |
117 | 117 |
118 // start reading *after* the magic number | 118 // start reading *after* the magic number |
119 cc = 7; | 119 cc = 8; |
120 | 120 |
121 // init data | 121 // init data |
122 fn -> sections = NULL; | 122 fn -> sections = NULL; |
123 fn -> nsections = 0; | 123 fn -> nsections = 0; |
124 | 124 |
125 while (1) | 125 while (1) |
126 { | 126 { |
127 NEXTBYTE(); | 127 // NEXTBYTE(); |
128 // bail out if no more sections | 128 // bail out if no more sections |
129 if (!(CURBYTE())) | 129 if (!(CURBYTE())) |
130 break; | 130 break; |
131 | 131 |
132 fp = CURSTR(); | 132 fp = CURSTR(); |