Changeset f84c3b in git
- Timestamp:
- Apr 18, 2011, 4:03:16 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- a088a124beb3fcae063eb326f03ad572927bd5b8
- Parents:
- 9fc2ffdb04d71c3f3c62e0d045316de3728080ff
- Location:
- Singular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/blackbox.cc
r9fc2ffd rf84c3b 43 43 } 44 44 45 BOOLEAN blackbox_default_serialize(blackbox *b, void *d, FILE *f)45 BOOLEAN blackbox_default_serialize(blackbox *b, void *d, si_link f) 46 46 { 47 47 return TRUE; 48 48 } 49 49 50 BOOLEAN blackbox_default_deserialize(blackbox *b, void **d, FILE *f)50 BOOLEAN blackbox_default_deserialize(blackbox *b, void **d, si_link f) 51 51 { 52 52 return TRUE; -
Singular/blackbox.h
r9fc2ffd rf84c3b 4 4 #include <kernel/structs.h> 5 5 #include <kernel/febase.h> 6 #include <Singular/silink.h> 6 7 7 8 void removeBlackboxStuff(const int rt); … … 36 37 BOOLEAN (*blackbox_Check)(blackbox *b,void *d); 37 38 /// serialize 38 BOOLEAN (*blackbox_serialize)(blackbox *b,void *d, FILE *f);39 BOOLEAN (*blackbox_serialize)(blackbox *b,void *d, si_link f); 39 40 /// deserialize 40 BOOLEAN (*blackbox_deserialize)(blackbox *b,void **d, FILE *f);41 BOOLEAN (*blackbox_deserialize)(blackbox *b,void **d, si_link f); 41 42 /// additional type info 42 43 void *data; -
Singular/newstruct.cc
r9fc2ffd rf84c3b 298 298 } 299 299 300 BOOLEAN newstruct_serialize(blackbox *b, void *d, si_link f) 301 { 302 newstruct_desc dd=(newstruct_desc)b->data; 303 // write string(getBlackboxName(dd->id), 304 lists ll=(lists)d; 305 // write(ll) 306 return FALSE; 307 } 308 309 BOOLEAN newstruct_deserialize(blackbox *b, void **d, si_link f) 310 { 311 return TRUE; 312 } 313 300 314 void newstruct_setup(const char *n, newstruct_desc d ) 301 315 { … … 315 329 b->blackbox_OpM=newstruct_OpM; 316 330 b->blackbox_Check=newstruct_Check; 331 b->blackbox_serialize=newstruct_serialize; 332 b->blackbox_deserialize=newstruct_deserialize; 317 333 b->data=d; 318 334 b->properties=1; // list_like
Note: See TracChangeset
for help on using the changeset viewer.