shithub: scc

Download patch

ref: 4dd43534558d8e24534d263a3bc1ca748052af9a
parent: 321d79d6f2f158bf005366a5c5f1756a58dca25d
author: Roberto E. Vargas Caballero <[email protected]>
date: Thu Sep 20 06:00:57 EDT 2018

Whitespace change

Don't use an empty line in the files anymore.

--- a/ar/posix/driver.h
+++ b/ar/posix/driver.h
@@ -1,4 +1,3 @@
-
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
--- a/as/target/x80/proc.h
+++ b/as/target/x80/proc.h
@@ -1,4 +1,3 @@
-
 enum args {
 	AREG_AF = AMAX,
 	AREG_A,
--- a/as/target/x86/proc.h
+++ b/as/target/x86/proc.h
@@ -1,4 +1,3 @@
-
 enum args {
 	AREG_CS = AMAX,
 	AREG_DS,
--- a/inc/ar.h
+++ b/inc/ar.h
@@ -1,4 +1,3 @@
-
 #define ARMAG      "!<arch>\n"     /* ar "magic number" */
 #define SARMAG     8               /* strlen(ARMAG); */
 #define ARFMAG     "`\n"
--- a/inc/coff32/aouthdr.h
+++ b/inc/coff32/aouthdr.h
@@ -1,4 +1,3 @@
-
 /* This file is inspired in the book "Understanding and using COFF" */
 
 struct aouthdr {
--- a/inc/coff32/coff32.h
+++ b/inc/coff32/coff32.h
@@ -1,4 +1,3 @@
-
 typedef int (*packfun)(unsigned char *, char *, ...);
 
 #ifdef AOUTHDR
--- a/inc/coff32/filehdr.h
+++ b/inc/coff32/filehdr.h
@@ -1,4 +1,3 @@
-
 /* This file is inspired in the book "Understanding and using COFF" */
 
 struct filehdr {
--- a/inc/coff32/linenum.h
+++ b/inc/coff32/linenum.h
@@ -1,4 +1,3 @@
-
 /* This file is inspired in the book "Understanding and using COFF" */
 
 struct lineno {
--- a/inc/coff32/reloc.h
+++ b/inc/coff32/reloc.h
@@ -1,4 +1,3 @@
-
 /* This file is inspired in the book "Understanding and using COFF" */
 
 struct reloc {
--- a/inc/coff32/scnhdr.h
+++ b/inc/coff32/scnhdr.h
@@ -1,4 +1,3 @@
-
 /* This file is inspired in the book "Understanding and using COFF" */
 
 #define SCNNMLEN 8
--- a/inc/coff32/syms.h
+++ b/inc/coff32/syms.h
@@ -1,4 +1,3 @@
-
 /* This file is inspired in the book "Understanding and using COFF" */
 
 #define E_SYMNMLEN   8
--- a/inc/myro.h
+++ b/inc/myro.h
@@ -1,4 +1,3 @@
-
 #define MYROHDR_SIZ    48
 #define MYROSECT_SIZ   24
 #define MYROSYM_SIZ    26
--- a/inc/syslibs.def.h
+++ b/inc/syslibs.def.h
@@ -1,4 +1,3 @@
-
 #define MAX_LIB_PATHS	32
 
 char *syslibs[MAX_LIB_PATHS + 1] = {
--- a/ld/ld.h
+++ b/ld/ld.h
@@ -1,4 +1,3 @@
-
 #define INSTALL   1
 #define NOINSTALL 0
 
--- a/lib/c/__abs.c
+++ b/lib/c/__abs.c
@@ -1,4 +1,3 @@
-
 #define __USE_MACROS
 #include <stdlib.h>
 
--- a/lib/c/__getc.c
+++ b/lib/c/__getc.c
@@ -1,4 +1,3 @@
-
 #include <errno.h>
 #include <stdio.h>
 #include "syscall.h"
--- a/lib/c/__labs.c
+++ b/lib/c/__labs.c
@@ -1,4 +1,3 @@
-
 #define __USE_MACROS
 #include <stdlib.h>
 
--- a/lib/c/__llabs.c
+++ b/lib/c/__llabs.c
@@ -1,4 +1,3 @@
-
 #define __USE_MACROS
 #include <stdlib.h>
 
--- a/lib/c/__putc.c
+++ b/lib/c/__putc.c
@@ -1,4 +1,3 @@
-
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
--- a/lib/c/_flsbuf.c
+++ b/lib/c/_flsbuf.c
@@ -1,4 +1,3 @@
-
 #include <errno.h>
 #include <stdio.h>
 #include "syscall.h"
--- a/lib/c/_fpopen.c
+++ b/lib/c/_fpopen.c
@@ -1,4 +1,3 @@
-
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
--- a/lib/c/abort.c
+++ b/lib/c/abort.c
@@ -1,4 +1,3 @@
-
 #include <signal.h>
 #include <stdlib.h>
 #undef abort
--- a/lib/c/abs.c
+++ b/lib/c/abs.c
@@ -1,4 +1,3 @@
-
 #include <stdlib.h>
 #undef abs
 
--- a/lib/c/bsearch.c
+++ b/lib/c/bsearch.c
@@ -1,4 +1,3 @@
-
 #include <stdlib.h>
 
 void *
--- a/lib/c/clearerr.c
+++ b/lib/c/clearerr.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #undef clearerr
 
--- a/lib/c/fclose.c
+++ b/lib/c/fclose.c
@@ -1,4 +1,3 @@
-
 #include <stdlib.h>
 #include <stdio.h>
 #include "syscall.h"
--- a/lib/c/feof.c
+++ b/lib/c/feof.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #undef feof
 
--- a/lib/c/ferror.c
+++ b/lib/c/ferror.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #undef ferror
 
--- a/lib/c/fgetc.c
+++ b/lib/c/fgetc.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #undef fgetc
 
--- a/lib/c/fopen.c
+++ b/lib/c/fopen.c
@@ -1,4 +1,3 @@
-
 #include <errno.h>
 #include <stdio.h>
 
--- a/lib/c/fputc.c
+++ b/lib/c/fputc.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #undef fputc
 
--- a/lib/c/fputs.c
+++ b/lib/c/fputs.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #undef fputs
 
--- a/lib/c/fread.c
+++ b/lib/c/fread.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #undef fread
 
--- a/lib/c/freopen.c
+++ b/lib/c/freopen.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 
 #include "syscall.h"
--- a/lib/c/fseek.c
+++ b/lib/c/fseek.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #include "syscall.h"
 #undef fseek
--- a/lib/c/fwrite.c
+++ b/lib/c/fwrite.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #undef fwrite
 
--- a/lib/c/getc.c
+++ b/lib/c/getc.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #undef getc
 
--- a/lib/c/getchar.c
+++ b/lib/c/getchar.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #undef getchar
 
--- a/lib/c/isblank.c
+++ b/lib/c/isblank.c
@@ -1,4 +1,3 @@
-
 #include <ctype.h>
 
 int
--- a/lib/c/labs.c
+++ b/lib/c/labs.c
@@ -1,4 +1,3 @@
-
 #include <stdlib.h>
 #undef labs
 
--- a/lib/c/llabs.c
+++ b/lib/c/llabs.c
@@ -1,4 +1,3 @@
-
 #include <stdlib.h>
 #undef llabs
 
--- a/lib/c/perror.c
+++ b/lib/c/perror.c
@@ -1,4 +1,3 @@
-
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
--- a/lib/c/putc.c
+++ b/lib/c/putc.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #undef putc
 
--- a/lib/c/putchar.c
+++ b/lib/c/putchar.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #undef putchar
 
--- a/lib/c/puts.c
+++ b/lib/c/puts.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #undef puts
 
--- a/lib/c/qsort.c
+++ b/lib/c/qsort.c
@@ -1,4 +1,3 @@
-
 #include <stdlib.h>
 #include <string.h>
 #undef qsort
--- a/lib/c/rewind.c
+++ b/lib/c/rewind.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #undef rewind
 
--- a/lib/c/setbuf.c
+++ b/lib/c/setbuf.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #undef setbuf
 
--- a/lib/c/setvbuf.c
+++ b/lib/c/setvbuf.c
@@ -1,4 +1,3 @@
-
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
--- a/lib/c/snprintf.c
+++ b/lib/c/snprintf.c
@@ -1,4 +1,3 @@
-
 #include <stdarg.h>
 #include <stdio.h>
 #undef snprintf
--- a/lib/c/sprintf.c
+++ b/lib/c/sprintf.c
@@ -1,4 +1,3 @@
-
 #include <stdarg.h>
 #include <stdio.h>
 #undef sprintf
--- a/lib/c/stdio.c
+++ b/lib/c/stdio.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 
 static unsigned char inbuf[BUFSIZ];
--- a/lib/c/strerror.c
+++ b/lib/c/strerror.c
@@ -1,4 +1,3 @@
-
 #include <errno.h>
 #include <string.h>
 #undef strerror
--- a/lib/c/target/amd64-sysv-linux/sys.h
+++ b/lib/c/target/amd64-sysv-linux/sys.h
@@ -1,4 +1,3 @@
-
 #define O_RDONLY  0x00000000
 #define O_WRONLY  0x00000001
 #define O_RDWR    0x00000002
--- a/lib/c/target/amd64-sysv-netbsd/_sigaction.c
+++ b/lib/c/target/amd64-sysv-netbsd/_sigaction.c
@@ -1,4 +1,3 @@
-
 #include <stddef.h>
 #include <sys.h>
 
--- a/lib/c/target/amd64-sysv-netbsd/sys.h
+++ b/lib/c/target/amd64-sysv-netbsd/sys.h
@@ -1,4 +1,3 @@
-
 #define O_RDONLY  0x00000000
 #define O_WRONLY  0x00000001
 #define O_RDWR    0x00000002
--- a/lib/c/target/amd64-sysv-openbsd/sys.h
+++ b/lib/c/target/amd64-sysv-openbsd/sys.h
@@ -1,4 +1,3 @@
-
 #define O_RDONLY  0x00000000
 #define O_WRONLY  0x00000001
 #define O_RDWR    0x00000002
--- a/lib/c/target/posix/raise.c
+++ b/lib/c/target/posix/raise.c
@@ -1,4 +1,3 @@
-
 #include <stddef.h>
 #include <signal.h>
 #include <sys.h>
--- a/lib/c/target/posix/signal.c
+++ b/lib/c/target/posix/signal.c
@@ -1,4 +1,3 @@
-
 #include <stddef.h>
 #include <signal.h>
 #include <sys.h>
--- a/lib/c/tmpnam.c
+++ b/lib/c/tmpnam.c
@@ -1,4 +1,3 @@
-
 #include <stdio.h>
 #include <string.h>
 #include "syscall.h"
--- a/lib/c/vsnprintf.c
+++ b/lib/c/vsnprintf.c
@@ -1,4 +1,3 @@
-
 #include <stdarg.h>
 #include <stdio.h>
 #undef vsnprintf
--- a/lib/c/vsprintf.c
+++ b/lib/c/vsprintf.c
@@ -1,4 +1,3 @@
-
 #include <limits.h>
 #include <stdarg.h>
 #include <stdint.h>
--- a/lib/coff32/coff32_pack_aout.c
+++ b/lib/coff32/coff32_pack_aout.c
@@ -1,4 +1,3 @@
-
 #include <assert.h>
 
 #include "../../inc/coff32/aouthdr.h"
--- a/lib/coff32/coff32_pack_ent.c
+++ b/lib/coff32/coff32_pack_ent.c
@@ -1,4 +1,3 @@
-
 #include <assert.h>
 
 #include "../../inc/coff32/syms.h"
--- a/lib/coff32/coff32_pack_hdr.c
+++ b/lib/coff32/coff32_pack_hdr.c
@@ -1,4 +1,3 @@
-
 #include <assert.h>
 
 #include "../../inc/coff32/filehdr.h"
--- a/lib/coff32/coff32_pack_scn.c
+++ b/lib/coff32/coff32_pack_scn.c
@@ -1,4 +1,3 @@
-
 #include <assert.h>
 
 #include "../../inc/coff32/scnhdr.h"
--- a/lib/coff32/coff32_unpack_aout.c
+++ b/lib/coff32/coff32_unpack_aout.c
@@ -1,4 +1,3 @@
-
 #include <assert.h>
 
 #include "../../inc/coff32/aouthdr.h"
--- a/lib/coff32/coff32_unpack_ent.c
+++ b/lib/coff32/coff32_unpack_ent.c
@@ -1,4 +1,3 @@
-
 #include <assert.h>
 
 #include "../../inc/coff32/syms.h"
--- a/lib/coff32/coff32_unpack_hdr.c
+++ b/lib/coff32/coff32_unpack_hdr.c
@@ -1,4 +1,3 @@
-
 #include <assert.h>
 
 #include "../../inc/coff32/filehdr.h"
--- a/lib/coff32/coff32_unpack_scn.c
+++ b/lib/coff32/coff32_unpack_scn.c
@@ -1,4 +1,3 @@
-
 #include <assert.h>
 
 #include "../../inc/coff32/scnhdr.h"
--- a/lib/scc/bpack.c
+++ b/lib/scc/bpack.c
@@ -1,4 +1,3 @@
-
 #include <ctype.h>
 #include <stdarg.h>
 
--- a/lib/scc/lpack.c
+++ b/lib/scc/lpack.c
@@ -1,4 +1,3 @@
-
 #include <ctype.h>
 #include <stdarg.h>
 
--- a/nm/coff32.c
+++ b/nm/coff32.c
@@ -1,4 +1,3 @@
-
 static char sccsid[] = "@(#) ./nm/coff.c";
 
 #include <assert.h>
--- a/nm/formats.c
+++ b/nm/formats.c
@@ -1,4 +1,3 @@
-
 static char sccsid[] = "@(#) ./nm/probe.c";
 
 #include <stdio.h>
--- a/nm/nm.h
+++ b/nm/nm.h
@@ -1,4 +1,3 @@
-
 struct symbol {
 	char *name;
 	int type;
--- a/objdump/main.c
+++ b/objdump/main.c
@@ -1,4 +1,3 @@
-
 #include <errno.h>
 #include <limits.h>
 #include <stdint.h>
--- a/rootdir/include/scc/assert.h
+++ b/rootdir/include/scc/assert.h
@@ -1,4 +1,3 @@
-
 extern void __assert(char *exp, char *file, long line);
 
 #undef assert
--- a/tests/libc/execute/0002-assert.c
+++ b/tests/libc/execute/0002-assert.c
@@ -1,4 +1,3 @@
-
 #include <assert.h>
 #include <signal.h>
 #include <stdio.h>
--- a/tests/scc/execute/0137-int-cast.c
+++ b/tests/scc/execute/0137-int-cast.c
@@ -1,4 +1,3 @@
-
 int a;
 unsigned b;
 char c;
--- a/tests/scc/execute/0178-include.c
+++ b/tests/scc/execute/0178-include.c
@@ -1,4 +1,3 @@
-
 #define FILE "0178-include.h"
 #include FILE
 
--- a/tests/scc/execute/0178-include.h
+++ b/tests/scc/execute/0178-include.h
@@ -1,2 +1,1 @@
-
 #define RET 0
--- a/tests/scc/execute/0179-sizeof.c
+++ b/tests/scc/execute/0179-sizeof.c
@@ -1,4 +1,3 @@
-
 int
 main(void)
 {
--- a/tests/scc/execute/0180-incomplete.c
+++ b/tests/scc/execute/0180-incomplete.c
@@ -1,4 +1,3 @@
-
 struct dummy;
 
 void *
--- a/tests/scc/execute/0181-stringize.c
+++ b/tests/scc/execute/0181-stringize.c
@@ -1,4 +1,3 @@
-
 #define XSTR(x) #x
 #define STR(x)  XSTR(x)
 #define S       y = "str"