Lines Matching refs:rwp
152 struct rewrite *rwp = NULL; local
258 if (rwp == NULL)
260 RewriteRules[ruleset] = rwp =
261 (struct rewrite *) sm_malloc_tagged_x(sizeof(*rwp),
266 rwp->r_next = (struct rewrite *) sm_malloc_tagged_x(sizeof(*rwp),
268 rwp = rwp->r_next;
270 rwp->r_next = NULL;
275 rwp->r_lhs = prescan(exbuf, '\t', pvpbuf,
280 if (rwp->r_lhs != NULL)
284 rwp->r_lhs = copyplist(rwp->r_lhs, true, NULL);
287 for (ap = rwp->r_lhs; *ap != NULL; ap++)
342 rwp->r_line = LineNumber;
347 rwp->r_lhs = null_list;
352 rwp->r_lhs = null_list;
363 rwp->r_rhs = prescan(exbuf, '\t', pvpbuf,
367 if (rwp->r_rhs != NULL)
376 rwp->r_rhs = copyplist(rwp->r_rhs, true, NULL);
383 for (ap = rwp->r_rhs; *ap != NULL; ap++)
516 rwp->r_rhs = null_list;
526 rwp = RewriteRules[ruleset];
527 if (rwp != NULL)
537 while (rwp->r_next != NULL)
538 rwp = rwp->r_next;
2176 register struct rewrite *rwp; in printrules() local
2185 for (rwp = RewriteRules[ruleset]; rwp != NULL; rwp = rwp->r_next) in printrules()
2188 printav(sm_debug_file(), rwp->r_lhs); in printrules()
2190 printav(sm_debug_file(), rwp->r_rhs); in printrules()