Changeset f84c3b in git


Ignore:
Timestamp:
Apr 18, 2011, 4:03:16 PM (12 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
Children:
a088a124beb3fcae063eb326f03ad572927bd5b8
Parents:
9fc2ffdb04d71c3f3c62e0d045316de3728080ff
Message:
serialiaze for blackbox

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

Legend:

Unmodified
Added
Removed
  • Singular/blackbox.cc

    r9fc2ffd rf84c3b  
    4343}
    4444
    45 BOOLEAN blackbox_default_serialize(blackbox *b, void *d, FILE *f)
     45BOOLEAN blackbox_default_serialize(blackbox *b, void *d, si_link f)
    4646{
    4747  return TRUE;
    4848}
    4949
    50 BOOLEAN blackbox_default_deserialize(blackbox *b, void **d, FILE *f)
     50BOOLEAN blackbox_default_deserialize(blackbox *b, void **d, si_link f)
    5151{
    5252  return TRUE;
  • Singular/blackbox.h

    r9fc2ffd rf84c3b  
    44#include <kernel/structs.h>
    55#include <kernel/febase.h>
     6#include <Singular/silink.h>
    67
    78void removeBlackboxStuff(const int rt);
     
    3637  BOOLEAN (*blackbox_Check)(blackbox *b,void *d);
    3738  /// serialize
    38   BOOLEAN (*blackbox_serialize)(blackbox *b,void *d, FILE *f);
     39  BOOLEAN (*blackbox_serialize)(blackbox *b,void *d, si_link f);
    3940  /// deserialize
    40   BOOLEAN (*blackbox_deserialize)(blackbox *b,void **d, FILE *f);
     41  BOOLEAN (*blackbox_deserialize)(blackbox *b,void **d, si_link f);
    4142  /// additional type info
    4243  void *data;
  • Singular/newstruct.cc

    r9fc2ffd rf84c3b  
    298298}
    299299
     300BOOLEAN 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
     309BOOLEAN newstruct_deserialize(blackbox *b, void **d, si_link f)
     310{
     311  return TRUE;
     312}
     313
    300314void newstruct_setup(const char *n, newstruct_desc d )
    301315{
     
    315329  b->blackbox_OpM=newstruct_OpM;
    316330  b->blackbox_Check=newstruct_Check;
     331  b->blackbox_serialize=newstruct_serialize;
     332  b->blackbox_deserialize=newstruct_deserialize;
    317333  b->data=d;
    318334  b->properties=1; // list_like
Note: See TracChangeset for help on using the changeset viewer.