Lines Matching +defs:template +defs:c

27 /*	Copyright (c) 1988 AT&T	*/
52 #define unput(c) (*yysptr++ = (c))
71 static BOOL classdef; /* c++ class definition */
95 static BOOL template; /* function template */
96 static int templateparens; /* function template outer parentheses count */
307 /* if the end of a function template */
310 template = NO;
376 cesudeftoken = 'c';
444 if (template == NO && typedefdef == NO) {
446 template = YES;
483 char c, *s = yytext + first - 1;
485 while (--s >= yytext && (c = *s) != ';' &&
486 c != '{') {
487 if (!isspace(c) && !isalpha(c)) {
516 template == NO && oldtype == NO) {
530 int c;
534 while ((c = input()) != LEXEOF) {
535 if (c == '\n') {
536 unput(c);
580 template == YES) {
583 * template
586 template = NO;
646 int c, i;
660 while ((c = input()) != LEXEOF) {
661 if (c == '\n') {
662 unput(c);
711 int c;
713 while ((c = input()) != LEXEOF) {
714 if (c == '"') {
720 if (c == '\n') {
762 classdef = NO; /* c++ class definition */
781 template = NO; /* function template */
782 templateparens = -1; /* function template outer parentheses count */
824 int c, lastc;
827 if ((c = getc(yyin)) == '*') { /* C comment */
829 while ((c = getc(yyin)) != EOF &&
830 (c != '/' || lastc != '*')) { /* fewer '/'s */
831 if (c == '\n') {
834 lastc = c;
837 if ((c = getc(yyin)) == '_' || isalnum(c)) {
838 (void) ungetc(c, yyin);
839 c = ' ';
842 } else if (c == '/') { /* C++ comment */
843 while ((c = getc(yyin)) != EOF && c != '\n') {
848 (void) ungetc(c, yyin);
849 c = '/';
854 } while (c == '/');
855 return (c);
861 char c;
864 while ((c = yytext[yyleng++] = noncommentinput()) != terminator) {
865 switch (c) {
885 unput(c);
894 if (!isprint(c)) {
903 while ((c = noncommentinput()) != LEXEOF) {
904 if (c == terminator) {
905 unput(c);
907 } else if (c == '\n') {
954 * FUNCEND tokens, which will break code in find.c which