vrq
external.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (C) 1997-2007, Mark Hummel
3  * This file is part of Vrq.
4  *
5  * Vrq is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * Vrq is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301 USA
19  *****************************************************************************
20  */
21 /******************************************************************************
22  *
23  *
24  * external.hpp
25  * - manager for external ref info
26  *
27  ******************************************************************************
28  */
29 
30 #ifndef EXTERNAL_HPP
31 #define EXTERNAL_HPP
32 
38 class External {
39 public:
43  static void Initialize() {}
49  static int Width( CSymbol* symbol ) { return 32; }
55  static CNode* WidthExp( CSymbol* symbol ) { return NULL; }
62  static int WidthConstant( CSymbol* symbol ) { return FALSE; }
69  static int WidthVolatile( CSymbol* symbol ) { return TRUE; }
75  static int WidthEvaluateable( CSymbol* symbol ) { return FALSE; }
81  static NodeType_t Type( CSymbol* symbol ) { return eB; }
82 };
83 
84 #endif // EXTERNAL_HPP
static NodeType_t Type(CSymbol *symbol)
Determine type of external variable.
Definition: external.h:81
static int WidthVolatile(CSymbol *symbol)
Determine if width of external variable is volatile.
Definition: external.h:69
unsigned bit vector
Definition: cdatatype.h:106
Holder for character strings.
Definition: csymbol.h:44
static int WidthConstant(CSymbol *symbol)
Determine if width of external variable is constant.
Definition: external.h:62
Primary data structure representing parse tree nodes.
Definition: cnode.h:197
This class is a stub that will be used to create linkages for external references.
Definition: external.h:38
static int Width(CSymbol *symbol)
Get width of external variable.
Definition: external.h:49
static void Initialize()
Initialize class info.
Definition: external.h:43
static int WidthEvaluateable(CSymbol *symbol)
Determine if width of external variable can be evaluated.
Definition: external.h:75
NodeType_t
Expression node type.
Definition: cdatatype.h:101
static CNode * WidthExp(CSymbol *symbol)
Get width of external variable as an expression.
Definition: external.h:55