- Timestamp:
- Mar 28, 2000, 9:15:13 AM (24 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 5f0f1960b9dc9e0ab74285a56dfb1f98c44422a6
- Parents:
- 58933c7b39cf945f3d73d5e959ff796a1570cd3f
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/modgen/proc.cc
r58933c r280508 1 1 /* 2 * $Id: proc.cc,v 1. 8 2000-03-22 10:23:57krueger Exp $2 * $Id: proc.cc,v 1.9 2000-03-28 07:15:13 krueger Exp $ 3 3 */ 4 4 … … 128 128 int i; 129 129 if(pi->paramcnt>0) { 130 fprintf(module->fmtfp, "#line %d \"%s\"\n", yylineno, module->filename); 130 131 fprintf(module->fmtfp, " leftv v = h, v_save;\n"); 131 132 fprintf(module->fmtfp, " int tok = NONE, index = 0;\n"); … … 134 135 " sleftv s%s; leftv %s = &s%s;\n", pi->param[i].varname, 135 136 pi->param[i].varname, pi->param[i].varname); 137 fprintf(module->fmtfp, "#line %d \"%s\"\n", yylineno, module->filename); 136 138 fprintf(module->fmtfp, "\n"); 137 139 pi->flags.declaration_done = 1; … … 146 148 ) 147 149 { 150 fprintf(module->fmtfp, "#line %d \"%s\"\n", yylineno, module->filename); 148 151 write_procedure_typecheck(module, pi, module->fmtfp); 152 fprintf(module->fmtfp, "#line %d \"%s\"\n", yylineno, module->filename); 149 153 pi->flags.typecheck_done = 1; 150 154 } … … 182 186 else printf("CMD: return()\n"); 183 187 188 fprintf(module->fmtfp, "#line %d \"%s\"\n", yylineno, module->filename); 184 189 write_procedure_return(module, pi, module->fmtfp); 185 190 } … … 196 201 fprintf(module->fmtfp, "/* code for running singular commands */\n"); 197 202 fprintf(module->fmtfp, "/*\n"); 203 fprintf(module->fmtfp, " * #line %d \"%s\"\n", yylineno, module->filename); 198 204 fprintf(module->fmtfp, " *\n"); 199 205 fprintf(module->fmtfp, " * get idhdl for '%s'\n", arg); … … 332 338 pi->return_val.typname, pi->return_val.typ); 333 339 if(pi->funcname == NULL) { 334 fprintf(fmtfp, " res->rtyp = NONE;\n");340 fprintf(fmtfp, " res->rtyp = %s;\n", pi->return_val.typname); 335 341 fprintf(fmtfp, " res->data = NULL;\n"); 336 fprintf(fmtfp, " return TRUE;\n"); 342 //fprintf(fmtfp, " res->rtyp = NONE;\n"); 343 //fprintf(fmtfp, " res->data = NULL;\n"); 344 fprintf(fmtfp, " return FALSE;\n"); 337 345 } 338 346 else
Note: See TracChangeset
for help on using the changeset viewer.