busybox-1.0.1-rc1.patch
[oweals/busybox.git] / busybox / scripts / config / expr.c
index 10f45232b4c716df8a301fd6c75f0f547b3018bc..30e4f9d69c2fbc2e080022f6fe5db49985207d9d 100644 (file)
@@ -1087,3 +1087,13 @@ void expr_fprint(struct expr *e, FILE *out)
 {
        expr_print(e, expr_print_file_helper, out, E_NONE);
 }
+
+static void expr_print_gstr_helper(void *data, const char *str)
+{
+       str_append((struct gstr*)data, str);
+}
+
+void expr_gstr_print(struct expr *e, struct gstr *gs)
+{
+       expr_print(e, expr_print_gstr_helper, gs, E_NONE);
+}