X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=m4%2Fpsi_struct.m4;h=ce04f3d393657d91666e8f6a498bfaccdde6b8ac;hb=5abcb8724ac7046d62203ea643e9ce69f63a6a8a;hp=430baf7e035eab0628372016185b81f6859ef980;hpb=2421d323be79e4a811a4197914330a8c0124b130;p=m6w6%2Fext-psi diff --git a/m4/psi_struct.m4 b/m4/psi_struct.m4 index 430baf7..ce04f3d 100644 --- a/m4/psi_struct.m4 +++ b/m4/psi_struct.m4 @@ -17,8 +17,8 @@ AC_DEFUN(PSI_STRUCT, [ psi_struct_name=m4_bregexp([$1], [^\(struct \)?\(\w+\)], [\2]) psi_struct_members="{PSI_T_STRUCT, \"struct\", \"$psi_struct_name\", 0, $AS_TR_SH([ac_cv_sizeof_]$1), 0, 0}" ifelse([$2],,,[m4_map_args_sep([PSI_STRUCT_MEMBER($1, m4_normalize(], [))], [], $2)]) - PSI_STRUCTS="$psi_struct_members, {0}, $PSI_STRUCTS" + cat >>$PSI_STRUCTS <<<" $psi_struct_members, {0}, " if test "$1" = "$psi_struct_name"; then - PSI_TYPES="{PSI_T_STRUCT, \"$1\", \"$1\"}, $PSI_TYPES" + cat >>$PSI_TYPES <<<" {PSI_T_STRUCT, \"$1\", \"$1\"}, " fi ])