aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
authorLinus Torvalds <torvalds@home.transmeta.com>2003-04-15 20:31:06 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:00:33 -0700
commit51df763104bf158ab9e0dfe24ccc2ba351f3613a (patch)
tree3f33a0156512b8559576612476cb6524f5b3930f
parentec781ad9e741d220fa1f4be8266313fb8cc95334 (diff)
downloadsparse-dev-51df763104bf158ab9e0dfe24ccc2ba351f3613a.tar.gz
Start updating the copyright license comments to the OSL,
preparing for a public release.
-rw-r--r--check.c4
-rw-r--r--evaluate.c4
-rw-r--r--expression.c4
-rw-r--r--expression.h4
-rw-r--r--lib.c4
-rw-r--r--lib.h4
-rw-r--r--parse.c4
-rw-r--r--parse.h4
-rw-r--r--pre-process.c4
-rw-r--r--scope.c4
-rw-r--r--scope.h4
-rw-r--r--show-parse.c4
-rw-r--r--symbol.c14
-rw-r--r--symbol.h8
-rw-r--r--token.h4
-rw-r--r--tokenize.c4
16 files changed, 60 insertions, 18 deletions
diff --git a/check.c b/check.c
index 67f34758..62ecf0af 100644
--- a/check.c
+++ b/check.c
@@ -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>
diff --git a/evaluate.c b/evaluate.c
index b3fd1628..ef946ee1 100644
--- a/evaluate.c
+++ b/evaluate.c
@@ -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.
*/
diff --git a/lib.c b/lib.c
index 68819839..a1f0b1cf 100644
--- a/lib.c
+++ b/lib.c
@@ -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>
diff --git a/lib.h b/lib.h
index ca2f02a3..15667126 100644
--- a/lib.h
+++ b/lib.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);
diff --git a/parse.c b/parse.c
index a02aaddd..a1c9c6ee 100644
--- a/parse.c
+++ b/parse.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>
diff --git a/parse.h b/parse.h
index 26bcdaaa..753970c9 100644
--- a/parse.h
+++ b/parse.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>
diff --git a/scope.c b/scope.c
index 79db6550..4938e9d4 100644
--- a/scope.c
+++ b/scope.c
@@ -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>
diff --git a/scope.h b/scope.h
index f1e5cef2..1dc3b184 100644
--- a/scope.h
+++ b/scope.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.
*/
diff --git a/symbol.c b/symbol.c
index 1f4c3970..ff6d9250 100644
--- a/symbol.c
+++ b/symbol.c
@@ -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
}
}
diff --git a/symbol.h b/symbol.h
index ac8ab101..372b1791 100644
--- a/symbol.h
+++ b/symbol.h
@@ -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"
diff --git a/token.h b/token.h
index 21db2aae..73fe9ec3 100644
--- a/token.h
+++ b/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>
diff --git a/tokenize.c b/tokenize.c
index 84a6deef..93218bbf 100644
--- a/tokenize.c
+++ b/tokenize.c
@@ -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>