From 164a716f964bba247c660bc70149234f95146871 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Mon, 18 Jul 2005 23:51:27 +0000 Subject: busybox-1.0.1-rc1.patch http://busybox.net/lists/busybox/2005-July/014974.html --- busybox/scripts/config/expr.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'busybox/scripts/config/expr.c') diff --git a/busybox/scripts/config/expr.c b/busybox/scripts/config/expr.c index 10f4523..30e4f9d 100644 --- a/busybox/scripts/config/expr.c +++ b/busybox/scripts/config/expr.c @@ -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); +} -- cgit v1.1