Questions tagged [gperf]

GNU gperf is a perfect hash function generator. For a given list of strings, it produces a hash function and hash table, in form of C or C++ code, for looking up a value depending on the input string. The hash function is perfect, which means that the hash table has no collisions, and the hash table lookup needs a single string comparison only.

GNU gperf is a perfect hash function generator. For a given list of strings, it produces a hash function and hash table, in form of C or C++ code, for looking up a value depending on the input string. The hash function is perfect, which means that the hash table has no collisions, and the hash table lookup needs a single string comparison only. more...

21 questions
0
votes
0 answers

gperf on structs that have interdependent foreign keys

I have, potentially, lots of static data, including foreign keys to other static data that need to be resolved. I want the data files to be compiled as constants into my programme. I have written a simple C code generator that takes as input the…
Neil
  • 1,767
  • 2
  • 16
  • 22
0
votes
3 answers

Having trouble using gperf:Empty input keyword is not allowed

command_options.gperf: %{ #include "command_options.h" typedef struct CommandOptionCode CommandOptionCode; %} struct CommandOption { const char *Option; int OptionCode; }; %% +helpverbose, CommandOptionCode::HELPVERBOSE +password,…
assem
  • 3,023
  • 4
  • 20
  • 20
0
votes
0 answers

error: Unable to determine the type of the len parameter of the gperf hash/lookup function

I'd like to build fontconfig library under AIX os 64 bits. So I downloaded fontconfig source and I executed the configure commande : ./configure --prefix=/home/stephv/libraries/sharedlib configure returns the followings error: checking The type of…
ZINEBA
  • 33
  • 1
  • 6
0
votes
1 answer

Avoid 'warning: declaration UserSuppliedStruct does not declare anything' in gperf output file

Given such a gperf file with User-supplied struct: %define class-name Table %define lookup-function-name m %struct-type %language=C++ %{ #include #include // defination of LookupTableElement is put to a header file in the real…
Map X
  • 444
  • 1
  • 4
  • 14
0
votes
1 answer

check my current gperf version

Is there a way to check the current of version of gperf on my computer? I want to use gperf3.0.3 instead of gperf3.0.4 looks like the only way to check it right now is just to reinstall
William Jia
  • 1,057
  • 2
  • 9
  • 12
0
votes
1 answer

Failed to install MySQL 5.5.25-1 source package on RedHat

I'm trying to install MySQL-5.5.25-1.linux2.6.src.rpm package on RedHat machine, but error occurs when doing rpmbuild. It prompts that gperf is needed, but I already have gperf 3.0.4 installed. What should I do to solve this problem? [root@localhost…
ciphor
  • 8,018
  • 11
  • 53
  • 70
1
2