Lines Matching refs:param
42 static int proc_name(char *param, char *value);
43 static int proc_arch(char *param, char *value);
44 static int proc_version(char *param, char *value);
45 static int proc_category(char *param, char *value);
46 static int bad_first_char(char *param, char *value);
47 static int not_alnum(char *param, char *pt);
48 static int not_ascii(char *param, char *pt);
49 static int too_long(char *param, char *pt, int len);
50 static int isnull(char *param, char *pt);
53 ckparam(char *param, char *val) in ckparam() argument
58 if (strcmp(param, "NAME") == 0) in ckparam()
59 ret_val = proc_name(param, value); in ckparam()
61 else if (strcmp(param, "ARCH") == 0) in ckparam()
62 ret_val = proc_arch(param, value); in ckparam()
64 else if (strcmp(param, "VERSION") == 0) in ckparam()
65 ret_val = proc_version(param, value); in ckparam()
67 else if (strcmp(param, "CATEGORY") == 0) in ckparam()
68 ret_val = proc_category(param, value); in ckparam()
76 proc_name(char *param, char *value) in proc_name() argument
80 if (!(ret_val = isnull(param, value))) { in proc_name()
81 ret_val += too_long(param, value, MAXLEN); in proc_name()
82 ret_val += not_ascii(param, value); in proc_name()
89 proc_arch(char *param, char *value) in proc_arch() argument
94 if (!(ret_val = isnull(param, value))) { in proc_arch()
98 ret_val += too_long(param, token, TOKLEN); in proc_arch()
99 ret_val += not_ascii(param, token); in proc_arch()
108 proc_version(char *param, char *value) in proc_version() argument
112 if (!(ret_val = isnull(param, value))) { in proc_version()
113 ret_val += bad_first_char(param, value); in proc_version()
114 ret_val += too_long(param, value, MAXLEN); in proc_version()
115 ret_val += not_ascii(param, value); in proc_version()
122 proc_category(char *param, char *value) in proc_category() argument
127 if (!(ret_val = isnull(param, value))) { in proc_category()
131 ret_val += too_long(param, token, TOKLEN); in proc_category()
132 ret_val += not_alnum(param, token); in proc_category()
141 bad_first_char(char *param, char *value) in bad_first_char() argument
144 progerr(pkg_gt(ERR_CHAR), param); in bad_first_char()
152 isnull(char *param, char *pt) in isnull() argument
155 progerr(pkg_gt(ERR_UNDEF), param); in isnull()
162 too_long(char *param, char *pt, int len) in too_long() argument
165 progerr(pkg_gt(ERR_LEN), param); in too_long()
172 not_ascii(char *param, char *pt) in not_ascii() argument
176 progerr(pkg_gt(ERR_ASCII), param); in not_ascii()
185 not_alnum(char *param, char *pt) in not_alnum() argument
189 progerr(pkg_gt(ERR_ALNUM), param); in not_alnum()