From: Sergey Poznyakoff Date: Fri, 30 Mar 2007 19:20:52 +0000 (+0000) Subject: (transform_name_fp): Change signature. All callers updated. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=586c684815d71063cb39670f2398b5261de91ed5;p=chaz%2Ftar (transform_name_fp): Change signature. All callers updated. --- 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); }