Changeset 19764c6 in git
- Timestamp:
- Mar 16, 2011, 6:53:23 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- 950214e56df8e233d791b1abc2c8674661d285d0
- Parents:
- 79fa8352d2e8a5cc848baaa1ce73f4345f8daa44
- Location:
- dyn_modules/syzextra
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
dyn_modules/syzextra/SConstruct
r79fa83 r19764c6 9 9 10 10 11 sing_psico_int_if = env.SharedLibrary('syzextra', 11 #env.SharedObject(target = 'mod_main.o', source = 'mod_main.cc') 12 13 14 ### Works with any Singular 15 #syzextra_if = env.SharedLibrary('syzextra', 16 # ["mod_main.cc", "DebugPrint.cc", "myNF.cc"], 17 # SHLIBPREFIX="", LDMODULESUFFIX=".so", CPPDEFINES = 'NDEBUG', SHLIBSUFFIX = ".so", 18 # CPPPATH = SING_INCLUDES, 19 # LIBS=[]) 20 21 ### Works with Singularg only! 22 syzextra_debug_if = env.LoadableModule('syzextra_g', 12 23 ["mod_main.cc", "DebugPrint.cc", "myNF.cc"], 13 SHLIBPREFIX="", LDMODULESUFFIX=".so ",24 SHLIBPREFIX="", LDMODULESUFFIX=".sog", SHLIBSUFFIX = ".sog", 14 25 CPPPATH = SING_INCLUDES, 15 26 LIBS=[]) 16 27 17 Default(sing_psico_int_if) 28 # Default(syzextra_if) 29 # Default(syzextra_debug_if) 18 30 -
dyn_modules/syzextra/mod_main.cc
r79fa83 r19764c6 86 86 } 87 87 88 static inline void view(const intvec* v) 89 { 90 #ifndef NDEBUG 91 v->view(); 92 #else 93 // This code duplication is only due to Hannes's #ifndef NDEBUG! 94 Print ("intvec: {rows: %d, cols: %d, length: %d, Values: \n", v->rows(), v->cols(), v->length()); 95 96 for (int i = 0; i < v->rows(); i++) 97 { 98 Print ("Row[%3d]:", i); 99 for (int j = 0; j < v->cols(); j++) 100 Print (" %5d", (*v)[j + i * (v->cols())] ); 101 PrintLn (); 102 } 103 PrintS ("}\n"); 104 #endif 105 106 } 107 108 109 88 110 static BOOLEAN DetailedPrint(leftv __res, leftv h) 89 111 { … … 150 172 151 173 #define PRINT_pINTVECTOR(s, v) Print("intvec '%10s'(%p)", #v, (s)->v); \ 152 if( (s)->v != NULL ){ PrintS(": "); (s)->v->view(); }; \174 if( (s)->v != NULL ){ PrintS(": "); view((s)->v); }; \ 153 175 PrintLn(); 154 176 -
dyn_modules/syzextra/syzextra.tst
r79fa83 r19764c6 1 1 echo = 2; 2 2 3 LIB("./syzextra.so"); 3 "ndebug?: ", system("with", "ndebug"); 4 "om_ndebug?: ", system("with", "om_ndebug"); 5 6 if( system("with", "ndebug") ) 7 { 8 "Loading the Release version!"; 9 LIB("./syzextra.so"); 10 } 11 else 12 { 13 "Loading the Debug version!"; 14 LIB("./syzextra.sog"); 15 } 4 16 5 17 noop();
Note: See TracChangeset
for help on using the changeset viewer.