ok mmcc@

Edgar Pettijohn wrote:
> Index: buf.c
> ===================================================================
> RCS file: /cvs/src/bin/ed/buf.c,v
> retrieving revision 1.22
> diff -u -p -u -r1.22 buf.c
> --- buf.c    9 Oct 2015 19:47:02 -0000    1.22
> +++ buf.c    16 Mar 2016 23:23:53 -0000
> @@ -30,6 +30,15 @@
>   */
> 
>  #include <sys/stat.h>
> +#include <sys/types.h>
> +
> +#include <limits.h>
> +#include <regex.h>
> +#include <signal.h>
> +#include <stdlib.h>
> +#include <stdio.h>
> +#include <string.h>
> +#include <unistd.h>
> 
>  #include "ed.h"
> 
> Index: ed.h
> ===================================================================
> RCS file: /cvs/src/bin/ed/ed.h,v
> retrieving revision 1.21
> diff -u -p -u -r1.21 ed.h
> --- ed.h    9 Oct 2015 21:24:05 -0000    1.21
> +++ ed.h    16 Mar 2016 23:11:41 -0000
> @@ -30,16 +30,6 @@
>   *    @(#)ed.h,v 1.5 1994/02/01 00:34:39 alm Exp
>   */
> 
> -#include <sys/types.h>
> -#include <errno.h>
> -#include <limits.h>
> -#include <regex.h>
> -#include <signal.h>
> -#include <stdio.h>
> -#include <stdlib.h>
> -#include <string.h>
> -#include <unistd.h>
> -
>  #define ERR        (-2)
>  #define EMOD        (-3)
>  #define FATAL        (-4)
> Index: glbl.c
> ===================================================================
> RCS file: /cvs/src/bin/ed/glbl.c,v
> retrieving revision 1.17
> diff -u -p -u -r1.17 glbl.c
> --- glbl.c    9 Oct 2015 20:27:28 -0000    1.17
> +++ glbl.c    16 Mar 2016 23:26:10 -0000
> @@ -32,6 +32,12 @@
>  #include <sys/ioctl.h>
>  #include <sys/wait.h>
> 
> +#include <regex.h>
> +#include <signal.h>
> +#include <stdio.h>
> +#include <stdlib.h>
> +#include <string.h>
> +
>  #include "ed.h"
> 
>  static int set_active_node(line_t *);
> Index: io.c
> ===================================================================
> RCS file: /cvs/src/bin/ed/io.c,v
> retrieving revision 1.18
> diff -u -p -u -r1.18 io.c
> --- io.c    9 Oct 2015 20:27:28 -0000    1.18
> +++ io.c    16 Mar 2016 23:28:09 -0000
> @@ -28,6 +28,12 @@
>   * SUCH DAMAGE.
>   */
> 
> +#include <regex.h>
> +#include <signal.h>
> +#include <stdio.h>
> +#include <stdlib.h>
> +#include <string.h>
> +
>  #include "ed.h"
> 
>  static int read_stream(FILE *, int);
> Index: main.c
> ===================================================================
> RCS file: /cvs/src/bin/ed/main.c,v
> retrieving revision 1.56
> diff -u -p -u -r1.56 main.c
> --- main.c    20 Nov 2015 08:53:28 -0000    1.56
> +++ main.c    16 Mar 2016 23:31:16 -0000
> @@ -44,11 +44,19 @@
>  #include <sys/ioctl.h>
>  #include <sys/stat.h>
>  #include <sys/wait.h>
> +
>  #include <ctype.h>
> +#include <err.h>
> +#include <errno.h>
> +#include <limits.h>
> +#include <pwd.h>
> +#include <regex.h>
>  #include <setjmp.h>
> +#include <signal.h>
> +#include <stdio.h>
> +#include <stdlib.h>
> +#include <string.h>
>  #include <unistd.h>
> -#include <pwd.h>
> -#include <err.h>
> 
>  #include "ed.h"
> 
> Index: re.c
> ===================================================================
> RCS file: /cvs/src/bin/ed/re.c,v
> retrieving revision 1.16
> diff -u -p -u -r1.16 re.c
> --- re.c    9 Oct 2015 21:24:05 -0000    1.16
> +++ re.c    16 Mar 2016 23:34:46 -0000
> @@ -29,6 +29,12 @@
>   * SUCH DAMAGE.
>   */
> 
> +#include <regex.h>
> +#include <signal.h>
> +#include <stdio.h>
> +#include <stdlib.h>
> +#include <string.h>
> +
>  #include "ed.h"
> 
>  static char *extract_pattern(int);
> Index: sub.c
> ===================================================================
> RCS file: /cvs/src/bin/ed/sub.c,v
> retrieving revision 1.14
> diff -u -p -u -r1.14 sub.c
> --- sub.c    9 Oct 2015 20:27:28 -0000    1.14
> +++ sub.c    16 Mar 2016 23:36:29 -0000
> @@ -29,6 +29,13 @@
>   * SUCH DAMAGE.
>   */
> 
> +#include <limits.h>
> +#include <regex.h>
> +#include <signal.h>
> +#include <stdio.h>
> +#include <stdlib.h>
> +#include <string.h>
> +
>  #include "ed.h"
> 
>  static char *extract_subst_template(void);
> Index: undo.c
> ===================================================================
> RCS file: /cvs/src/bin/ed/undo.c,v
> retrieving revision 1.13
> diff -u -p -u -r1.13 undo.c
> --- undo.c    9 Oct 2015 19:47:02 -0000    1.13
> +++ undo.c    16 Mar 2016 23:37:46 -0000
> @@ -28,8 +28,12 @@
>   * SUCH DAMAGE.
>   */
> 
> -#include "ed.h"
> +#include <regex.h>
> +#include <signal.h>
> +#include <stdio.h>
> +#include <stdlib.h>
> 
> +#include "ed.h"
> 
>  #define USIZE 100                /* undo stack size */
>  static undo_t *ustack = NULL;            /* undo stack */
> 

Reply via email to