Changeset 9fc2ffd in git
- Timestamp:
- Apr 18, 2011, 3:45:12 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- f84c3bb40f874bb3f7be902077b2c20d9f8f97ef
- Parents:
- 16d5ed19b49ff904efe7515c3da8eb4576c16710
- Location:
- Singular
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/blackbox.cc
r16d5ed r9fc2ffd 41 41 { 42 42 return NULL; 43 } 44 45 BOOLEAN blackbox_default_serialize(blackbox *b, void *d, FILE *f) 46 { 47 return TRUE; 48 } 49 50 BOOLEAN blackbox_default_deserialize(blackbox *b, void **d, FILE *f) 51 { 52 return TRUE; 43 53 } 44 54 … … 136 146 if (bb->blackbox_OpM==NULL) bb->blackbox_OpM=blackbox_default_OpM; 137 147 if (bb->blackbox_Check==NULL) bb->blackbox_Check=blackbox_default_Check; 148 if (bb->blackbox_serialize==NULL) bb->blackbox_serialize=blackbox_default_serialize; 149 if (bb->blackbox_deserialize==NULL) bb->blackbox_deserialize=blackbox_default_deserialize; 138 150 return where+BLACKBOX_OFFSET; 139 151 } 140 152 } 153 141 154 void removeBlackboxStuff(const int rt) 142 155 { -
Singular/blackbox.h
r16d5ed r9fc2ffd 35 35 /// check internal structure 36 36 BOOLEAN (*blackbox_Check)(blackbox *b,void *d); 37 /// serialize 38 BOOLEAN (*blackbox_serialize)(blackbox *b,void *d, FILE *f); 39 /// deserialize 40 BOOLEAN (*blackbox_deserialize)(blackbox *b,void **d, FILE *f); 37 41 /// additional type info 38 42 void *data;
Note: See TracChangeset
for help on using the changeset viewer.