X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=m4%2Fpsi_decl.m4;h=c331bbecc658fa4aa8a6f3e7655323cc6e15962d;hp=69f8edb4e7b2c92905b142a132e391c9ebfb3361;hb=b1720af16e5d7765e2effcd16e23f351c2f82e54;hpb=0e6d6d0bdaf5cca59d04a8f4e9fcca8a65f341d8 diff --git a/m4/psi_decl.m4 b/m4/psi_decl.m4 index 69f8edb..c331bbe 100644 --- a/m4/psi_decl.m4 +++ b/m4/psi_decl.m4 @@ -1,5 +1,5 @@ AC_DEFUN(PSI_REDIR, [psi_symbol=ifelse([$2],[],[$1],[$2]) - PSI_REDIRS="{\"$1\", (void(*)(void))$psi_symbol}, $PSI_REDIRS"]) + cat >>$PSI_REDIRS <<<" {\"$1\", (void(*)(void))$psi_symbol}, "]) AC_DEFUN(PSI_FUNC_LIBC_MAIN, [ AC_REQUIRE([AC_PROG_NM]) @@ -61,14 +61,14 @@ AC_DEFUN(PSI_DECL, [ [m4_map_args_sep([PSI_DECL_ARG(m4_normalize(], [))], [], m4_bregexp([$2], [(\(.*\))], [\1]))]) PSI_FUNC(PSI_VAR_NAME($1), [ ifelse([$3], vararg, [ - PSI_VA_DECLS="$psi_decl_args, {0}, $PSI_VA_DECLS" + cat >>$PSI_VA_DECLS <<<" $psi_decl_args, {0}, " ], [ - PSI_DECLS="$psi_decl_args, {0}, $PSI_DECLS" + cat >>$PSI_DECLS <<<" $psi_decl_args, {0}, " ]) ], [ PSI_MACRO($1, $2, [ ifelse([$3], vararg, AC_MSG_ERROR(varargs macro support is not implemented),[]) - PSI_DECLS="$psi_decl_args, {0}, $PSI_DECLS" + cat >>$PSI_DECLS <<<" $psi_decl_args, {0}, " ]) ]) ])