comparison dmd2/identifier.c @ 1452:638d16625da2

LDC 2 compiles again.
author Robert Clipsham <robert@octarineparrot.com>
date Sat, 30 May 2009 17:23:32 +0100
parents f5d5bc9295b1
children
comparison
equal deleted inserted replaced
1423:42bd767ec5a4 1452:638d16625da2
79 int Identifier::dyncast() 79 int Identifier::dyncast()
80 { 80 {
81 return DYNCAST_IDENTIFIER; 81 return DYNCAST_IDENTIFIER;
82 } 82 }
83 83
84 // BUG: these are redundant with Lexer::uniqueId()
84 85
85 Identifier *Identifier::generateId(const char *prefix) 86 Identifier *Identifier::generateId(const char *prefix)
86 { 87 {
87 static size_t i; 88 static size_t i;
88 89
91 92
92 Identifier *Identifier::generateId(const char *prefix, size_t i) 93 Identifier *Identifier::generateId(const char *prefix, size_t i)
93 { OutBuffer buf; 94 { OutBuffer buf;
94 95
95 buf.writestring(prefix); 96 buf.writestring(prefix);
96 buf.printf("%"PRIuSIZE, i); 97 buf.printf("%zu", i);
97 98
98 char *id = buf.toChars(); 99 char *id = buf.toChars();
99 buf.data = NULL; 100 buf.data = NULL;
100 return Lexer::idPool(id); 101 return Lexer::idPool(id);
101 } 102 }