repo.or.cz
/
prop.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
not needed
[prop.git]
/
prop-src
/
labelgen.cc
blob
6fd16b03a9e03124c0c2d23fc933618ed8dc24bc
1
#include
"labelgen.h"
2
#include <AD/strings/quark.h>
3
4
LabelGen
::
LabelGen
(
const char
*
p
) :
prefix
(
p
),
counter
(
0
) {
last
=
""
; }
5
LabelGen
::~
LabelGen
() {}
6
const char
*
LabelGen
::
new_label
()
7
{
return
last
=
Quark
(
prefix
,
Quark
(++
counter
)); }