Lines Matching refs:SubString
72 char *SubString; in AsRemoveStatement() local
79 SubString = Buffer; in AsRemoveStatement()
81 while (SubString) in AsRemoveStatement()
83 SubString = strstr (SubBuffer, Keyword); in AsRemoveStatement()
85 if (SubString) in AsRemoveStatement()
87 SubBuffer = SubString; in AsRemoveStatement()
90 (!AsMatchExactWord (SubString, KeywordLength))) in AsRemoveStatement()
98 while (*SubString != '\n') in AsRemoveStatement()
100 SubString--; in AsRemoveStatement()
102 SubString++; in AsRemoveStatement()
129 SubBuffer = AsRemoveData (SubString, SubBuffer); in AsRemoveStatement()
149 char *SubString; in AsRemoveConditionalCompile() local
160 SubString = Buffer; in AsRemoveConditionalCompile()
162 while (SubString) in AsRemoveConditionalCompile()
164 SubBuffer = strstr (SubString, Keyword); in AsRemoveConditionalCompile()
180 Comment = strstr (SubString, AS_START_IGNORE); in AsRemoveConditionalCompile()
186 SubString = strstr (Comment, AS_STOP_IGNORE); in AsRemoveConditionalCompile()
187 if (!SubString) in AsRemoveConditionalCompile()
192 SubString += 3; in AsRemoveConditionalCompile()
198 Comment = strstr (SubString, "/*"); in AsRemoveConditionalCompile()
203 SubString = strstr (Comment, "*/"); in AsRemoveConditionalCompile()
204 if (!SubString) in AsRemoveConditionalCompile()
209 SubString += 2; in AsRemoveConditionalCompile()
213 SubString = SubBuffer; in AsRemoveConditionalCompile()
214 if (!AsMatchExactWord (SubString, KeywordLength)) in AsRemoveConditionalCompile()
216 SubString++; in AsRemoveConditionalCompile()
222 while (*SubString != '\n' && (SubString > Buffer)) in AsRemoveConditionalCompile()
224 SubString--; in AsRemoveConditionalCompile()
227 SubString++; in AsRemoveConditionalCompile()
231 IfPtr = strstr (SubString, "#if"); in AsRemoveConditionalCompile()
241 SubString = SubBuffer + strlen (Keyword); in AsRemoveConditionalCompile()
270 AsRemoveData (SubString, SubBuffer); in AsRemoveConditionalCompile()
274 EndifPtr = strstr (SubString, "#endif"); in AsRemoveConditionalCompile()
282 SubString = EndifPtr; in AsRemoveConditionalCompile()
296 SubBuffer = AsRemoveData (SubString, SubBuffer); in AsRemoveConditionalCompile()
321 char *SubString; variable
327 SubString = Buffer;
329 while (SubString)
331 SubString = strstr (SubBuffer, Keyword);
333 if (SubString)
335 SubBuffer = SubString;
339 while (*SubString != '(')
341 SubString++;
343 SubString++;
347 SubString = AsRemoveData (SubBuffer, SubString);
350 while (*SubString)
352 if (*SubString == '(')
356 else if (*SubString == ')')
361 SubString++;
371 SubBuffer = AsRemoveData (SubString-1, SubString);
391 char *SubString; in AsRemoveLine() local
396 SubString = Buffer; in AsRemoveLine()
398 while (SubString) in AsRemoveLine()
400 SubString = strstr (SubBuffer, Keyword); in AsRemoveLine()
402 if (SubString) in AsRemoveLine()
404 SubBuffer = SubString; in AsRemoveLine()
408 while (*SubString != '\n') in AsRemoveLine()
410 SubString--; in AsRemoveLine()
412 SubString++; in AsRemoveLine()
424 SubBuffer = AsRemoveData (SubString, SubBuffer); in AsRemoveLine()
443 char *SubString; in AsReduceTypedefs() local
449 SubString = Buffer; in AsReduceTypedefs()
451 while (SubString) in AsReduceTypedefs()
453 SubString = strstr (SubBuffer, Keyword); in AsReduceTypedefs()
455 if (SubString) in AsReduceTypedefs()
459 SubBuffer = SubString + strlen ("typedef") + 1; in AsReduceTypedefs()
460 SubBuffer = AsRemoveData (SubString, SubBuffer); in AsReduceTypedefs()
464 while (*SubString != '{') in AsReduceTypedefs()
466 SubString++; in AsReduceTypedefs()
468 SubString++; in AsReduceTypedefs()
473 while (*SubString) in AsReduceTypedefs()
475 if (*SubString == '{') in AsReduceTypedefs()
479 else if (*SubString == '}') in AsReduceTypedefs()
484 SubString++; in AsReduceTypedefs()
494 if (!strncmp (SubString - 3, "\n\n", 2)) in AsReduceTypedefs()
496 *(SubString -2) = '}'; in AsReduceTypedefs()
497 SubString--; in AsReduceTypedefs()
502 SubBuffer = AsSkipUntilChar (SubString, ';'); in AsReduceTypedefs()
506 SubBuffer = AsRemoveData (SubString, SubBuffer); in AsReduceTypedefs()
642 char *SubString; in AsCleanupSpecialMacro() local
650 SubString = Buffer; in AsCleanupSpecialMacro()
652 while (SubString) in AsCleanupSpecialMacro()
654 SubString = strstr (SubBuffer, Keyword); in AsCleanupSpecialMacro()
656 if (SubString) in AsCleanupSpecialMacro()
660 while (*SubString != '(') in AsCleanupSpecialMacro()
662 SubString++; in AsCleanupSpecialMacro()
665 SubString++; in AsCleanupSpecialMacro()
668 while (*SubString) in AsCleanupSpecialMacro()
670 if (*SubString == '(') in AsCleanupSpecialMacro()
674 else if (*SubString == ')') in AsCleanupSpecialMacro()
679 SubString++; in AsCleanupSpecialMacro()
692 while (!NewLine && *SubString) in AsCleanupSpecialMacro()
694 if (*SubString == '\n' && *(SubString - 1) != '\\') in AsCleanupSpecialMacro()
699 SubString++; in AsCleanupSpecialMacro()
704 if (*SubString == '#' || *SubString == '\n') in AsCleanupSpecialMacro()
709 SubBuffer = SubString; in AsCleanupSpecialMacro()
713 while (*SubString == ' ') in AsCleanupSpecialMacro()
715 SubString++; in AsCleanupSpecialMacro()
720 if (*SubString == '#' || *SubString == '\n') in AsCleanupSpecialMacro()
727 if (*SubString == '/' || *SubString == '*') in AsCleanupSpecialMacro()
729 CommentEnd = strstr (SubString, "*/"); in AsCleanupSpecialMacro()
732 SubString = CommentEnd + 2; in AsCleanupSpecialMacro()
737 SubString = AsRemoveData (SubBuffer, SubString); in AsCleanupSpecialMacro()