literals.h revision 8a40a695ee676a322b094e9afe5375567bfb51e3
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*
* literals.h -- public definitions for literals in string table
*
* all strings in this program are kept in the string table provided
* by the routines in stable.c. this allows us to see if two strings
* are equal by checking their pointers rather than calling strcmp().
* when we want to check for a specific string we can either do this:
* if (s == stable("word"))
* or define the literal here in this file and then do this:
* if (s == L_word)
*
* the macro L_DECL() below expands to an extern const char * declaration
* for files that include it. the exception is some cpp statements done by
* literals.c which change L_DECL() to initialize the string by calling
* stable().
*/
#ifndef _ESC_COMMON_LITERALS_H
#define _ESC_COMMON_LITERALS_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#ifndef L_DECL
#endif
/* reserved words */
L_DECL(if);
/* event types */
/* engine types */
/* timeval suffixes */
L_DECL(s);
L_DECL(m);
L_DECL(h);
L_DECL(d);
/* property names */
L_DECL(N);
L_DECL(T);
/* property values */
L_DECL(A);
L_DECL(volatile);
/* event bubble types */
/*
* internal function names. note that "fru" and "asru" are also function
* names.
*/
L_DECL(defined);
/* our enumerated types (used for debugging) */
/* misc */
#ifdef __cplusplus
}
#endif
#endif /* _ESC_COMMON_LITERALS_H */