Lines Matching defs:RHS
94 ctx->RHS = malloc(strlen(DEF_RHS) + 1);
95 if (ctx->LHS == NULL || ctx->RHS == NULL) {
100 strcpy(ctx->RHS, DEF_RHS); /* (checked) */
106 * The default RHS can be overridden by an environment
111 if (ctx->RHS)
112 free(ctx->RHS);
113 ctx->RHS = malloc(RHSlen);
114 if (!ctx->RHS) {
119 strcpy(ctx->RHS, cp); /* (checked) */
121 strcpy(ctx->RHS, "."); /* (checked) */
122 strcat(ctx->RHS, cp); /* (checked) */
130 if (!ctx->RHS) {
158 if (ctx->RHS)
159 free(ctx->RHS);
177 const char *RHS, *cp;
179 /* Decide what our RHS is, and set cp to the end of the actual name. */
182 RHS = cp + 1;
185 RHS = *rhs_list;
191 RHS = ctx->RHS;
199 if ((bindname = malloc((cp - name) + strlen(type) + strlen(RHS) +
217 if (RHS[0] != '.')
219 strcat(bindname, RHS);
281 if (ctx->RHS)
282 free(ctx->RHS);
285 ctx->RHS = ctx->LHS = 0;
314 cpp = &ctx->RHS;
330 if (ctx->RHS)
331 free(ctx->RHS);
334 ctx->RHS = ctx->LHS = 0;