diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2003-04-15 20:31:06 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-07 21:00:33 -0700 |
| commit | 51df763104bf158ab9e0dfe24ccc2ba351f3613a (patch) | |
| tree | 3f33a0156512b8559576612476cb6524f5b3930f | |
| parent | ec781ad9e741d220fa1f4be8266313fb8cc95334 (diff) | |
| download | sparse-dev-51df763104bf158ab9e0dfe24ccc2ba351f3613a.tar.gz | |
Start updating the copyright license comments to the OSL,
preparing for a public release.
| -rw-r--r-- | check.c | 4 | ||||
| -rw-r--r-- | evaluate.c | 4 | ||||
| -rw-r--r-- | expression.c | 4 | ||||
| -rw-r--r-- | expression.h | 4 | ||||
| -rw-r--r-- | lib.c | 4 | ||||
| -rw-r--r-- | lib.h | 4 | ||||
| -rw-r--r-- | parse.c | 4 | ||||
| -rw-r--r-- | parse.h | 4 | ||||
| -rw-r--r-- | pre-process.c | 4 | ||||
| -rw-r--r-- | scope.c | 4 | ||||
| -rw-r--r-- | scope.h | 4 | ||||
| -rw-r--r-- | show-parse.c | 4 | ||||
| -rw-r--r-- | symbol.c | 14 | ||||
| -rw-r--r-- | symbol.h | 8 | ||||
| -rw-r--r-- | token.h | 4 | ||||
| -rw-r--r-- | tokenize.c | 4 |
16 files changed, 60 insertions, 18 deletions
@@ -3,7 +3,9 @@ * to tokenize, pre-process and parse a C file, and prints out * the results. * - * Copyright (C) 2003 Transmeta Corp, all rights reserved. + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 */ #include <stdarg.h> #include <stdlib.h> @@ -1,7 +1,9 @@ /* * sparse/evaluate.c * - * Copyright (C) 2003 Transmeta Corp, all rights reserved. + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 * * Evaluate constant expressions. */ diff --git a/expression.c b/expression.c index 6658312f..e57755a7 100644 --- a/expression.c +++ b/expression.c @@ -1,7 +1,9 @@ /* * sparse/expression.c * - * Copyright (C) 2003 Transmeta Corp, all rights reserved. + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 * * This is the expression parsing part of parsing C. */ diff --git a/expression.h b/expression.h index 0b907c3b..1a68a9fd 100644 --- a/expression.h +++ b/expression.h @@ -3,7 +3,9 @@ /* * sparse/expression.h * - * Copyright (C) 2003 Transmeta Corp, all rights reserved. + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 * * Declarations and helper functions for expression parsing. */ @@ -1,7 +1,9 @@ /* * 'sparse' library helper routines. * - * Copyright (C) 2003 Transmeta Corp, all rights reserved. + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 */ #include <stddef.h> #include <stdarg.h> @@ -3,7 +3,9 @@ /* * Basic helper routine descriptions for 'sparse'. * - * Copyright (C) 2003 Transmeta Corp, all rights reserved. + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 */ extern unsigned int hexval(unsigned int c); @@ -3,7 +3,9 @@ * * Let's see how hard this is to do. * - * Copyright (C) 2003 Transmeta Corp, all rights reserved. + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 */ #include <stdarg.h> @@ -3,7 +3,9 @@ /* * Basic parsing data structures. Statements and symbols. * - * Copyright (C) 2003 Transmeta Corp, all rights reserved. + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 */ #include "symbol.h" diff --git a/pre-process.c b/pre-process.c index 9e89cc6a..cdeed956 100644 --- a/pre-process.c +++ b/pre-process.c @@ -4,7 +4,9 @@ * * This may not be the smartest preprocessor on the planet. * - * Copyright (C) 2003 Transmeta Corp, all rights reserved. + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 */ #include <stdio.h> #include <stdlib.h> @@ -3,7 +3,9 @@ * * This is pretty trivial. * - * Copyright (C) 2003 Transmeta Corp, all rights reserved. + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 */ #include <stdlib.h> #include <string.h> @@ -3,7 +3,9 @@ /* * Symbol scoping is pretty simple. * - * Copyright (C) 2003 Transmeta Corp, all rights reserved. + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 */ struct scope { diff --git a/show-parse.c b/show-parse.c index 4c798f34..ef539c30 100644 --- a/show-parse.c +++ b/show-parse.c @@ -1,7 +1,9 @@ /* * sparse/show-parse.c * - * Copyright (C) 2003 Transmeta Corp, all rights reserved. + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 * * Print out results of parsing for debugging and testing. */ @@ -1,7 +1,9 @@ /* * Symbol lookup and handling. * - * Copyright (C) 2003 Transmeta Corp, all rights reserved. + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 */ #include <stdlib.h> #include <stdio.h> @@ -282,6 +284,16 @@ void check_declaration(struct symbol *sym) sym->same_symbol = next; return; } +#if 0 + // This may make sense from a warning standpoint: + // consider top-level symbols to clash with everything + // (but the scoping rules will mean that we actually + // _use_ the innermost version) + if (toplevel(next->scope)) { + sym->same_symbol = next; + return; + } +#endif } } @@ -1,9 +1,11 @@ -#ifndef SEMANTIC_H -#define SEMANTIC_H +#ifndef SYMBOL_H +#define SYMBOL_H /* * Basic symbol and namespace definitions. * - * Copyright (C) 2003 Transmeta Corp, all rights reserved + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 */ #include "token.h" @@ -5,7 +5,9 @@ * be pretty small, since we're going to keep them all in memory * indefinitely. * - * Copyright (C) 2003 Transmeta Corp, all rights reserved. + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 */ #include <sys/types.h> @@ -2,7 +2,9 @@ * This is a really stupid C tokenizer. It doesn't do any include * files or anything complex at all. That's the pre-processor. * - * Copyright (C) 2003 Transmeta Corp, all rights reserved. + * Copyright (C) 2003 Transmeta Corp. + * + * Licensed under the Open Software License version 1.1 */ #include <stdio.h> #include <stdlib.h> |
