emacs-pretest-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compilation of Unicode Emacs 23 breaks in prefix-args.c


From: Thien-Thi Nguyen
Subject: Re: Compilation of Unicode Emacs 23 breaks in prefix-args.c
Date: 08 Feb 2006 05:10:53 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4

Peter Dyballa <address@hidden> writes:

>       /Users/pete/Quellen/Emacs_CVS/emacs-unicode-trans/src/prefix-args.c:
> In function `main':
>       /Users/pete/Quellen/Emacs_CVS/emacs-unicode-trans/src/prefix-args.c:
> 63: warning: incompatible implicit declaration of built-in function  `exit'
>       /Users/pete/Quellen/Emacs_CVS/emacs-unicode-trans/src/prefix-args.c:
> 72: warning: incompatible implicit declaration of built-in function  `exit'
>       make[2]: Target `bootstrap' not remade because of errors.
>       make[1]: *** [bootstrap-build] Error 2
>       make: *** [bootstrap] Error 2

does the following patch give good results?

thi


_____________________
*** prefix-args.c       6 Feb 2006 15:23:21 -0000       1.7
--- prefix-args.c       8 Feb 2006 10:07:25 -0000
***************
*** 44,50 ****
     If I can't write a completely portable program to do this in C,
     I'm quitting and taking up gardening.  */
  
! #include <stdio.h>
  
  int
  main (argc, argv)
--- 44,52 ----
     If I can't write a completely portable program to do this in C,
     I'm quitting and taking up gardening.  */
  
! #ifdef HAVE_CONFIG_H
! #include <config.h> /* jimb: carrots and tomatoes, please! --ttn 2006-02-08 */
! #endif
  
  int
  main (argc, argv)
***************
*** 61,67 ****
      {
        fprintf (stderr, "Usage: %s PREFIX ARGS...\n\
  Echo each ARG preceded by PREFIX and a space.\n", progname);
!       exit (2);
      }
  
    prefix = argv[0];
--- 63,69 ----
      {
        fprintf (stderr, "Usage: %s PREFIX ARGS...\n\
  Echo each ARG preceded by PREFIX and a space.\n", progname);
!       return EXIT_FAILURE;
      }
  
    prefix = argv[0];
***************
*** 70,76 ****
    for (; argc > 0; argc--, argv++)
      printf ("%s %s%c", prefix, argv[0], (argc > 1) ? ' ' : '\n');
  
!   exit (0);
  }
  
  /* arch-tag: 08136d70-e5c0-49c7-bcd8-b4850233977a
--- 72,78 ----
    for (; argc > 0; argc--, argv++)
      printf ("%s %s%c", prefix, argv[0], (argc > 1) ? ' ' : '\n');
  
!   return EXIT_SUCCESS;
  }
  
  /* arch-tag: 08136d70-e5c0-49c7-bcd8-b4850233977a







reply via email to

[Prev in Thread] Current Thread [Next in Thread]