summaryrefslogtreecommitdiff
path: root/src/keyword.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-01-23 12:03:33 +0000
committerBruno Haible <bruno@clisp.org>2003-01-23 12:03:33 +0000
commita9916548fa1098050c0d576c3f8356b439ac0aaf (patch)
treebae913c4763ad14699a99393e66bc156a2306c63 /src/keyword.h
parent83440a2aed0e8b914e5278666d7f2cfec13c50ab (diff)
downloadgperf-a9916548fa1098050c0d576c3f8356b439ac0aaf.tar.gz
Fix memory leaks.
Diffstat (limited to 'src/keyword.h')
-rw-r--r--src/keyword.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/keyword.h b/src/keyword.h
index cc754ba..0d1eec9 100644
--- a/src/keyword.h
+++ b/src/keyword.h
@@ -86,11 +86,14 @@ public:
virtual ~Keyword_Factory ();
/* Creates a new Keyword. */
- virtual /*abstract */ Keyword *
+ virtual /*abstract*/ Keyword *
create_keyword (const char *allchars, int allchars_length,
const char *rest) = 0;
};
+/* A statically allocated empty string. */
+extern char empty_string[1];
+
#ifdef __OPTIMIZE__
#define INLINE inline