Changeset eeaeffb in git
- Timestamp:
- Jul 1, 2014, 1:07:05 PM (10 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 491e80d5863c880870541275ea8e25bc3775e67c
- Parents:
- 68ca413b32be2764e9beed001e3515c6ff600db1
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/Makefile.am
r68ca41 reeaeffb 237 237 gftables MOD 238 238 239 CLEANFILES = $(BUILT_SOURCES) $(EXTRA_PROGRAMS) convert_table.texi239 CLEANFILES = $(BUILT_SOURCES) $(EXTRA_PROGRAMS) 240 240 241 241 clean-local: -
Singular/gentable.cc
r68ca41 reeaeffb 22 22 23 23 // to produce convert_table.texi for doc: 24 #define CONVERT_TABLE 1 24 int produce_convert_table=0; 25 25 26 26 // bits 0,1 for PLURAL … … 223 223 } 224 224 /* pCmdR->tokval==-1, pCmdR goes at the end */ 225 if(pCmdR->tokval==-1) 225 if(pCmdR->tokval==-1) 226 226 { free(ls);free(rs);return -1;} 227 227 … … 395 395 /*-------------------------------------------------------------------*/ 396 396 fprintf(outfile,"/*---------------------------------------------*/\n"); 397 #ifdef CONVERT_TABLE 398 FILE *doctable=fopen("convert_table.texi","w"); 399 fprintf(doctable,"@multitable @columnfractions .05 .18 .81\n"); 397 FILE *doctable; 398 if (produce_convert_table) 399 { 400 doctable=fopen("convert_table.texi","w"); 401 fprintf(doctable,"@multitable @columnfractions .05 .18 .81\n"); 402 } 400 403 int doc_nr=1; 401 #endif402 404 for (j=257;j<=MAX_TOK+1;j++) 403 405 { … … 409 411 fprintf(outfile,"// convert %s -> %s\n", 410 412 Tok2Cmdname(i), Tok2Cmdname(j)); 411 #ifdef CONVERT_TABLE 412 fprintf(doctable, 413 "@item\n@ %d. @tab @code{%s} @tab @expansion{} @code{%s}\n", 414 doc_nr,Tok2Cmdname(i),Tok2Cmdname(j)); 415 doc_nr++; 416 #endif 413 if (produce_convert_table) 414 { 415 fprintf(doctable, 416 "@item\n@ %d. @tab @code{%s} @tab @expansion{} @code{%s}\n", 417 doc_nr,Tok2Cmdname(i),Tok2Cmdname(j)); 418 doc_nr++; 419 } 417 420 if (j==ANY_TYPE) break; 418 421 } 419 422 } 420 423 } 421 #ifdef CONVERT_TABLE 422 fprintf(doctable,"@end multitable\n"); 423 fclose(doctable); 424 #endif 424 if (produce_convert_table) 425 { 426 fprintf(doctable,"@end multitable\n"); 427 fclose(doctable); 428 } 425 429 fprintf(outfile,"/*---------------------------------------------*/\n"); 426 430 char ops[]="=><+*/[.^,%(;"; … … 893 897 if (argc>1) 894 898 { 899 produce_convert_table=1; /* for ttGen1 */ 900 ttGen1(); 901 unlink(iparith_inc); 895 902 ttGen4(); 896 903 ttGen2c();
Note: See TracChangeset
for help on using the changeset viewer.