version 1.13, 2014/04/20 16:46:05 |
version 1.16, 2015/01/14 22:44:55 |
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
*/ |
*/ |
#ifdef HAVE_CONFIG_H |
|
#include "config.h" |
#include "config.h" |
#endif |
|
|
|
|
#include <sys/types.h> |
|
|
#include <ctype.h> |
#include <ctype.h> |
#include <stdio.h> |
#include <stdio.h> |
#include <stdlib.h> |
#include <stdlib.h> |
|
|
* |
* |
* options ::= option_list [:space:]* [;][\n] |
* options ::= option_list [:space:]* [;][\n] |
* option_list ::= option option_tail |
* option_list ::= option option_tail |
* option_tail ::= [:space:]+ option_list | |
* option_tail ::= [,:space:]+ option_list | |
* ::= epsilon |
* ::= epsilon |
* option ::= [:alpha:]+ args |
* option ::= [:alpha:]+ args |
* args ::= [:space:]* [(] [:alpha:]+ [)] |
* args ::= [:space:]* [(] [:alpha:]+ [)] |
|
|
|
|
buf[i] = '\0'; |
buf[i] = '\0'; |
|
|
while (isspace((unsigned char)p[*pos])) |
while (isspace((unsigned char)p[*pos]) || p[*pos] == ',') |
(*pos)++; |
(*pos)++; |
|
|
/* |
/* |
|
|
/* NOTREACHED */ |
/* NOTREACHED */ |
} |
} |
|
|
int |
void |
tbl_option(struct tbl_node *tbl, int ln, const char *p) |
tbl_option(struct tbl_node *tbl, int ln, const char *p) |
{ |
{ |
int pos; |
int pos; |
Line 265 tbl_option(struct tbl_node *tbl, int ln, const char *p |
|
Line 265 tbl_option(struct tbl_node *tbl, int ln, const char *p |
|
|
|
pos = 0; |
pos = 0; |
opt(tbl, ln, p, &pos); |
opt(tbl, ln, p, &pos); |
|
|
/* Always succeed. */ |
|
return(1); |
|
} |
} |