EDK2 doxygen online documents - Firmware Encoding Index 1
EDK2 doxygen online documents - Firmware Encoding Index

BaseTools/Source/C/VfrCompile/Pccts/h/charbuf.h

Go to the documentation of this file.
00001 /* ANTLR attribute definition -- constant width text
00002  *
00003  * SOFTWARE RIGHTS
00004  *
00005  * We reserve no LEGAL rights to the Purdue Compiler Construction Tool
00006  * Set (PCCTS) -- PCCTS is in the public domain.  An individual or
00007  * company may do whatever they wish with source code distributed with
00008  * PCCTS or the code generated by PCCTS, including the incorporation of
00009  * PCCTS, or its output, into commerical software.
00010  *
00011  * We encourage users to develop software with PCCTS.  However, we do ask
00012  * that credit is given to us for developing PCCTS.  By "credit",
00013  * we mean that if you incorporate our source code into one of your
00014  * programs (commercial product, research project, or otherwise) that you
00015  * acknowledge this fact somewhere in the documentation, research report,
00016  * etc...  If you like PCCTS and have developed a nice tool with the
00017  * output, please mention that you developed it using PCCTS.  In
00018  * addition, we ask that this header remain intact in our source code.
00019  * As long as these guidelines are kept, we expect to continue enhancing
00020  * this system and expect to make other tools available as they are
00021  * completed.
00022  *
00023  * ANTLR 1.33
00024  * Terence Parr
00025  * Parr Research Corporation
00026  * with Purdue University and AHPCRC, University of Minnesota
00027  * 1989-2000
00028  */
00029 
00030 #ifndef ZZCHARBUF_H
00031 #define ZZCHARBUF_H
00032 
00033 #include "pcctscfg.h"
00034 
00035 #include "pccts_string.h"
00036 
00037 #ifndef D_TextSize
00038 #define D_TextSize      30
00039 #endif
00040 
00041 typedef struct { char text[D_TextSize]; } Attrib;
00042 
00043 #define zzcr_attr(a,tok,t)      strncpy((a)->text, t, D_TextSize-1); \
00044                                                         (a)->text[D_TextSize-1] = '\0';
00045 
00046 #endif
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Defines