charbuf.h revision 4fd606d1f5abe38e1f42c38de1d2e895166bd0f4
1N/A/* ANTLR attribute definition -- constant width text
1N/A *
1N/A * SOFTWARE RIGHTS
1N/A *
1N/A * We reserve no LEGAL rights to the Purdue Compiler Construction Tool
1N/A * Set (PCCTS) -- PCCTS is in the public domain. An individual or
1N/A * company may do whatever they wish with source code distributed with
1N/A * PCCTS or the code generated by PCCTS, including the incorporation of
1N/A * PCCTS, or its output, into commerical software.
1N/A *
1N/A * We encourage users to develop software with PCCTS. However, we do ask
1N/A * that credit is given to us for developing PCCTS. By "credit",
1N/A * we mean that if you incorporate our source code into one of your
1N/A * programs (commercial product, research project, or otherwise) that you
1N/A * acknowledge this fact somewhere in the documentation, research report,
1N/A * etc... If you like PCCTS and have developed a nice tool with the
1N/A * output, please mention that you developed it using PCCTS. In
1N/A * addition, we ask that this header remain intact in our source code.
1N/A * As long as these guidelines are kept, we expect to continue enhancing
1N/A * this system and expect to make other tools available as they are
1N/A * completed.
1N/A *
1N/A * ANTLR 1.33
1N/A * Terence Parr
1N/A * Parr Research Corporation
1N/A * with Purdue University and AHPCRC, University of Minnesota
1N/A * 1989-2000
1N/A */
1N/A
1N/A#ifndef ZZCHARBUF_H
1N/A#define ZZCHARBUF_H
1N/A
1N/A#include "pcctscfg.h"
1N/A
1N/A#include "pccts_string.h"
#ifndef D_TextSize
#define D_TextSize 30
#endif
typedef struct { char text[D_TextSize]; } Attrib;
#define zzcr_attr(a,tok,t) strncpy((a)->text, t, D_TextSize-1); \
(a)->text[D_TextSize-1] = '\0';
#endif