cvs commit: hugs98/src builtin.c storage.c storage.h

Alastair Reid reid@glass.cse.ogi.edu
Wed, 13 Dec 2000 00:28:57 -0800


reid        2000/12/13 00:28:57 PST

  Modified files:
    src                  builtin.c storage.c storage.h 
  Log:
  Started adding some of the necessary infrastructure.  Starting with
  the less invasive changes.
  
  Added concatText :: (String,String) -> Text to storage.c
  Added findQualFun :: (Text,Text) -> Name to storage.c
  
  Added HugsAPI3 struct to storage.h.  This has a few extra operations
  required to implement the full FFI:
  
    void          getUnit(void);
    int           getBool(void);
    void          putBool(int);
    HugsStablePtr lookupName(char*,char*); // look up qualified name
    void          apMany(int);  // apply function to m arguments
  
  These new functions are added at the end of the struct decl so that
  you could also use it as a HugsAPI2 struct if you wanted.  (But we
  don't actually do that.)
  
  Added tag checks to the get functions.  (Use --enable-tag-checks when
  configuring to turn these on.)
  
  Added code for building the foreign export dynamic thunk.
  Currently x86 specific.
  
  Added code to build a HugsAPI3 struct.
  
  Revision  Changes    Path
  1.7       +198 -9    hugs98/src/builtin.c
  1.11      +34 -2     hugs98/src/storage.c
  1.12      +54 -2     hugs98/src/storage.h