shithub: scc

Download patch

ref: 050797f4780ad8b7737975cfe9a60d52d4bc67a4
parent: 561e2d1456fd352c6052532bf1bfb22c8dcf0f93
author: Roberto E. Vargas Caballero <k0ga@shike2.com>
date: Sat Mar 23 04:58:18 EDT 2019

Remove sccsid strings

They were useful in certain moment, but they are not useful
anymore and they are creating maintainance problems.

--- a/src/cmd/ar.c
+++ b/src/cmd/ar.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./ar/main.c";
-
 #include <errno.h>
 #include <signal.h>
 #include <stdarg.h>
--- a/src/cmd/as/expr.c
+++ b/src/cmd/as/expr.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./as/expr.c";
-
 #include <ctype.h>
 #include <stdlib.h>
 #include <string.h>
--- a/src/cmd/as/ins.c
+++ b/src/cmd/as/ins.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./as/ins.c";
-
 #include <string.h>
 
 #include <scc/scc.h>
--- a/src/cmd/as/main.c
+++ b/src/cmd/as/main.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./as/main.c";
-
 #include <errno.h>
 #include <ctype.h>
 #include <setjmp.h>
--- a/src/cmd/as/parser.c
+++ b/src/cmd/as/parser.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./as/parser.c";
 #include <assert.h>
 #include <ctype.h>
 #include <errno.h>
--- a/src/cmd/as/symbol.c
+++ b/src/cmd/as/symbol.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./as/symbol.c";
-
 #include <ctype.h>
 #include <stdio.h>
 #include <stdint.h>
--- a/src/cmd/as/target/x80/ins.c
+++ b/src/cmd/as/target/x80/ins.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./as/target/x80/ins.c";
-
 #include <stdlib.h>
 #include <string.h>
 
--- a/src/cmd/as/target/x80/z80.c
+++ b/src/cmd/as/target/x80/z80.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./as/target/x80/z80.c";
-
 #include <stdlib.h>
 
 #include <scc/scc.h>
--- a/src/cmd/as/target/x86/amd64.c
+++ b/src/cmd/as/target/x86/amd64.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./as/target/x86/amd64.c";
-
 #include <scc/scc.h>
 
 #include "../../as.h"
--- a/src/cmd/as/target/x86/i286.c
+++ b/src/cmd/as/target/x86/i286.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./as/target/x86/i286.c";
-
 #include <scc/scc.h>
 
 #include "../../as.h"
--- a/src/cmd/as/target/x86/i386.c
+++ b/src/cmd/as/target/x86/i386.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./as/target/x86/i386.c";
-
 #include <scc/scc.h>
 
 #include "../../as.h"
--- a/src/cmd/as/target/x86/ins.c
+++ b/src/cmd/as/target/x86/ins.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./as/target/x86/ins.c";
-
 #include <stdlib.h>
 #include <string.h>
 
--- a/src/cmd/ld/main.c
+++ b/src/cmd/ld/main.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./ld/main.c";
-
 #include <errno.h>
 #include <stdarg.h>
 #include <stdio.h>
--- a/src/cmd/nm.c
+++ b/src/cmd/nm.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./nm/main.c";
-
 #include <ctype.h>
 #include <errno.h>
 #include <stdarg.h>
--- a/src/cmd/posix.c
+++ b/src/cmd/posix.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./ar/posix/driver.c";
-
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/stat.h>
--- a/src/cmd/scc/cc1/builtin.c
+++ b/src/cmd/scc/cc1/builtin.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/builtin.c";
-
 #include <stdio.h>
 
 #include <scc/scc.h>
--- a/src/cmd/scc/cc1/code.c
+++ b/src/cmd/scc/cc1/code.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/code.c";
 #include <ctype.h>
 #include <stdio.h>
 #include <stdlib.h>
--- a/src/cmd/scc/cc1/cpp.c
+++ b/src/cmd/scc/cc1/cpp.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/cpp.c";
 #include <ctype.h>
 #include <limits.h>
 #include <stdio.h>
--- a/src/cmd/scc/cc1/decl.c
+++ b/src/cmd/scc/cc1/decl.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/decl.c";
 #include <stdarg.h>
 #include <stdlib.h>
 #include <string.h>
--- a/src/cmd/scc/cc1/error.c
+++ b/src/cmd/scc/cc1/error.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/error.c";
 #include <stdarg.h>
 #include <stdio.h>
 #include <stdlib.h>
--- a/src/cmd/scc/cc1/expr.c
+++ b/src/cmd/scc/cc1/expr.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/expr.c";
 #include <assert.h>
 #include <stdlib.h>
 #include <string.h>
--- a/src/cmd/scc/cc1/fold.c
+++ b/src/cmd/scc/cc1/fold.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/fold.c";
 #include <assert.h>
 #include <stdlib.h>
 
--- a/src/cmd/scc/cc1/init.c
+++ b/src/cmd/scc/cc1/init.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/init.c";
 #include <stdint.h>
 #include <stdlib.h>
 #include <string.h>
--- a/src/cmd/scc/cc1/lex.c
+++ b/src/cmd/scc/cc1/lex.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/lex.c";
 #include <assert.h>
 #include <ctype.h>
 #include <errno.h>
--- a/src/cmd/scc/cc1/main.c
+++ b/src/cmd/scc/cc1/main.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/main.c";
 #include <setjmp.h>
 #include <stdio.h>
 #include <stdlib.h>
--- a/src/cmd/scc/cc1/stmt.c
+++ b/src/cmd/scc/cc1/stmt.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/stmt.c";
 #include <stddef.h>
 #include <setjmp.h>
 
--- a/src/cmd/scc/cc1/symbol.c
+++ b/src/cmd/scc/cc1/symbol.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/symbol.c";
 #include <assert.h>
 #include <limits.h>
 #include <stdio.h>
--- a/src/cmd/scc/cc1/target/amd64-sysv/arch.c
+++ b/src/cmd/scc/cc1/target/amd64-sysv/arch.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/arch/amd64-sysv/arch.c";
-
 #include <scc/scc.h>
 #include "../../cc1.h"
 
--- a/src/cmd/scc/cc1/target/arm64-sysv/arch.c
+++ b/src/cmd/scc/cc1/target/arm64-sysv/arch.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/arch/arm64-sysv/arch.c";
-
 #include <scc/scc.h>
 #include "../../cc1.h"
 
--- a/src/cmd/scc/cc1/target/i386-sysv/arch.c
+++ b/src/cmd/scc/cc1/target/i386-sysv/arch.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/arch/i386-sysv/arch.c";
-
 #include <scc/scc.h>
 #include "../../cc1.h"
 
--- a/src/cmd/scc/cc1/target/z80-scc/arch.c
+++ b/src/cmd/scc/cc1/target/z80-scc/arch.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/arch/z80/arch.c";
-
 #include <scc/scc.h>
 #include "../../cc1.h"
 
--- a/src/cmd/scc/cc1/types.c
+++ b/src/cmd/scc/cc1/types.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc1/types.c";
 #include <assert.h>
 #include <inttypes.h>
 #include <stdlib.h>
--- a/src/cmd/scc/cc2/code.c
+++ b/src/cmd/scc/cc2/code.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/code.c";
 #include <stdlib.h>
 #include <string.h>
 
--- a/src/cmd/scc/cc2/main.c
+++ b/src/cmd/scc/cc2/main.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/main.c";
-
 #include <errno.h>
 #include <stdarg.h>
 #include <stdio.h>
--- a/src/cmd/scc/cc2/node.c
+++ b/src/cmd/scc/cc2/node.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/node.c";
 #include <stdlib.h>
 #include <string.h>
 
--- a/src/cmd/scc/cc2/parser.c
+++ b/src/cmd/scc/cc2/parser.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/parser.c";
 #include <errno.h>
 #include <stdio.h>
 #include <stdlib.h>
--- a/src/cmd/scc/cc2/peep.c
+++ b/src/cmd/scc/cc2/peep.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/peep.c";
 #include <scc/scc.h>
 #include "cc2.h"
 
--- a/src/cmd/scc/cc2/symbol.c
+++ b/src/cmd/scc/cc2/symbol.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/symbol.c";
 #include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
--- a/src/cmd/scc/cc2/target/amd64-sysv/cgen.c
+++ b/src/cmd/scc/cc2/target/amd64-sysv/cgen.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/arch/amd64-sysv/cgen.c";
-
 #include "arch.h"
 #include <scc/scc.h>
 #include "../../cc2.h"
--- a/src/cmd/scc/cc2/target/amd64-sysv/code.c
+++ b/src/cmd/scc/cc2/target/amd64-sysv/code.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/arch/amd64-sysv/code.c";
-
 #include <stdio.h>
 #include <stdlib.h>
 
--- a/src/cmd/scc/cc2/target/amd64-sysv/optm.c
+++ b/src/cmd/scc/cc2/target/amd64-sysv/optm.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/arch/amd64-sysv/optm.c";
-
 #include <scc/scc.h>
 
 #include "../../cc2.h"
--- a/src/cmd/scc/cc2/target/amd64-sysv/types.c
+++ b/src/cmd/scc/cc2/target/amd64-sysv/types.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/arch/amd64-sysv/types.c";
-
 #include <scc/scc.h>
 
 #include "../../cc2.h"
--- a/src/cmd/scc/cc2/target/i386-sysv/cgen.c
+++ b/src/cmd/scc/cc2/target/i386-sysv/cgen.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/arch/i386-sysv/cgen.c";
-
 #include <scc/scc.h>
 
 #include "arch.h"
--- a/src/cmd/scc/cc2/target/i386-sysv/code.c
+++ b/src/cmd/scc/cc2/target/i386-sysv/code.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/arch/i386-sysv/code.c";
 #include <stdio.h>
 #include <stdlib.h>
 
--- a/src/cmd/scc/cc2/target/i386-sysv/optm.c
+++ b/src/cmd/scc/cc2/target/i386-sysv/optm.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/arch/i386-sysv/optm.c";
-
 #include <scc/scc.h>
 
 #include "../../cc2.h"
--- a/src/cmd/scc/cc2/target/i386-sysv/types.c
+++ b/src/cmd/scc/cc2/target/i386-sysv/types.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/arch/i386-sysv/types.c";
-
 #include <scc/scc.h>
 
 #include "../../cc2.h"
--- a/src/cmd/scc/cc2/target/qbe/cgen.c
+++ b/src/cmd/scc/cc2/target/qbe/cgen.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/arch/qbe/cgen.c";
-
 #include <assert.h>
 #include <stdlib.h>
 
--- a/src/cmd/scc/cc2/target/qbe/code.c
+++ b/src/cmd/scc/cc2/target/qbe/code.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/arch/qbe/code.c";
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
--- a/src/cmd/scc/cc2/target/qbe/optm.c
+++ b/src/cmd/scc/cc2/target/qbe/optm.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/arch/qbe/optm.c";
-
 #include <stddef.h>
 
 #include <scc/scc.h>
--- a/src/cmd/scc/cc2/target/z80-scc/cgen.c
+++ b/src/cmd/scc/cc2/target/z80-scc/cgen.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/arch/z80/cgen.c";
-
 #include <stdlib.h>
 
 #include <scc/scc.h>
--- a/src/cmd/scc/cc2/target/z80-scc/code.c
+++ b/src/cmd/scc/cc2/target/z80-scc/code.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/arch/z80/code.c";
-
 #include <stdio.h>
 #include <stdlib.h>
 
--- a/src/cmd/scc/cc2/target/z80-scc/optm.c
+++ b/src/cmd/scc/cc2/target/z80-scc/optm.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/arch/z80/optm.c";
-
 #include <scc/scc.h>
 
 #include "../../cc2.h"
--- a/src/cmd/scc/cc2/target/z80-scc/types.c
+++ b/src/cmd/scc/cc2/target/z80-scc/types.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./cc2/arch/z80/types.c";
-
 #include <scc/scc.h>
 
 #include "../../cc2.h"
--- a/src/cmd/scc/posix/scc.c
+++ b/src/cmd/scc/posix/scc.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./driver/posix/scc.c";
 #define _POSIX_SOURCE
 #define _XOPEN_SOURCE 500
 #include <sys/types.h>
--- a/src/libmach/unpack.c
+++ b/src/libmach/unpack.c
@@ -1,5 +1,3 @@
-static char sccsid[] = "@(#) ./lib/scc/lunpack.c";
-
 #include <ctype.h>
 #include <stdarg.h>
 #include <stdio.h>
--- a/src/libscc/alloc.c
+++ b/src/libscc/alloc.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./lib/scc/alloc.c";
 #include <stdlib.h>
 #include <scc/scc.h>
 
--- a/src/libscc/casecmp.c
+++ b/src/libscc/casecmp.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./lib/scc/casecmp.c";
 #include <ctype.h>
 #include <scc/scc.h>
 
--- a/src/libscc/debug.c
+++ b/src/libscc/debug.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./lib/scc/debug.c";
 #include <stdarg.h>
 #include <stdio.h>
 
--- a/src/libscc/die.c
+++ b/src/libscc/die.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./lib/scc/die.c";
 #include <stdarg.h>
 #include <stdlib.h>
 #include <stdio.h>
--- a/src/libscc/xcalloc.c
+++ b/src/libscc/xcalloc.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./lib/scc/xcalloc.c";
 #include <stdlib.h>
 #include <scc/scc.h>
 
--- a/src/libscc/xmalloc.c
+++ b/src/libscc/xmalloc.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./lib/scc/xmalloc.c";
 #include <stdlib.h>
 #include <scc/scc.h>
 
--- a/src/libscc/xrealloc.c
+++ b/src/libscc/xrealloc.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./lib/scc/xrealloc.c";
 #include <stdlib.h>
 #include <scc/scc.h>
 
--- a/src/libscc/xstrdup.c
+++ b/src/libscc/xstrdup.c
@@ -1,4 +1,3 @@
-static char sccsid[] = "@(#) ./lib/scc/xstrdup.c";
 #include <string.h>
 #include <scc/scc.h>