Mercurial > projects > ldc
annotate dmd/root/stringtable.h @ 1607:207a8a438dea
Merge DMD r253: refactor: Argument => Parameter
---
dmd/arrayop.c | 30 ++++----
dmd/arraytypes.h | 2 +-
dmd/class.c | 8 +-
dmd/declaration.c | 10 ++--
dmd/declaration.h | 16 ++--
dmd/doc.c | 12 ++--
dmd/dsymbol.c | 4 +-
dmd/expression.c | 48 +++++++-------
dmd/expression.h | 32 +++++-----
dmd/func.c | 78 +++++++++++-----------
dmd/init.c | 2 +-
dmd/interpret.c | 8 +-
dmd/mtype.c | 190 ++++++++++++++++++++++++++--------------------------
dmd/mtype.h | 32 +++++-----
dmd/opover.c | 34 +++++-----
dmd/parse.c | 40 ++++++------
dmd/parse.h | 2 +-
dmd/statement.c | 90 +++++++++++++-------------
dmd/statement.h | 14 ++--
dmd/struct.c | 8 +-
dmd/template.c | 30 ++++----
gen/functions.cpp | 10 ++--
gen/functions.h | 2 +-
gen/tocall.cpp | 10 ++--
gen/typinf.cpp | 6 +-
25 files changed, 359 insertions(+), 359 deletions(-)
author | Leandro Lucarella <llucax@gmail.com> |
---|---|
date | Wed, 06 Jan 2010 15:18:20 -0300 |
parents | 1853dcd9b944 |
children |
rev | line source |
---|---|
336 | 1 // Copyright (c) 1999-2008 by Digital Mars |
1 | 2 // All Rights Reserved |
3 // written by Walter Bright | |
336 | 4 // http://www.digitalmars.com |
1 | 5 // License for redistribution is by either the Artistic License |
6 // in artistic.txt, or the GNU General Public License in gnu.txt. | |
7 // See the included readme.txt for details. | |
8 | |
9 | |
10 #ifndef STRINGTABLE_H | |
11 #define STRINGTABLE_H | |
12 | |
13 #if __SC__ | |
14 #pragma once | |
15 #endif | |
16 | |
17 #include "root.h" | |
18 #include "dchar.h" | |
19 #include "lstring.h" | |
20 | |
21 struct StringValue | |
22 { | |
23 union | |
24 { int intvalue; | |
25 void *ptrvalue; | |
26 dchar *string; | |
27 }; | |
28 Lstring lstring; | |
29 }; | |
30 | |
31 struct StringTable : Object | |
32 { | |
33 void **table; | |
34 unsigned count; | |
35 unsigned tabledim; | |
36 | |
37 StringTable(unsigned size = 37); | |
38 ~StringTable(); | |
39 | |
40 StringValue *lookup(const dchar *s, unsigned len); | |
41 StringValue *insert(const dchar *s, unsigned len); | |
42 StringValue *update(const dchar *s, unsigned len); | |
43 | |
44 private: | |
45 void **search(const dchar *s, unsigned len); | |
46 }; | |
47 | |
48 #endif |