Changeset 809adb5 in git
- Timestamp:
- Apr 6, 2006, 9:46:13 PM (18 years ago)
- Branches:
- (u'spielwiese', '873fc1222e995d7cb33f79d8f1792ce418c8c72c')
- Children:
- 91329a9b65526a851a4d7c7fbf602058f17a0a26
- Parents:
- 254a94285388c665a03760a37dabbbacbe7046b9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
modules/modgen/proc.cc
r254a942 r809adb5 1 1 /* 2 * $Id: proc.cc,v 1.2 3 2003-06-11 21:33:18 kruegerExp $2 * $Id: proc.cc,v 1.24 2006-04-06 19:46:13 anne Exp $ 3 3 */ 4 4 … … 523 523 ) 524 524 { 525 unsigned int i; 525 526 if(pi->help_string!=NULL) { 526 527 fprintf(module->fmtfp2, "#line %d \"%s\"\n", pi->lineno_other, 527 528 module->filename); 528 529 fprintf(module->fmtfp2, " enter_id(\"%s_help\",", pi->procname); 529 fprintf(module->fmtfp2, " \"%s\", STRING_CMD);\n\n", pi->help_string); 530 fprintf(module->fmtfp2, " \""); 531 for(i=0; i<strlen(pi->help_string); i++) { 532 if(pi->help_string[i]=='\n') fprintf(module->fmtfp2,"\\n"); 533 else fprintf(module->fmtfp2,"%c", pi->help_string[i]); 534 } 535 fprintf(module->fmtfp2, "\", STRING_CMD);\n\n", pi->help_string); 530 536 } 531 537 } … … 537 543 ) 538 544 { 545 unsigned int i; 539 546 /* if proc is NULL, just return */ 540 547 if( pi == NULL ) return; … … 544 551 module->filename); 545 552 fprintf(module->fmtfp3, " enter_id(\"%s_example\",\n", pi->procname); 546 fprintf(module->fmtfp3, " \"%s\", STRING_CMD);\n\n", pi->example_string); 553 fprintf(module->fmtfp3, " \""); 554 for(i=0; i<strlen(pi->example_string); i++) { 555 if(pi->example_string[i]=='\n') fprintf(module->fmtfp3,"\\n"); 556 else fprintf(module->fmtfp3,"%c", pi->example_string[i]); 557 } 558 fprintf(module->fmtfp3, "\", STRING_CMD);\n\n", pi->example_string); 547 559 } 548 560 }
Note: See TracChangeset
for help on using the changeset viewer.