|
Revision 189, 0.9 kB
(checked in by braddr, 3 years ago)
|
add property svn:eol-style = native to all files
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
// Compiler implementation of the D programming language |
|---|
| 2 |
// Copyright (c) 1999-2006 by Digital Mars |
|---|
| 3 |
// All Rights Reserved |
|---|
| 4 |
// written by Walter Bright |
|---|
| 5 |
// http://www.digitalmars.com |
|---|
| 6 |
// License for redistribution is by either the Artistic License |
|---|
| 7 |
// in artistic.txt, or the GNU General Public License in gnu.txt. |
|---|
| 8 |
// See the included readme.txt for details. |
|---|
| 9 |
|
|---|
| 10 |
#ifndef DMD_IDENTIFIER_H |
|---|
| 11 |
#define DMD_IDENTIFIER_H |
|---|
| 12 |
|
|---|
| 13 |
#ifdef __DMC__ |
|---|
| 14 |
#pragma once |
|---|
| 15 |
#endif /* __DMC__ */ |
|---|
| 16 |
|
|---|
| 17 |
#include "root.h" |
|---|
| 18 |
|
|---|
| 19 |
struct Identifier : Object |
|---|
| 20 |
{ |
|---|
| 21 |
int value; |
|---|
| 22 |
const char *string; |
|---|
| 23 |
unsigned len; |
|---|
| 24 |
|
|---|
| 25 |
Identifier(const char *string, int value); |
|---|
| 26 |
int equals(Object *o); |
|---|
| 27 |
hash_t hashCode(); |
|---|
| 28 |
int compare(Object *o); |
|---|
| 29 |
void print(); |
|---|
| 30 |
char *toChars(); |
|---|
| 31 |
#ifdef _DH |
|---|
| 32 |
char *toHChars(); |
|---|
| 33 |
#endif |
|---|
| 34 |
const char *toHChars2(); |
|---|
| 35 |
int dyncast(); |
|---|
| 36 |
|
|---|
| 37 |
static Identifier *generateId(const char *prefix); |
|---|
| 38 |
static Identifier *generateId(const char *prefix, size_t i); |
|---|
| 39 |
}; |
|---|
| 40 |
|
|---|
| 41 |
#endif /* DMD_IDENTIFIER_H */ |
|---|