scc

simple C compiler
git clone git://git.2f30.org/scc
Log | Files | Refs | README | LICENSE

commit a5ece0d283cc43d8119e3d45dd1edbf5723d2479
parent 21d9e39715eed916b7fb427d244c55d8f61bd2e5
Author: FRIGN <dev@frign.de>
Date:   Tue, 17 May 2016 21:33:18 +0200

Add LICENSE statement to each source file

So the licensing is clear to everybody.

Diffstat:
Mcc1/Makefile | 1+
Mcc1/arch/amd64-sysv/arch.c | 2+-
Mcc1/arch/amd64-sysv/arch.h | 2+-
Mcc1/arch/i386-sysv/arch.c | 2+-
Mcc1/arch/i386-sysv/arch.h | 2+-
Mcc1/arch/qbe/arch.c | 2+-
Mcc1/arch/qbe/arch.h | 2+-
Mcc1/arch/z80/arch.c | 2+-
Mcc1/arch/z80/arch.h | 2+-
Mcc1/cc1.h | 2+-
Mcc1/code.c | 2+-
Mcc1/cpp.c | 2+-
Mcc1/decl.c | 2+-
Mcc1/error.c | 2+-
Mcc1/expr.c | 1+
Mcc1/fold.c | 2+-
Mcc1/init.c | 2+-
Mcc1/lex.c | 2+-
Mcc1/main.c | 2+-
Mcc1/stallman.msg | 1+
Mcc1/stmt.c | 2+-
Mcc1/symbol.c | 2+-
Mcc1/tests/chktest.sh | 1+
Mcc1/tests/test001.c | 2++
Mcc1/tests/test002.c | 2++
Mcc1/tests/test003.c | 2++
Mcc1/tests/test004.c | 2++
Mcc1/tests/test005.c | 2++
Mcc1/tests/test006.c | 2++
Mcc1/tests/test007.c | 4+++-
Mcc1/tests/test008.c | 16+++++++++-------
Mcc1/tests/test009.c | 6++++--
Mcc1/tests/test010.c | 4+++-
Mcc1/tests/test011.c | 2++
Mcc1/tests/test012.c | 2++
Mcc1/tests/test013.c | 2++
Mcc1/tests/test014.c | 2++
Mcc1/tests/test015.c | 2++
Mcc1/tests/test016.c | 6++++--
Mcc1/tests/test017.c | 2++
Mcc1/tests/test018.c | 2++
Mcc1/tests/test019.c | 1+
Mcc1/tests/test020.c | 3++-
Mcc1/tests/test021.c | 1+
Mcc1/tests/test022.c | 1+
Mcc1/tests/test023.c | 1+
Mcc1/tests/test024.c | 1+
Mcc1/tests/test025.c | 1+
Mcc1/tests/test026.c | 1+
Mcc1/tests/test027.c | 1+
Mcc1/tests/test028.c | 1+
Mcc1/tests/test029.c | 1+
Mcc1/tests/test030.c | 1+
Mcc1/tests/test031.c | 1+
Mcc1/tests/test032.c | 1+
Mcc1/tests/test033.c | 2++
Mcc1/tests/test034.c | 1+
Mcc1/tests/test035.c | 1+
Mcc1/tests/test036.c | 1+
Mcc1/tests/test037.c | 1+
Mcc1/tests/test038.c | 1+
Mcc1/tests/test039.c | 1+
Mcc1/tests/test040.c | 2++
Mcc1/tests/test041.c | 2++
Mcc1/tests/test042.c | 2++
Mcc1/tests/test043.c | 2++
Mcc1/tests/test044.c | 2++
Mcc1/tests/test045.c | 2++
Mcc1/tests/test046.c | 2++
Mcc1/tests/test047.c | 2++
Mcc1/tests/test048.c | 2++
Mcc1/tests/test049.c | 2++
Mcc1/tests/test050.c | 2++
Mcc1/tests/test051.c | 2++
Mcc1/tests/test052.c | 2++
Mcc1/tests/test053.c | 2++
Mcc1/tests/test054.c | 2++
Mcc1/tests/test055.c | 2++
Mcc1/tests/test056.c | 2++
Mcc1/tests/test057.c | 1+
Mcc1/tests/test058.c | 2++
Mcc1/tests/test059.c | 2++
Mcc1/tests/test060.c | 2++
Mcc1/tests/test061.c | 2++
Mcc1/tests/test062.c | 2++
Mcc1/tests/update.sh | 1+
Mcc1/types.c | 2+-
Mcc2/Makefile | 1+
Mcc2/arch/amd64-sysv/arch.h | 3+--
Mcc2/arch/amd64-sysv/cgen.c | 2+-
Mcc2/arch/amd64-sysv/code.c | 2+-
Mcc2/arch/amd64-sysv/optm.c | 2+-
Mcc2/arch/amd64-sysv/types.c | 2+-
Mcc2/arch/i386-sysv/arch.h | 3+--
Mcc2/arch/i386-sysv/cgen.c | 2+-
Mcc2/arch/i386-sysv/code.c | 2+-
Mcc2/arch/i386-sysv/optm.c | 2+-
Mcc2/arch/i386-sysv/types.c | 2+-
Mcc2/arch/qbe/arch.h | 2+-
Mcc2/arch/qbe/cgen.c | 2+-
Mcc2/arch/qbe/code.c | 2+-
Mcc2/arch/qbe/optm.c | 2+-
Mcc2/arch/qbe/types.c | 2+-
Mcc2/arch/z80/arch.h | 2+-
Mcc2/arch/z80/cgen.c | 2+-
Mcc2/arch/z80/code.c | 2+-
Mcc2/arch/z80/optm.c | 2+-
Mcc2/arch/z80/types.c | 2+-
Mcc2/cc2.h | 2+-
Mcc2/code.c | 2+-
Mcc2/generror | 2+-
Mcc2/main.c | 2+-
Mcc2/node.c | 2+-
Mcc2/parser.c | 2+-
Mcc2/peep.c | 2+-
Mcc2/symbol.c | 2+-
Mdriver/posix/Makefile | 1+
Mdriver/posix/scc.c | 2+-
Minc/cc.h | 2+-
Minc/sizes_c89.h | 2++
Minc/sizes_c99.h | 2++
Mlibc/include/z80/assert.h | 2+-
Mlibc/include/z80/ctype.h | 5++---
Mlibc/include/z80/errno.h | 5++---
Mlibc/include/z80/signal.h | 4++--
Mlibc/include/z80/stdio.h | 1+
Mlibc/include/z80/stdlib.h | 1+
Mlibc/include/z80/string.h | 1+
128 files changed, 188 insertions(+), 75 deletions(-)

diff --git a/cc1/Makefile b/cc1/Makefile @@ -1,3 +1,4 @@ +# See LICENSE file for copyright and license details. .POSIX: include ../config.mk diff --git a/cc1/arch/amd64-sysv/arch.c b/cc1/arch/amd64-sysv/arch.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stdio.h> #include "arch.h" diff --git a/cc1/arch/amd64-sysv/arch.h b/cc1/arch/amd64-sysv/arch.h @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #define RANK_BOOL 0 #define RANK_SCHAR 1 #define RANK_UCHAR 1 diff --git a/cc1/arch/i386-sysv/arch.c b/cc1/arch/i386-sysv/arch.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stdio.h> #include "arch.h" diff --git a/cc1/arch/i386-sysv/arch.h b/cc1/arch/i386-sysv/arch.h @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #define RANK_BOOL 0 #define RANK_SCHAR 1 #define RANK_UCHAR 1 diff --git a/cc1/arch/qbe/arch.c b/cc1/arch/qbe/arch.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stdio.h> #include "arch.h" diff --git a/cc1/arch/qbe/arch.h b/cc1/arch/qbe/arch.h @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #define RANK_BOOL 0 #define RANK_SCHAR 1 #define RANK_UCHAR 1 diff --git a/cc1/arch/z80/arch.c b/cc1/arch/z80/arch.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stdio.h> #include "arch.h" diff --git a/cc1/arch/z80/arch.h b/cc1/arch/z80/arch.h @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #define RANK_BOOL 0 #define RANK_SCHAR 1 #define RANK_UCHAR 1 diff --git a/cc1/cc1.h b/cc1/cc1.h @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #define INPUTSIZ LINESIZ diff --git a/cc1/code.c b/cc1/code.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <ctype.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc1/cpp.c b/cc1/cpp.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <ctype.h> #include <limits.h> #include <stdio.h> diff --git a/cc1/decl.c b/cc1/decl.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <setjmp.h> #include <stdarg.h> #include <stdio.h> diff --git a/cc1/error.c b/cc1/error.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stdarg.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc1/expr.c b/cc1/expr.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/cc1/fold.c b/cc1/fold.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stdio.h> #include <stdlib.h> diff --git a/cc1/init.c b/cc1/init.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stdint.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc1/lex.c b/cc1/lex.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <ctype.h> #include <errno.h> #include <setjmp.h> diff --git a/cc1/main.c b/cc1/main.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <setjmp.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc1/stallman.msg b/cc1/stallman.msg @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ 0x2a, 0x20, 0x67, 0x20, 0x6f, 0x20, 0x61, 0x20, 0x74, 0x20, 0x73, 0x20, 0x65, 0x20, 0x78, 0x20, 0x2a, 0x20, 0x67, 0x20, 0x6f, 0x20, 0x61, 0x20, 0x74, 0x20, 0x73, 0x20, 0x65, 0x20, 0x78, 0x20, 0x2a, 0x20, 0x67, 0x20, diff --git a/cc1/stmt.c b/cc1/stmt.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stddef.h> #include <setjmp.h> #include <stdio.h> diff --git a/cc1/symbol.c b/cc1/symbol.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <limits.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc1/tests/chktest.sh b/cc1/tests/chktest.sh @@ -1,4 +1,5 @@ #!/bin/sh +# See LICENSE file for copyright and license details. out=/tmp/$$.out err=/tmp/$$.err diff --git a/cc1/tests/test001.c b/cc1/tests/test001.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST001 description: Basic hello world test diff --git a/cc1/tests/test002.c b/cc1/tests/test002.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST002 description: Test forward references before definition of types diff --git a/cc1/tests/test003.c b/cc1/tests/test003.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST003 description: Select function to call inside ternary operator diff --git a/cc1/tests/test004.c b/cc1/tests/test004.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST004 description: Test integer operations diff --git a/cc1/tests/test005.c b/cc1/tests/test005.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST005 description: Test unary integer operations diff --git a/cc1/tests/test006.c b/cc1/tests/test006.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST006 description: Basic test for if diff --git a/cc1/tests/test007.c b/cc1/tests/test007.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST007 description: basic while test @@ -24,7 +26,7 @@ int main() { int x; - + x = 10; while (x) x = x - 1; diff --git a/cc1/tests/test008.c b/cc1/tests/test008.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST008 description: Basic do while loop @@ -24,20 +26,20 @@ L7 } */ -int +int main() { int x; - + x = 0; - do + do x = x + 1; - while(x < 10); - + while (x < 10); + do { x = x + 1; - } while(x < 20); - + } while (x < 20); + return x - 20; } diff --git a/cc1/tests/test009.c b/cc1/tests/test009.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST009 description: Basic test for loops @@ -23,11 +25,11 @@ L7 } */ -int +int main() { int x; - + for (x = 0; x < 10 ; x = x + 1) ; if (x != 10) diff --git a/cc1/tests/test010.c b/cc1/tests/test010.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST010 description: Test for continue and break statements @@ -66,7 +68,7 @@ int main() { int x; - + x = 0; while(1) break; diff --git a/cc1/tests/test011.c b/cc1/tests/test011.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST011 description: Basic test for goto diff --git a/cc1/tests/test012.c b/cc1/tests/test012.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST012 description: Basic switch test diff --git a/cc1/tests/test013.c b/cc1/tests/test013.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST013 description: Basic test of integer types and integer conversions diff --git a/cc1/tests/test014.c b/cc1/tests/test014.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST014 description: Basic storage class test diff --git a/cc1/tests/test015.c b/cc1/tests/test015.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST015 description: Stress namespace mechanism diff --git a/cc1/tests/test016.c b/cc1/tests/test016.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST016 description: Basic pointer test @@ -58,7 +60,7 @@ func1(void) *p = 0; if (x) return 1; - + p = &g; *p = 0; if (p == 0) @@ -72,7 +74,7 @@ func2(void) int x; int *p; int **pp; - + x = 1; p = &x; pp = &p; diff --git a/cc1/tests/test017.c b/cc1/tests/test017.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST017 description: Basic test about pointers and structs diff --git a/cc1/tests/test018.c b/cc1/tests/test018.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST018 description: Basic test for arrays diff --git a/cc1/tests/test019.c b/cc1/tests/test019.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST019 diff --git a/cc1/tests/test020.c b/cc1/tests/test020.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST020 @@ -60,7 +61,7 @@ main(void) i = i << 0; i = 0 << i; i = i >> 0; - i = 0 >> i; + i = 0 >> i; i = i + 0; i = 0 + i; i = i - 0; diff --git a/cc1/tests/test021.c b/cc1/tests/test021.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST021 diff --git a/cc1/tests/test022.c b/cc1/tests/test022.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST022 diff --git a/cc1/tests/test023.c b/cc1/tests/test023.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST023 diff --git a/cc1/tests/test024.c b/cc1/tests/test024.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST024 diff --git a/cc1/tests/test025.c b/cc1/tests/test025.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST025 diff --git a/cc1/tests/test026.c b/cc1/tests/test026.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST026 diff --git a/cc1/tests/test027.c b/cc1/tests/test027.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST027 diff --git a/cc1/tests/test028.c b/cc1/tests/test028.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST028 diff --git a/cc1/tests/test029.c b/cc1/tests/test029.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST029 diff --git a/cc1/tests/test030.c b/cc1/tests/test030.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST030 diff --git a/cc1/tests/test031.c b/cc1/tests/test031.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST031 diff --git a/cc1/tests/test032.c b/cc1/tests/test032.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST032 diff --git a/cc1/tests/test033.c b/cc1/tests/test033.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST033 description: test for #if defined() diff --git a/cc1/tests/test034.c b/cc1/tests/test034.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST034 diff --git a/cc1/tests/test035.c b/cc1/tests/test035.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST035 diff --git a/cc1/tests/test036.c b/cc1/tests/test036.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST036 diff --git a/cc1/tests/test037.c b/cc1/tests/test037.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST037 diff --git a/cc1/tests/test038.c b/cc1/tests/test038.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST038 diff --git a/cc1/tests/test039.c b/cc1/tests/test039.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST039 diff --git a/cc1/tests/test040.c b/cc1/tests/test040.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST040 description: Test for bug parsing typenames in struct definition diff --git a/cc1/tests/test041.c b/cc1/tests/test041.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST041 description: Test for bug parsing ternary operators diff --git a/cc1/tests/test042.c b/cc1/tests/test042.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST042 description: Test for bug parsing ternary operators diff --git a/cc1/tests/test043.c b/cc1/tests/test043.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST043 description: Test for double typedef (taken from plan9 kernel) diff --git a/cc1/tests/test044.c b/cc1/tests/test044.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST044 description: Test of corner cases in #if diff --git a/cc1/tests/test045.c b/cc1/tests/test045.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST045 description: Basic test of initializers diff --git a/cc1/tests/test046.c b/cc1/tests/test046.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST046 description: Basic test for initializators diff --git a/cc1/tests/test047.c b/cc1/tests/test047.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST047 description: Basic test for initializer diff --git a/cc1/tests/test048.c b/cc1/tests/test048.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST048 description: Basic test for initializer diff --git a/cc1/tests/test049.c b/cc1/tests/test049.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST049 description: Basic test for initializer diff --git a/cc1/tests/test050.c b/cc1/tests/test050.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST050 description: Basic test for initializer diff --git a/cc1/tests/test051.c b/cc1/tests/test051.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST051 description: Basic test for initializer diff --git a/cc1/tests/test052.c b/cc1/tests/test052.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST052 description: Basic test for initializer diff --git a/cc1/tests/test053.c b/cc1/tests/test053.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST053 description: Basic test for initializer diff --git a/cc1/tests/test054.c b/cc1/tests/test054.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST054 description: Basic test for initializer diff --git a/cc1/tests/test055.c b/cc1/tests/test055.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST055 description: Basic test for initializer diff --git a/cc1/tests/test056.c b/cc1/tests/test056.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST056 desciption: Test of overlaying designators diff --git a/cc1/tests/test057.c b/cc1/tests/test057.c @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ /* name: TEST057 diff --git a/cc1/tests/test058.c b/cc1/tests/test058.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST058 description: Test of initialization mixing designators and sequence diff --git a/cc1/tests/test059.c b/cc1/tests/test059.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST059 description: Test of initalizers for strings diff --git a/cc1/tests/test060.c b/cc1/tests/test060.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST060 description: Test for correctness of #line diff --git a/cc1/tests/test061.c b/cc1/tests/test061.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST061 description: Test for macros without arguments but with parenthesis diff --git a/cc1/tests/test062.c b/cc1/tests/test062.c @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* name: TEST062 description: Test for hexadecimal numbers in upper and lower case diff --git a/cc1/tests/update.sh b/cc1/tests/update.sh @@ -1,4 +1,5 @@ #!/bin/sh +# See LICENSE file for copyright and license details. out=/tmp/$$.out err=/tmp/$$.err diff --git a/cc1/types.c b/cc1/types.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <inttypes.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc2/Makefile b/cc2/Makefile @@ -1,3 +1,4 @@ +# See LICENSE file for copyright and license details. .POSIX: include ../config.mk diff --git a/cc2/arch/amd64-sysv/arch.h b/cc2/arch/amd64-sysv/arch.h @@ -1,6 +1,5 @@ - +/* See LICENSE file for copyright and license details. */ #define TINT long long #define TUINT unsigned long long #define TFLOAT double #define TSIZE unsigned long - diff --git a/cc2/arch/amd64-sysv/cgen.c b/cc2/arch/amd64-sysv/cgen.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include "arch.h" #include "../../cc2.h" diff --git a/cc2/arch/amd64-sysv/code.c b/cc2/arch/amd64-sysv/code.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stdio.h> #include <stdlib.h> diff --git a/cc2/arch/amd64-sysv/optm.c b/cc2/arch/amd64-sysv/optm.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include "arch.h" #include "../../cc2.h" diff --git a/cc2/arch/amd64-sysv/types.c b/cc2/arch/amd64-sysv/types.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include "arch.h" #include "../../cc2.h" diff --git a/cc2/arch/i386-sysv/arch.h b/cc2/arch/i386-sysv/arch.h @@ -1,6 +1,5 @@ - +/* See LICENSE file for copyright and license details. */ #define TINT long long #define TUINT unsigned long long #define TFLOAT double #define TSIZE unsigned long - diff --git a/cc2/arch/i386-sysv/cgen.c b/cc2/arch/i386-sysv/cgen.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include "arch.h" #include "../../cc2.h" diff --git a/cc2/arch/i386-sysv/code.c b/cc2/arch/i386-sysv/code.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stdio.h> #include <stdlib.h> diff --git a/cc2/arch/i386-sysv/optm.c b/cc2/arch/i386-sysv/optm.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include "arch.h" #include "../../cc2.h" diff --git a/cc2/arch/i386-sysv/types.c b/cc2/arch/i386-sysv/types.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include "arch.h" #include "../../cc2.h" diff --git a/cc2/arch/qbe/arch.h b/cc2/arch/qbe/arch.h @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #define TINT long long #define TUINT unsigned long long #define TFLOAT double diff --git a/cc2/arch/qbe/cgen.c b/cc2/arch/qbe/cgen.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <assert.h> #include <stdlib.h> diff --git a/cc2/arch/qbe/code.c b/cc2/arch/qbe/code.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/cc2/arch/qbe/optm.c b/cc2/arch/qbe/optm.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stddef.h> #include "arch.h" diff --git a/cc2/arch/qbe/types.c b/cc2/arch/qbe/types.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include "arch.h" #include "../../cc2.h" diff --git a/cc2/arch/z80/arch.h b/cc2/arch/z80/arch.h @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #define TINT long long #define TUINT unsigned long long #define TFLOAT double diff --git a/cc2/arch/z80/cgen.c b/cc2/arch/z80/cgen.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include "arch.h" #include "../../cc2.h" diff --git a/cc2/arch/z80/code.c b/cc2/arch/z80/code.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stdio.h> #include <stdlib.h> diff --git a/cc2/arch/z80/optm.c b/cc2/arch/z80/optm.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include "arch.h" #include "../../cc2.h" diff --git a/cc2/arch/z80/types.c b/cc2/arch/z80/types.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include "arch.h" #include "../../cc2.h" diff --git a/cc2/cc2.h b/cc2/cc2.h @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ enum tflags { SIGNF = 1, INTF = 2, diff --git a/cc2/code.c b/cc2/code.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stdlib.h> #include "arch.h" diff --git a/cc2/generror b/cc2/generror @@ -1,4 +1,4 @@ - +# See LICENSE file for copyright and license details. BEGIN { print "char *errlist[] = {" } diff --git a/cc2/main.c b/cc2/main.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stdarg.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc2/node.c b/cc2/node.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <stdlib.h> #include <string.h> diff --git a/cc2/parser.c b/cc2/parser.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <errno.h> #include <stdio.h> #include <stdlib.h> diff --git a/cc2/peep.c b/cc2/peep.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include "arch.h" #include "cc2.h" diff --git a/cc2/symbol.c b/cc2/symbol.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #include <limits.h> #include <stdio.h> #include <stdlib.h> diff --git a/driver/posix/Makefile b/driver/posix/Makefile @@ -1,3 +1,4 @@ +# See LICENSE file for copyright and license details. .POSIX: include ../../config.mk diff --git a/driver/posix/scc.c b/driver/posix/scc.c @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #define _POSIX_SOURCE #include <sys/types.h> #include <sys/wait.h> diff --git a/inc/cc.h b/inc/cc.h @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #ifndef __bool_true_and_false_defined #ifdef NBOOL typedef unsigned bool; diff --git a/inc/sizes_c89.h b/inc/sizes_c89.h @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* * 15 nesting levels of compound statements, iteration control * structures, and selection control structures diff --git a/inc/sizes_c99.h b/inc/sizes_c99.h @@ -1,3 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + /* * 127 nesting levels of blocks */ diff --git a/libc/include/z80/assert.h b/libc/include/z80/assert.h @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #ifndef _ASSERT_H #define _ASSERT_H diff --git a/libc/include/z80/ctype.h b/libc/include/z80/ctype.h @@ -1,4 +1,4 @@ - +/* See LICENSE file for copyright and license details. */ #ifndef _CTYPE_H #define _CTYPE_H @@ -17,4 +17,4 @@ int ispunct(int c); int tolower(int c); int toupper(int c); -#endif -\ No newline at end of file +#endif diff --git a/libc/include/z80/errno.h b/libc/include/z80/errno.h @@ -1,7 +1,7 @@ - +/* See LICENSE file for copyright and license details. */ #ifndef _ERRNO_H #define _ERRNO_H extern int errno; -#endif -\ No newline at end of file +#endif diff --git a/libc/include/z80/signal.h b/libc/include/z80/signal.h @@ -1,7 +1,8 @@ +/* See LICENSE file for copyright and license details. */ #ifndef _SIGNAL_H #define _SIGNAL_H void ( *signal(int signum, void (*handler)(int)) ) (int); int raise(int sig); -#endif -\ No newline at end of file +#endif diff --git a/libc/include/z80/stdio.h b/libc/include/z80/stdio.h @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ #ifndef _STDIO_H #define _STDIO_H diff --git a/libc/include/z80/stdlib.h b/libc/include/z80/stdlib.h @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ #ifndef _STDLIB_H #define _STDLIB_H diff --git a/libc/include/z80/string.h b/libc/include/z80/string.h @@ -1,3 +1,4 @@ +/* See LICENSE file for copyright and license details. */ #ifndef _STRING_H #define _STRING_H