File: parse.h

package info (click to toggle)
fdutils 5.3-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,004 kB
  • ctags: 621
  • sloc: ansic: 6,098; sh: 2,236; makefile: 279; sed: 4
file content (22 lines) | stat: -rw-r--r-- 425 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef PARSE_H
#define PARSE_H

typedef struct keyword_l {
	char *name;
	int slot;
	int *var;
	int deflt;
} keyword_t;

int _set_int(char *name, keyword_t *ids, int size, int *mask);
void _zero_all(keyword_t *ids, int size, int *mask);



#define set_int(string, ids, mask)  \
_set_int(string, ids, sizeof(ids)/sizeof(ids[0]), mask);

#define zero_all(ids, mask)  \
_zero_all(ids, sizeof(ids)/sizeof(ids[0]), mask);

#endif