Lines Matching refs:RHS
94 ctx->RHS = malloc(strlen(DEF_RHS) + 1); in hesiod_init()
95 if (ctx->LHS == NULL || ctx->RHS == NULL) { in hesiod_init()
100 strcpy(ctx->RHS, DEF_RHS); /* (checked) */ in hesiod_init()
111 if (ctx->RHS) in hesiod_init()
112 free(ctx->RHS); in hesiod_init()
113 ctx->RHS = malloc(RHSlen); in hesiod_init()
114 if (!ctx->RHS) { in hesiod_init()
119 strcpy(ctx->RHS, cp); /* (checked) */ in hesiod_init()
121 strcpy(ctx->RHS, "."); /* (checked) */ in hesiod_init()
122 strcat(ctx->RHS, cp); /* (checked) */ in hesiod_init()
130 if (!ctx->RHS) { in hesiod_init()
158 if (ctx->RHS) in hesiod_end()
159 free(ctx->RHS); in hesiod_end()
177 const char *RHS, *cp; in hesiod_to_bind() local
182 RHS = cp + 1; in hesiod_to_bind()
185 RHS = *rhs_list; in hesiod_to_bind()
191 RHS = ctx->RHS; in hesiod_to_bind()
199 if ((bindname = malloc((cp - name) + strlen(type) + strlen(RHS) + in hesiod_to_bind()
217 if (RHS[0] != '.') in hesiod_to_bind()
219 strcat(bindname, RHS); in hesiod_to_bind()
281 if (ctx->RHS) in parse_config_file()
282 free(ctx->RHS); in parse_config_file()
285 ctx->RHS = ctx->LHS = 0; in parse_config_file()
314 cpp = &ctx->RHS; in parse_config_file()
330 if (ctx->RHS) in parse_config_file()
331 free(ctx->RHS); in parse_config_file()
334 ctx->RHS = ctx->LHS = 0; in parse_config_file()