Lines Matching defs:lineptr
113 char line[512], *lineptr;
150 lineptr = line;
151 if (*lineptr == '/')
153 lineptr += strspn(lineptr, " \n\t");
154 len = strcspn(lineptr, " \n\t");
155 lineptr[len] = 0;
156 if (!strlen(lineptr))
158 if (lineptr[strlen(lineptr) - 1] == '-') { /* it's a prefix */
163 lineptr[strlen(lineptr) - 1] = 0;
164 prefixtable[prefixcount].prefixname = dupstr(lineptr);
166 if (!strcmp(prefixtable[i].prefixname, lineptr)) {
168 lineptr, linenum);
171 lineptr += len + 1;
172 lineptr += strspn(lineptr, " \n\t");
173 len = strcspn(lineptr, "\n\t");
179 lineptr[len] = 0;
180 prefixtable[prefixcount++].prefixval = dupstr(lineptr);
187 unittable[unitcount].uname = dupstr(lineptr);
189 if (!strcmp(unittable[i].uname, lineptr)) {
191 lineptr, linenum);
194 lineptr += len + 1;
195 lineptr += strspn(lineptr, " \n\t");
196 if (!strlen(lineptr)) {
201 len = strcspn(lineptr, "\n\t");
202 lineptr[len] = 0;
203 unittable[unitcount++].uval = dupstr(lineptr);