home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c185 / 2.ddi / OWLSRC.EXE / CSCAPE / SOURCE / SYMLDECL.H < prev    next >
Encoding:
C/C++ Source or Header  |  1989-09-06  |  1.2 KB  |  46 lines

  1. /*
  2.     symldecl.h
  3.  
  4.     % symbol list header
  5.  
  6.     OWL 1.1
  7.     Copyright (c) 1988, by Oakland Group, Inc.
  8.     ALL RIGHTS RESERVED.
  9.  
  10.     Revision History:
  11.     -----------------
  12.      8/09/89 jdc    changed oslist_GetSym to oslist_Get
  13. */
  14.  
  15. typedef    struct oslist_struct {
  16.  
  17.     xarray    seqnt;
  18.     int     count;
  19.  
  20.     iarray    alpha;
  21.     int     size;
  22.  
  23.     int     dsize;        /* size of data element associated with each symbol */
  24.  
  25. } *oslist_type;
  26.  
  27. #define    OSLIST_SYMMAXLEN    100
  28. #define    OSLIST_BADNAME        -1
  29.  
  30. extern oslist_type    oslist_Open(_arg2(int, int));
  31. extern int            _oslist_put(_arg3(oslist_type, char*, VOID *));
  32. extern char *         oslist_Get(_arg2(oslist_type, int));
  33. extern void         oslist_SetData(_arg3(oslist_type, int, VOID*));
  34. extern int             oslist_AlphaHandle(_arg2(oslist_type, int));
  35. extern int            oslist_FindSymHandle(_arg2(oslist_type, char*));
  36. extern int            oslist_DelSym(_arg2(oslist_type, int));
  37. extern void         oslist_Close(_arg1(oslist_type));
  38. extern int            oslist_GetSize(_arg1(oslist_type));
  39.  
  40. #define    oslist_Put(l, s, d)            _oslist_put(l, s, (VOID *)d)
  41. #define oslist_GetAlpha(oslist, a)    oslist_Get(oslist, oslist_AlphaHandle(oslist, a))
  42.  
  43. #define oslist_GetDataSize(oslist)    ( oslist->dsize )
  44. #define sym_GetData(sym)        ( (sym == NULL) ? (char *) NULL : sym + strlen(sym) + 1 )
  45.  
  46.