Lines Matching refs:filename

264   char *filename;          /* Name of the input file */
676 ErrorMsg(lemp->filename,0,
694 ErrorMsg(lemp->filename,0,
955 ErrorMsg(lemp->filename,rp->ruleline,"This rule can not be reduced.\n");
1161 ErrorMsg(lemp->filename,rp->line,"Nonterminal \"%s\" has no rules.",
1266 void ErrorMsg(const char *filename, int lineno, const char *format, ...){
1278 sprintf(prefix,"%.*s:%d: ",PREFIXLIMIT-10,filename,lineno);
1280 sprintf(prefix,"%.*s: ",PREFIXLIMIT-10,filename);
1349 fprintf(stderr,"Exactly one filename argument is required.\n");
1359 lem.filename = OptArg(0);
1860 char *filename; /* Name of the input file */
1909 printf("%s:%d: Token=[%s] state=%d\n",psp->filename,psp->tokenlineno,
1929 ErrorMsg(psp->filename,psp->tokenlineno,
1934 ErrorMsg(psp->filename,psp->tokenlineno,
1945 ErrorMsg(psp->filename,psp->tokenlineno,
1953 ErrorMsg(psp->filename,psp->tokenlineno,
1957 ErrorMsg(psp->filename,psp->tokenlineno,
1961 ErrorMsg(psp->filename,psp->tokenlineno,
1972 ErrorMsg(psp->filename,psp->tokenlineno,
1984 ErrorMsg(psp->filename,psp->tokenlineno,
1996 ErrorMsg(psp->filename,psp->tokenlineno,
2007 ErrorMsg(psp->filename,psp->tokenlineno,
2017 ErrorMsg(psp->filename,psp->tokenlineno,
2030 ErrorMsg(psp->filename,psp->tokenlineno,
2063 ErrorMsg(psp->filename,psp->tokenlineno,
2076 ErrorMsg(psp->filename,psp->tokenlineno,
2087 ErrorMsg(psp->filename,psp->tokenlineno,
2098 ErrorMsg(psp->filename,psp->tokenlineno,
2168 ErrorMsg(psp->filename,psp->tokenlineno,
2174 ErrorMsg(psp->filename,psp->tokenlineno,
2182 ErrorMsg(psp->filename,psp->tokenlineno,
2195 ErrorMsg(psp->filename,psp->tokenlineno,
2213 ErrorMsg(psp->filename,psp->tokenlineno,
2221 ErrorMsg(psp->filename,psp->tokenlineno,
2229 ErrorMsg(psp->filename,psp->tokenlineno,
2240 ErrorMsg(psp->filename,psp->tokenlineno,
2250 ErrorMsg(psp->filename, psp->tokenlineno,
2258 ErrorMsg(psp->filename, psp->tokenlineno,
2295 ps.filename = gp->filename;
2300 fp = fopen(ps.filename,"rb");
2302 ErrorMsg(ps.filename,0,"Can't open this file for reading.");
2311 ErrorMsg(ps.filename,0,"Can't allocate %d of memory to hold this file.",
2317 ErrorMsg(ps.filename,0,"Can't read in all %d bytes of this file.",
2354 ErrorMsg(ps.filename,startline,
2393 ErrorMsg(ps.filename,ps.tokenlineno,
2492 /* Generate a filename with the given suffix. Space to hold the
2503 name = malloc( strlen(lemp->filename) + strlen(suffix) + 5 );
2505 fprintf(stderr,"Can't allocate space for a filename.\n");
2508 strcpy(name,lemp->filename);
2544 printf("// Reprint of input file \"%s\".\n// Symbols:\n",lemp->filename);
2818 cp = strrchr(lemp->filename,'.');
2820 sprintf(buf,"%.*s.lt",(int)(cp-lemp->filename),lemp->filename);
2822 sprintf(buf,"%s.lt",lemp->filename);
2855 fprintf(out,"#line %d \"%s\"\n",strln,lemp->filename); (*lineno)++;
2881 fprintf(out,"#line %d \"%s\"\n{",lemp->tokendestln,lemp->filename);
2884 fprintf(out,"#line %d \"%s\"\n{",sp->destructorln,lemp->filename);
2888 fprintf(out,"#line %d \"%s\"\n{",lemp->vardestln,lemp->filename);
2943 fprintf(out,"#line %d \"%s\"\n{",rp->line,lemp->filename);
2975 ErrorMsg(lemp->filename,rp->ruleline,
2985 ErrorMsg(lemp->filename,rp->ruleline,
3219 ErrorMsg(lemp->filename,0,