From 586c684815d71063cb39670f2398b5261de91ed5 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Fri, 30 Mar 2007 19:20:52 +0000 Subject: [PATCH] (transform_name_fp): Change signature. All callers updated. --- src/transform.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/transform.c b/src/transform.c index fd2ed51..a74146b 100644 --- a/src/transform.c +++ b/src/transform.c @@ -498,21 +498,21 @@ _transform_name_to_obstack (char *input) } bool -transform_name_fp (char **pinput, char *(*fun)(char *)) +transform_name_fp (char **pinput, char *(*fun)(char *, void *), void *dat) { char *str; bool ret = _transform_name_to_obstack (*pinput); if (ret) { str = obstack_finish (&stk); - assign_string (pinput, fun ? fun (str) : str); + assign_string (pinput, fun ? fun (str, dat) : str); obstack_free (&stk, str); } else if (fun) { str = *pinput; *pinput = NULL; - assign_string (pinput, fun (str)); + assign_string (pinput, fun (str, dat)); free (str); ret = true; } @@ -522,6 +522,6 @@ transform_name_fp (char **pinput, char *(*fun)(char *)) bool transform_name (char **pinput) { - return transform_name_fp (pinput, NULL); + return transform_name_fp (pinput, NULL, NULL); } -- 2.45.2