Changeset 73d7b5 in git
- Timestamp:
- May 12, 2000, 2:24:44 PM (23 years ago)
- Branches:
- (u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
- Children:
- 034ce12c4d5c236b70e0d93d3dd39cefcbe60268
- Parents:
- d18870bf915431bbbed064042d13fe3ecb292569
- Location:
- modules/modgen
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/modgen/grammar.y
rd18870 r73d7b5 1 1 /* 2 * $Id: grammar.y,v 1.1 3 2000-05-01 19:14:48krueger Exp $2 * $Id: grammar.y,v 1.14 2000-05-12 12:24:43 krueger Exp $ 3 3 */ 4 4 … … 690 690 sect4: SECT4START codeline SECT4END 691 691 { 692 fprintf(module_def.modfp, " '%s'", $2);692 fprintf(module_def.modfp, "%s", $2); 693 693 }; 694 694 -
modules/modgen/proc.cc
rd18870 r73d7b5 1 1 /* 2 * $Id: proc.cc,v 1.1 3 2000-05-01 19:14:48krueger Exp $2 * $Id: proc.cc,v 1.14 2000-05-12 12:24:44 krueger Exp $ 3 3 */ 4 4 … … 67 67 68 68 case LANG_SINGULAR: 69 fprintf(module->modfp,"#if 0\n"); 69 70 fprintf(module->modfp, 70 71 " h = add_singular_proc(\"%s\", %d, %ld, %ld, %s);\n", … … 218 219 ) 219 220 { 220 fprintf(module->fmtfp, " res->data =%s\n", arg);221 fprintf(module->fmtfp, " __res->data =%s\n", arg); 221 222 pi->flags.result_done = 1; 222 223 write_procedure_return(module, pi, module->fmtfp); … … 450 451 451 452 case NONE: 452 if(!pi->flags.result_done) fprintf(fmtfp, " res->data = NULL;\n");453 fprintf(fmtfp, " res->rtyp = %s;\n", pi->return_val.typname);453 if(!pi->flags.result_done) fprintf(fmtfp, " __res->data = NULL;\n"); 454 fprintf(fmtfp, " __res->rtyp = %s;\n", pi->return_val.typname); 454 455 fprintf(fmtfp, " return(%s(", pi->funcname); 455 456 for (i=0;i<pi->paramcnt; i++) { … … 462 463 463 464 default: 464 fprintf(fmtfp, " res->rtyp = %s;\n", pi->return_val.typname);465 fprintf(fmtfp, " res->data = (void *)%s(", pi->funcname);465 fprintf(fmtfp, " __res->rtyp = %s;\n", pi->return_val.typname); 466 fprintf(fmtfp, " __res->data = (void *)%s(", pi->funcname); 466 467 for (i=0;i<pi->paramcnt; i++) { 467 468 fprintf(fmtfp, "%s", pi->param[i].varname); … … 471 472 } 472 473 fprintf(fmtfp, ");\n"); 473 fprintf(fmtfp, " if( res->data != NULL) return FALSE;\n");474 fprintf(fmtfp, " if(__res->data != NULL) return FALSE;\n"); 474 475 fprintf(fmtfp, " else return TRUE;\n\n"); 475 476 } … … 502 503 if(trace)printf("\n\t\terror handling..."); fflush(stdout); 503 504 fprintf(module->fmtfp, " mod_%s_error:\n", pi->procname); 504 fprintf(module->fmtfp, " Werror(\"%s(`%%s`) is not supported\", Tok2Cmdname( tok));\n",505 fprintf(module->fmtfp, " Werror(\"%s(`%%s`) is not supported\", Tok2Cmdname(__tok));\n", 505 506 pi->procname); 506 507 fprintf(module->fmtfp, " Werror(\"expected %s(", pi->procname); -
modules/modgen/proc_setup.cc
rd18870 r73d7b5 1 1 /* 2 * $Id: proc_setup.cc,v 1. 6 2000-05-01 19:14:49krueger Exp $2 * $Id: proc_setup.cc,v 1.7 2000-05-12 12:24:44 krueger Exp $ 3 3 */ 4 4 … … 214 214 /*========================================================================*/ 215 215 char *ReservedVarnames[] = { 216 " v",217 " h"218 " res",219 " v_save"220 " tok",221 " index",216 "__v", 217 "__h" 218 "__res", 219 "__v_save" 220 "__tok", 221 "__index", 222 222 NULL 223 223 };
Note: See TracChangeset
for help on using the changeset viewer.