Lines Matching refs:l

67 #define	EATAB {while (isascii((unsigned char) *l) && \
68 isspace((unsigned char) *l)) ++l;}
69 #define LOWCASE(l) (isupper((unsigned char) (l)) ? \ argument
70 tolower((unsigned char) (l)) : (l))
208 get_type(const char *l, const char **t) in get_type() argument
213 if (strncmp(l, p->name, p->len) == 0) { in get_type()
215 *t = l + p->len; in get_type()
1065 get_cond(const char *l, const char **t) argument
1080 if (strncmp(l, p->name, p->len) == 0 &&
1081 isspace((unsigned char)l[p->len])) {
1083 *t = l + p->len;
1147 const char *l = line; local
1154 while (*l == '>') {
1155 ++l; /* step over */
1210 if (*l == '&') { /* m->cont_level == 0 checked below. */
1211 ++l; /* step over */
1214 if (*l == '(') {
1215 ++l; /* step over */
1220 if (*l == '&') { /* m->cont_level == 0 checked below */
1221 ++l; /* step over */
1231 m->offset = (uint32_t)strtoul(l, &t, 0);
1232 if (l == t)
1234 file_magwarn(ms, "offset `%s' invalid", l);
1235 l = t;
1243 if (*l == '.') {
1244 l++;
1245 switch (*l) {
1289 *l);
1292 l++;
1296 if (*l == '~') {
1298 l++;
1300 if ((op = get_op(*l)) != -1) {
1302 l++;
1304 if (*l == '(') {
1306 l++;
1308 if (isdigit((unsigned char)*l) || *l == '-') {
1309 m->in_offset = (int32_t)strtol(l, &t, 0);
1310 if (l == t)
1313 "in_offset `%s' invalid", l);
1314 l = t;
1316 if (*l++ != ')' ||
1317 ((m->in_op & FILE_OPINDIRECT) && *l++ != ')'))
1325 m->cond = get_cond(l, &l);
1332 if (*l == 'u') {
1333 ++l;
1337 m->type = get_type(l, &l);
1340 file_magwarn(ms, "type `%s' invalid", l);
1352 if (*l == '~') {
1357 ++l;
1361 if ((op = get_op(*l)) != -1) {
1364 ++l;
1366 val = (uint64_t)strtoull(l, &t, 0);
1367 l = t;
1369 eatsize(&l);
1373 while (!isspace((unsigned char)*++l)) {
1374 switch (*l) {
1385 strtoul(l, &t, 0));
1389 l = t - 1;
1449 "invalid", *l);
1453 if (l[1] == '/' &&
1454 !isspace((unsigned char)l[2]))
1455 l++;
1472 switch (*l) {
1475 m->reln = *l;
1476 ++l;
1477 if (*l == '=') {
1483 ++l;
1490 m->reln = *l;
1491 ++l;
1492 if (*l == '=') {
1494 ++l;
1498 m->reln = *l;
1499 ++l;
1503 if (*l == 'x' && ((isascii((unsigned char)l[1]) &&
1504 isspace((unsigned char)l[1])) || !l[1])) {
1505 m->reln = *l;
1506 ++l;
1513 if (m->reln != 'x' && getvalue(ms, m, &l, action))
1526 if (l[0] == '\b') {
1527 ++l;
1529 } else if ((l[0] == '\\') && (l[1] == 'b')) {
1530 ++l;
1531 ++l;
1534 for (i = 0; (m->desc[i++] = *l++) != '\0' && i < sizeof(m->desc); )
1563 const char *l = line; local
1575 switch (*l) {
1581 m->factor_op = *l++;
1584 file_magwarn(ms, "Unknown factor op `%c'", *l);
1588 factor = strtoul(l, &el, 0);
1594 file_magwarn(ms, "Bad factor `%s'", l);
1618 const char *l = line; local
1623 "`%.8s', new type `%s'", m->mimetype, l);
1628 for (i = 0; *l && ((isascii((unsigned char)*l) &&
1629 isalnum((unsigned char)*l)) || strchr("-+/.", *l)) &&
1630 i < sizeof(m->apple); m->apple[i++] = *l++)
1632 if (i == sizeof(m->apple) && *l) {
1653 const char *l = line; local
1658 " new type `%s'", m->mimetype, l);
1663 for (i = 0; *l && ((isascii((unsigned char)*l) &&
1664 isalnum((unsigned char)*l)) || strchr("-+/.", *l)) &&
1665 i < sizeof(m->mimetype); m->mimetype[i++] = *l++)
2160 const char *l = *p; local
2162 if (LOWCASE(*l) == 'u')
2163 l++;
2165 switch (LOWCASE(*l)) {
2171 l++;
2177 *p = l;