Lines Matching refs:res

1277 	const char	*res;	/* the string to be substituted */
1315 res = NULL;
1322 res = ubuf;
1410 res = roff_getstrn(r, stnam, naml);
1434 if (res == NULL) {
1438 res = "";
1439 } else if (buf->sz + strlen(res) > SHRT_MAX) {
1449 buf->buf, res, cp) + 1;
1454 stesc = nbuf + (stesc - buf->buf) + strlen(res);
1995 roff_getnum(const char *v, int *pos, int *res, int flags)
1999 if (NULL == res)
2000 res = &myres;
2011 for (*res = 0; isdigit((unsigned char)v[p]); p++)
2012 *res = 10 * *res + v[p] - '0';
2017 *res = -*res;
2023 scaled = *res * 65536;
2026 scaled = *res * 240;
2029 scaled = *res * 240 / 2.54;
2033 scaled = *res * 40;
2037 scaled = *res * 24;
2040 scaled = *res * 10 / 3;
2043 scaled = *res;
2046 scaled = *res * 6 / 25;
2049 scaled = *res;
2054 *res = scaled;
2299 roff_getop(const char *v, int *pos, char *res)
2302 *res = v[*pos];
2304 switch (*res) {
2316 *res = 'l';
2320 *res = '!';
2324 *res = 'i';
2334 *res = 'g';
2338 *res = 'a';
2354 return *res;
2363 const char *v, int *pos, int *res, int flags)
2367 return roff_getnum(v, pos, res, flags);
2370 if ( ! roff_evalnum(r, ln, v, pos, res, flags | ROFFNUM_WHITE))
2381 else if (NULL == res)
2393 int *pos, int *res, int flags)
2407 if ( ! roff_evalpar(r, ln, v, pos, res, flags))
2429 if (NULL == res)
2434 *res += operand2;
2437 *res -= operand2;
2440 *res *= operand2;
2446 *res = 0;
2449 *res /= operand2;
2455 *res = 0;
2458 *res %= operand2;
2461 *res = *res < operand2;
2464 *res = *res > operand2;
2467 *res = *res <= operand2;
2470 *res = *res >= operand2;
2473 *res = *res == operand2;
2476 *res = *res != operand2;
2479 *res = *res && operand2;
2482 *res = *res || operand2;
2485 if (operand2 < *res)
2486 *res = operand2;
2489 if (operand2 > *res)
2490 *res = operand2;
3345 char *res;
3363 res = NULL;
3369 res = mandoc_realloc(res, ssz + sz + 1);
3370 memcpy(res + ssz, r->xtab[(int)*p].p, sz);
3375 res = mandoc_realloc(res, ssz + 2);
3376 res[ssz++] = *p++;
3391 res = mandoc_realloc(res,
3393 memcpy(res + ssz, cp->val.p, cp->val.sz);
3409 res = mandoc_realloc(res, ssz + sz + 1);
3410 memcpy(res + ssz, pp, sz);
3419 res = mandoc_realloc(res, ssz + sz + 1);
3420 memcpy(res + ssz, pp, sz);
3424 res[(int)ssz] = '\0';
3425 return res;