summaryrefslogtreecommitdiff
path: root/src/output.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-01-22 12:03:19 +0000
committerBruno Haible <bruno@clisp.org>2003-01-22 12:03:19 +0000
commit83440a2aed0e8b914e5278666d7f2cfec13c50ab (patch)
tree19fbb27abf26f3f125cce91deb37a8918ef194c0 /src/output.h
parentd3a9c2f7ade30d8d77be7c66d746c1fa5aa8dce1 (diff)
downloadgperf-83440a2aed0e8b914e5278666d7f2cfec13c50ab.tar.gz
Rewrite the input routines.
Diffstat (limited to 'src/output.h')
-rw-r--r--src/output.h26
1 files changed, 17 insertions, 9 deletions
diff --git a/src/output.h b/src/output.h
index 57506c4..b079155 100644
--- a/src/output.h
+++ b/src/output.h
@@ -37,11 +37,15 @@ class Output
public:
/* Constructor. */
Output (KeywordExt_List *head,
- const char *array_type,
+ const char *struct_decl,
const char *return_type,
const char *struct_tag,
- bool additional_code,
- const char *include_src,
+ const char *verbatim_declarations,
+ const char *verbatim_declarations_end,
+ unsigned int verbatim_declarations_lineno,
+ const char *verbatim_code,
+ const char *verbatim_code_end,
+ unsigned int verbatim_code_lineno,
int total_keys,
int total_duplicates,
int max_key_len, int min_key_len,
@@ -91,16 +95,20 @@ private:
/* Linked list of keywords. */
KeywordExt_List * _head;
- /* Pointer to the type for word list. */
- const char * const _array_type;
+ /* Declaration of struct type for a keyword and its attributes. */
+ const char * const _struct_decl;
/* Pointer to return type for lookup function. */
const char * _return_type;
/* Shorthand for user-defined struct tag type. */
const char * _struct_tag;
- /* True if any additional C code is included. */
- bool const _additional_code;
- /* C source code to be included verbatim. */
- const char * const _include_src;
+ /* The C code from the declarations section. */
+ const char * const _verbatim_declarations;
+ const char * const _verbatim_declarations_end;
+ unsigned int const _verbatim_declarations_lineno;
+ /* The C code from the end of the file. */
+ const char * const _verbatim_code;
+ const char * const _verbatim_code_end;
+ unsigned int const _verbatim_code_lineno;
/* Total number of keys, counting duplicates. */
int const _total_keys;
/* Total number of duplicate hash values. */