Lines Matching refs:arg
102 static unsigned expand(char *arg, char **buffer_p) in expand() argument
110 while (*arg) { in expand()
115 if (*arg == '\\') { in expand()
117 arg++; in expand()
118 z = arg; in expand()
120 arg = (char *)z; in expand()
121 arg--; in expand()
122 *arg = ac; in expand()
128 if (arg[1] == '-') { /* "0-9..." */ in expand()
129 ac = arg[2]; in expand()
131 buffer[pos++] = *arg++; /* copy '0' */ in expand()
134 i = (unsigned char) *arg; in expand()
135 arg += 3; /* skip 0-9 or 0-\ */ in expand()
138 z = arg; in expand()
140 arg = (char *)z; in expand()
147 && *arg == '[' in expand()
149 arg++; in expand()
150 i = (unsigned char) *arg++; in expand()
178 i = 7 + (arg[0] == 'x'); in expand()
179 tmp = xstrndup(arg, i); in expand()
186 arg += i; in expand()
229 buffer[pos++] = *arg; /* copy CHAR */ in expand()
230 if (!arg[0] || arg[1] != '=' || arg[2] != ']') in expand()
232 arg += 3; /* skip CHAR=] */ in expand()
242 arg -= 2; /* points to "[" in "[xyz..." */ in expand()
244 buffer[pos++] = *arg++; in expand()