Coding Guidelines/Parsing Functions: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(No difference)
|
Revision as of 20:23, 30 May 2007
Although Amanda does use lex/yacc to handle the amrecover command line, most other parsing is done "manually." A few functions (macros) have been defined to make this easier. They're all defined in -- where else -- common-src/amanda.h. The comments in that file should be taken as authoritative on their inner functioning. See server-src/infofile.c for an example of their use.
These functions should probably not be used in any newly developed code. Rather, use regular expressions or a more advanced data structure.