[PATCH] Rename makedoc's dup to prevent collisions
Craig Howland
howland@LGSInnovations.com
Wed Sep 26 19:36:00 GMT 2012
Michael:
I think that this is not enough. Don't you also need to change the
"dup" in doc.str?
Craig
On 09/20/2012 10:47 PM, Michael Hope wrote:
> Rename the dup word in makedoc to prevent it colliding with dup(2).
> This shows
> up when building for the Linux Standard Base 3.0 as the LSB stdio.h
> #includes unistd.h.
>
> OK?
>
> -- Michael
>
> newlib/
>
> 2012-09-21 Michael Hope <michael.hope@linaro.org>
>
> * doc/makedoc.c (dup_): Rename to avoid colliding with dup(2).
>
> diff --git a/newlib/doc/makedoc.c b/newlib/doc/makedoc.c
> index 0bbffb6..7d38a5d 100644
> --- a/newlib/doc/makedoc.c
> +++ b/newlib/doc/makedoc.c
> @@ -1012,7 +1012,7 @@ WORD(swap)
>
> }
>
> -WORD(dup)
> +WORD(dup_)
> {
> tos++;
> init_string(tos);
> @@ -1410,7 +1410,7 @@ char *av[])
> add_intrinsic("skip_past_newline", skip_past_newline );
> add_intrinsic("catstr", icatstr );
> add_intrinsic("copy_past_newline", icopy_past_newline );
> - add_intrinsic("dup", dup );
> + add_intrinsic("dup", dup_ );
> add_intrinsic("remchar", remchar );
> add_intrinsic("get_stuff_in_command", get_stuff_in_command );
> add_intrinsic("get_stuff_in_angle", get_stuff_in_angle );
More information about the Newlib
mailing list