Changeset 9fc2ffd in git


Ignore:
Timestamp:
Apr 18, 2011, 3:45:12 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c7af8613769b29c741d6c338945669719f1fc4f8')
Children:
f84c3bb40f874bb3f7be902077b2c20d9f8f97ef
Parents:
16d5ed19b49ff904efe7515c3da8eb4576c16710
Message:
serialiaze for blackbox

git-svn-id: file:///usr/local/Singular/svn/trunk@14173 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/blackbox.cc

    r16d5ed r9fc2ffd  
    4141{
    4242  return NULL;
     43}
     44
     45BOOLEAN blackbox_default_serialize(blackbox *b, void *d, FILE *f)
     46{
     47  return TRUE;
     48}
     49
     50BOOLEAN blackbox_default_deserialize(blackbox *b, void **d, FILE *f)
     51{
     52  return TRUE;
    4353}
    4454
     
    136146    if (bb->blackbox_OpM==NULL)     bb->blackbox_OpM=blackbox_default_OpM;
    137147    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;
    138150    return where+BLACKBOX_OFFSET;
    139151  }
    140152}
     153
    141154void removeBlackboxStuff(const int rt)
    142155{
  • Singular/blackbox.h

    r16d5ed r9fc2ffd  
    3535  /// check internal structure
    3636  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);
    3741  /// additional type info
    3842  void *data;
Note: See TracChangeset for help on using the changeset viewer.