Summary: | ASTERISK-00271: Suggestion: Standardize parameter passing and config file parsing | ||
Reporter: | davetroy (davetroy) | Labels: | |
Date Opened: | 2003-09-14 13:58:35 | Date Closed: | 2011-06-07 14:10:33 |
Priority: | Minor | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ||
Description: | In working on several applications, I have noticed there's a fair amount of heavy lifting regarding parsing of parameters and config files; all of it is pretty much based on simple pointer manipulation, strcpy/strchr, and is fairly unforgiving (using ',' instead of '|' as a delimiter will fail, etc). Suggest that a simple library of parameter parsing routines (a la getopt) and a config file parsing mechanism be used to standardize behavior across all applications, reduce chances for bogus pointer references (*NULL), and the like. | ||
Comments: | By: Brian West (bkw918) 2003-11-22 14:29:37.000-0600 http://bugs.digium.com/bug_view_page.php?bug_id=0000566 By: Brian West (bkw918) 2003-11-22 14:33:50.000-0600 Going to close this in favor of the options in bug 566 Dave can you post on the other bug/feature ticket? |