home *** CD-ROM | disk | FTP | other *** search
/ ftptest.leeds.ac.uk / 2015.02.ftptest.leeds.ac.uk.tar / ftptest.leeds.ac.uk / bionet / CAE-GROUP / SCL-WIN3x / FED_PLUS.EXE / SYMBOL.C < prev    next >
C/C++ Source or Header  |  1994-07-23  |  1KB  |  62 lines

  1. #if !(defined(__CENTERLINE__) || defined(lint))
  2. static char rcsid[] = "$Id: symbol.c,v 1.5 1994/05/11 19:51:24 libes Exp $";
  3. #endif
  4.  
  5. /************************************************************************
  6. ** Module:    Symbol
  7. ** Description:    This module implements the Symbol abstraction.  
  8. ** Constants:
  9. **    SYMBOL_NULL    - the null Symbol
  10. **
  11. ************************************************************************/
  12.  
  13. /*
  14.  * This code was developed with the support of the United States Government,
  15.  * and is not subject to copyright.
  16.  *
  17.  * $Log: symbol.c,v $
  18.  * Revision 1.5  1994/05/11  19:51:24  libes
  19.  * numerous fixes
  20.  *
  21.  * Revision 1.4  1993/10/15  18:48:48  libes
  22.  * CADDETC certified
  23.  *
  24.  * Revision 1.3  1992/08/18  17:23:43  libes
  25.  * no change
  26.  *
  27.  * Revision 1.2  1992/05/31  23:32:26  libes
  28.  * implemented ALIAS resolution
  29.  *
  30.  * Revision 1.1  1992/05/28  03:55:04  libes
  31.  * Initial revision
  32.  */
  33.  
  34. #define    SYMBOL_C
  35. #include "symbol.h"
  36.  
  37. /*
  38. ** Procedure:    SYMBOLinitialize
  39. ** Parameters:    -- none --
  40. ** Returns:    void
  41. ** Description:    Initialize the Symbol module
  42. */
  43.  
  44. void
  45. SYMBOLinitialize()
  46. {
  47.     MEMinitialize(&SYMBOL_fl,sizeof(struct Symbol),100,100);
  48. }
  49.  
  50. Symbol *
  51. SYMBOLcreate(name,line,filename)
  52. char *name;
  53. int line;
  54. char *filename;
  55. {
  56.     Symbol *sym = SYMBOL_new();
  57.     sym->name = name;
  58.     sym->line = yylineno;
  59.     sym->filename = current_filename;
  60.     return sym;
  61. }
  62.