constants.h revision 7c478bd95313f5f23a4c958a745db2134aa03244
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (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 (c) 1988 AT&T */
/* All Rights Reserved */
/*
* cscope - interactive C symbol cross-reference
*
* preprocessor macro and constant definitions
*/
/*
* Copyright (c) 1999 by Sun Microsystems, Inc.
* All rights reserved.
*/
#pragma ident "%Z%%M% %I% %E% SMI"
#include <limits.h>
/* database output macros that update its offset */
/* fast string equality tests (avoids most strcmp() calls) */
/* set the mark character for searching the cross-reference file */
/* get the next character in the cross-reference */
/* note that blockp is assumed not to be null */
/* skip the next character in the cross-reference */
/*
* note that blockp is assumed not to be null and that
* this macro will always be in a statement by itself
*/
/* these also appear in the fscanf format string in countrefs() */
/* default file names */
/*
* cross-reference database mark characters (when new ones are added,
* update the cscope.out format description in cscope.1)
*/
#define ASSIGNMENT '='
#define CLASSDEF 'c'
#define DEFINE '#'
#define DEFINEEND ')'
#define ENUMDEF 'e'
#define ESUEND ';'
#define FCNCALL '`'
#define FCNDEF '$'
#define FCNEND '}'
#define GLOBALDEF 'g'
#define INCLUDE '~'
#define LOCALDEF 'l'
#define MEMBERDEF 'm'
#define NEWFILE '@'
#define PARAMETER 'p'
#define STRUCTDEF 's'
#define TYPEDEF 't'
#define UNIONDEF 'u'
/* other scanner token types */
#define LEXEOF 0
#define IDENT 1
#define NEWLINE 2
/* screen lines */
#define MSGLINE 0 /* message line */
/* input fields (value matches field order on screen) */
#define SYMBOL 0
#define DEFINITION 1
#define CALLEDBY 2
#define CALLING 3
#define ASSIGN 4
#define CHANGE 5
#define STRING 6
#define FILENAME 7
#define INCLUDES 8
#define FIELDS 9