Coding Guidelines/Parsing Functions: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(man links) |
||
Line 1: | Line 1: | ||
Although Amanda does use lex/yacc to handle the | Although Amanda does use lex/yacc to handle the {{man|8|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 -- <tt>common-src/amanda.h</tt>. The comments in that file should be taken as authoritative on their inner functioning. See <tt>server-src/infofile.c</tt> 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. | These functions should probably not be used in any newly developed code. Rather, use regular expressions or a more advanced data structure. |
Latest revision as of 23:07, 30 June 2008
Although Amanda does use lex/yacc to handle the amrecover(8) 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.