home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / pccts1.zip / H / CHARPTR.H < prev    next >
C/C++ Source or Header  |  1993-09-01  |  1KB  |  45 lines

  1. /*
  2.  * SOFTWARE RIGHTS
  3.  *
  4.  * We reserve no LEGAL rights to the Purdue Compiler Construction Tool
  5.  * Set (PCCTS) -- PCCTS is in the public domain.  An individual or
  6.  * company may do whatever they wish with source code distributed with
  7.  * PCCTS or the code generated by PCCTS, including the incorporation of
  8.  * PCCTS, or its output, into commerical software.
  9.  * 
  10.  * We encourage users to develop software with PCCTS.  However, we do ask
  11.  * that credit is given to us for developing PCCTS.  By "credit",
  12.  * we mean that if you incorporate our source code into one of your
  13.  * programs (commercial product, research project, or otherwise) that you
  14.  * acknowledge this fact somewhere in the documentation, research report,
  15.  * etc...  If you like PCCTS and have developed a nice tool with the
  16.  * output, please mention that you developed it using PCCTS.  In
  17.  * addition, we ask that this header remain intact in our source code.
  18.  * As long as these guidelines are kept, we expect to continue enhancing
  19.  * this system and expect to make other tools available as they are
  20.  * completed.
  21.  *
  22.  * ANTLR 1.10
  23.  * Terence Parr
  24.  * Purdue University
  25.  * 1989-1993
  26.  */
  27.  
  28. /*
  29.  * WARNING!!!!: charptr.h does NOT make copies and the
  30.  * memory is freed after the attribute scope exits.
  31.  */
  32.  
  33. #ifndef ZZCHARPTR_H
  34. #define ZZCHARPTR_H
  35.  
  36. typedef char *Attrib;
  37. #define zzdef0(a)        {*(a)=NULL;}
  38. #define zzd_attr(a)        {if ( *(a)!=NULL ) free(*a);}
  39.  
  40. #ifdef __STDC__
  41. extern zzcr_attr(Attrib *,int,char *);
  42. #endif
  43.  
  44. #endif
  45.