[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gperf-3.0.1.tar.gz (GNU gperf 3.0.1)
From: |
Mark Olesen |
Subject: |
gperf-3.0.1.tar.gz (GNU gperf 3.0.1) |
Date: |
Mon, 30 Jan 2006 14:52:18 -0600 |
Feature Request:
It would be nice feature to include an option to not encapsulate keywords in
qoutes. This way, elements can possibly refer to an external table.
Following is an example.
instead of:
static struct stable_gperf wordlist[] =
{
...
"string_table[TABLE_ERROR]", TABLE_ERROR
...
generate:
static struct stable_gperf wordlist[] =
{
...
string_table[TABLE_ERROR], TABLE_ERROR
...
xx.h
enum etable
{
TABLE_ERROR=0,
...
TABLE_ELEMENTS,
TABLE_STRING_LEN=64
};
extern const char string_table[TABLE_ELEMENTS][TABLE_STRING_LEN+1];
struct stable_gperf {
char *name;
enum etable index;
};
xx.gperf
%{
#include <string.h>
#include "xx.h"
%}
struct stable_gperf
%%
string_table[TABLE_ERROR], TABLE_ERROR
...
Thanks,
Mark J. Olesen
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gperf-3.0.1.tar.gz (GNU gperf 3.0.1),
Mark Olesen <=