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