Lines Matching defs:data
1016 void expr_print(struct expr *e, void (*fn)(void *, struct symbol *, const char *), void *data, int prevtoken)
1019 fn(data, NULL, "y");
1024 fn(data, NULL, "(");
1028 fn(data, e->left.sym, e->left.sym->name);
1030 fn(data, NULL, "<choice>");
1033 fn(data, NULL, "!");
1034 expr_print(e->left.expr, fn, data, E_NOT);
1038 fn(data, e->left.sym, e->left.sym->name);
1040 fn(data, NULL, "<choice>");
1041 fn(data, NULL, "=");
1042 fn(data, e->right.sym, e->right.sym->name);
1046 fn(data, e->left.sym, e->left.sym->name);
1048 fn(data, NULL, "<choice>");
1049 fn(data, NULL, "!=");
1050 fn(data, e->right.sym, e->right.sym->name);
1053 expr_print(e->left.expr, fn, data, E_OR);
1054 fn(data, NULL, " || ");
1055 expr_print(e->right.expr, fn, data, E_OR);
1058 expr_print(e->left.expr, fn, data, E_AND);
1059 fn(data, NULL, " && ");
1060 expr_print(e->right.expr, fn, data, E_AND);
1063 fn(data, e->right.sym, e->right.sym->name);
1065 fn(data, NULL, " ^ ");
1066 expr_print(e->left.expr, fn, data, E_CHOICE);
1070 fn(data, NULL, "[");
1071 fn(data, e->left.sym, e->left.sym->name);
1072 fn(data, NULL, " ");
1073 fn(data, e->right.sym, e->right.sym->name);
1074 fn(data, NULL, "]");
1080 fn(data, NULL, buf);
1085 fn(data, NULL, ")");
1088 static void expr_print_file_helper(void *data, struct symbol *sym, const char *str)
1090 fwrite(str, strlen(str), 1, data);
1098 static void expr_print_gstr_helper(void *data, struct symbol *sym, const char *str)
1100 struct gstr *gs = (struct gstr*)data;