Go to the source code of this file.
Function Documentation
The explain_parse_bits_or_die function may be used to parse an input string against a table of bitfields. There may be symbols (from the bits table) or numeric conatsnts (using C notation) and there may be plus (+) or bit-wise-or (|) operators.
- Parameters:
-
text | The text to be parsed. |
table | The table of symbols for the parser. |
table_size | The lentgh of the table of symbols. |
caption | Caption to add to start of error message, or NULL for none |
- Returns:
- The value of the expression. Does not return on error, but prints diagnostic and exits EXIT_FAILURE.
- Note:
- this function is not thread safe
Definition at line 31 of file or_die.c.