Changeset ef0a94 in git
- Timestamp:
- Feb 13, 2019, 5:39:27 PM (4 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '2234726c50d679d6664181a5c72f75a6fd64a787')
- Children:
- e26df3f314b9946ffef7f945cbe5c66517600b92
- Parents:
- d669f7b103e531e130535f2141dd1d77cfa31a81
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/dyn_modules/Order/singular.cc
rd669f7 ref0a94 510 510 (currPack->libname? currPack->libname: "NFOrder"),// the library name, 511 511 "nforder: orders in number fields"); // the help string for the module 512 VARreturn MAX_TOK;512 return MAX_TOK; 513 513 } 514 514 #endif -
Singular/dyn_modules/cohomo/cohomo.cc
rd669f7 ref0a94 5331 5331 { 5332 5332 firstorderdef_setup(p); 5333 VARreturn MAX_TOK;5333 return MAX_TOK; 5334 5334 } 5335 5335 -
Singular/dyn_modules/interval/interval.cc
rd669f7 ref0a94 1221 1221 extern "C" int SI_MOD_INIT(interval)(SModulFunctions* psModulFunctions) 1222 1222 { 1223 VARblackbox *b_iv = (blackbox*) omAlloc0(sizeof(blackbox)),1223 blackbox *b_iv = (blackbox*) omAlloc0(sizeof(blackbox)), 1224 1224 *b_bx = (blackbox*) omAlloc0(sizeof(blackbox)); 1225 1225 … … 1253 1253 evalPolyAtBox); 1254 1254 1255 VARreturn MAX_TOK;1255 return MAX_TOK; 1256 1256 } 1257 1257 // vim: spell spelllang=en -
Singular/dyn_modules/python/python_module.cc
rd669f7 ref0a94 80 80 81 81 psModulFunctions->iiAddCproc(currPack->libname,"python",FALSE, mod_python); 82 VARreturn MAX_TOK;82 return MAX_TOK; 83 83 } 84 84 #endif -
Singular/dyn_modules/singmathic/singmathic.cc
rd669f7 ref0a94 597 597 prOrderX 598 598 ); 599 VARreturn MAX_TOK;599 return MAX_TOK; 600 600 } 601 601 -
Singular/walk.cc
rd669f7 ref0a94 3731 3731 mpz_clear(ndeg); 3732 3732 3733 VARreturn repr_vector;3733 return repr_vector; 3734 3734 } 3735 3735 #endif … … 3827 3827 mpz_clear(sing_int); 3828 3828 3829 VARreturn repr_vector;3829 return repr_vector; 3830 3830 } 3831 3831 #endif -
libpolys/misc/options.h
rd669f7 ref0a94 13 13 extern "C" VAR unsigned si_opt_1; //< NOTE: Original option variable name: test 14 14 extern "C" VAR unsigned si_opt_2; //< NOTE: Original option variable name: verbose 15 extern "C" BOOLEAN siCntrlc;15 extern "C" VAR BOOLEAN siCntrlc; 16 16 #else 17 17 EXTERN_VAR unsigned si_opt_1; -
misc/intset.cc
rd669f7 ref0a94 209 209 psModulFunctions->iiAddCproc((currPack->libname? currPack->libname: ""),"insert_set",FALSE,insert_set); 210 210 psModulFunctions->iiAddCproc((currPack->libname? currPack->libname: ""),"equal_set",FALSE,equal_set); 211 VARreturn MAX_TOK;212 } 211 return MAX_TOK; 212 } -
misc/lt.cc
rd669f7 ref0a94 40 40 { 41 41 psModulFunctions->iiAddCproc((currPack->libname? currPack->libname: ""),"same_lt",FALSE,same_lt); 42 VARreturn MAX_TOK;42 return MAX_TOK; 43 43 } -
misc/lt2.cc
rd669f7 ref0a94 74 74 psModulFunctions->iiAddCproc((currPack->libname? currPack->libname: ""),"same_lt2",FALSE,same_lt2); 75 75 psModulFunctions->iiAddCproc((currPack->libname? currPack->libname: ""),"cf_at",FALSE,cf_at); 76 VARreturn MAX_TOK;76 return MAX_TOK; 77 77 } -
misc/partition.cc
rd669f7 ref0a94 90 90 (currPack->libname? currPack->libname: ""),// the library name, 91 91 "partition"); // the help string for the module 92 VARreturn MAX_TOK;92 return MAX_TOK; 93 93 } 94 94 -
ppcc/src/parser.cc
rd669f7 ref0a94 56 56 class Parser : public GC { 57 57 public: 58 TokenList *input, *output ;58 TokenList *input, *output, *prologue; 59 59 SourceFile *source; 60 60 Int pos, marker; … … 66 66 input->add(eof); 67 67 output = new TokenList(); 68 prologue = new TokenList(); 68 69 pos = 0; 69 70 marker = 0; … … 274 275 parser->init_count++; 275 276 parser->emit(Token(SymGen, S( 276 "void pSingular_register_init_var(void *, void *, long);"277 277 "class %s__CONSTR__ {\n" 278 278 " public: %s__CONSTR__() {\n" 279 " pSingular_register_init_var( &%s,&%s__INIT__, sizeof(%s));\n"279 " pSingular_register_init_var((void *)&%s, (void *)&%s__INIT__, sizeof(%s));\n" 280 280 " }\n" 281 281 "} %s__AUX__;\n" … … 286 286 287 287 void EmitEpilogue(Parser *parser) { 288 if ( init_list->len() == 0 && class_vars->count() == 0)288 if (parser->init_count == 0 && init_list->len() == 0 && class_vars->count() == 0) 289 289 return; 290 290 Str *modulename = parser->source->modulename; … … 300 300 } 301 301 } 302 if ( init_list->len() == 0)302 if (parser->init_count == 0 && init_list->len() == 0) 303 303 return; 304 304 Str *init_part; … … 350 350 } 351 351 init_part->add("}\n"); 352 if (parser->init_count) { 353 parser->prologue->add(Token(SymGen, 354 S("static void pSingular_register_init_var(void *, void *, long);\n"))); 355 } 352 356 init_part = init_part->replace_all(S("%n"), S(parser->init_count+1)); 353 357 parser->emit(Token(SymGen, init_part)); … … 512 516 } 513 517 EmitEpilogue(parser); 514 return parser-> output;518 return parser->prologue->clone()->add(parser->output); 515 519 } 516 520 … … 531 535 SourceFile *source = ReadSource(filename, filedata); 532 536 TokenList *tokens = Transform(source); 533 Str *result = new Str(); for (Int i = 0; i < tokens->len(); i++) { 537 Str *result = new Str(); 538 for (Int i = 0; i < tokens->len(); i++) { 534 539 result->add(tokens->at(i).str); 535 540 }
Note: See TracChangeset
for help on using the changeset viewer.