comparison src/readfiles.c @ 308:ecc092adc0be

Fixed stupid logic problem reading input files
author lost
date Fri, 23 Jan 2009 05:10:33 +0000
parents be1abc4ac114
children 34203598be6d
comparison
equal deleted inserted replaced
307:87c4e65074f0 308:ecc092adc0be
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();