diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-23 18:02:55 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-09-23 18:02:55 +0000 |
commit | 69fb1563aed5d7a2606052e233516aab51ef04d1 (patch) | |
tree | 2d96abfdde3408128a2026d7faa73906e2053ea7 /gcc/ginclude | |
parent | 9721bc378d10725644fe816610c9ad5b45c1d267 (diff) | |
download | gcc-69fb1563aed5d7a2606052e233516aab51ef04d1.tar.gz |
1999-09-23 10:56 -0700 Zack Weinberg <zack@bitmover.com>
* iso646.h, stdarg.h, stdbool.h, stddef.h, varargs.h: Add
copyright notice and special exception to GPL.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29624 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ginclude')
-rw-r--r-- | gcc/ginclude/iso646.h | 35 | ||||
-rw-r--r-- | gcc/ginclude/stdarg.h | 36 | ||||
-rw-r--r-- | gcc/ginclude/stdbool.h | 35 | ||||
-rw-r--r-- | gcc/ginclude/stddef.h | 29 | ||||
-rw-r--r-- | gcc/ginclude/varargs.h | 26 |
5 files changed, 152 insertions, 9 deletions
diff --git a/gcc/ginclude/iso646.h b/gcc/ginclude/iso646.h index 77ebdd30c4d..79f4fd7c7f9 100644 --- a/gcc/ginclude/iso646.h +++ b/gcc/ginclude/iso646.h @@ -1,4 +1,35 @@ -/* Macros for C programs written in national variants of ISO 646. */ +/* Copyright (C) 1997, 1999 Free Software Foundation, Inc. + +This file is part of GNU CC. + +GNU CC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU CC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU CC; see the file COPYING. If not, write to +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +/* As a special exception, if you include this header file into source + files compiled by GCC, this header file does not by itself cause + the resulting executable to be covered by the GNU General Public + License. This exception does not however invalidate any other + reasons why the executable file might be covered by the GNU General + Public License. */ + +/* + * ISO C Standard: 7.9 Alternative spellings <iso646.h> + */ + +#ifndef _ISO646_H +#define _ISO646_H #ifndef __cplusplus #define and && @@ -13,3 +44,5 @@ #define xor ^ #define xor_eq ^= #endif + +#endif diff --git a/gcc/ginclude/stdarg.h b/gcc/ginclude/stdarg.h index 5e7e757ee88..923ac3c6453 100644 --- a/gcc/ginclude/stdarg.h +++ b/gcc/ginclude/stdarg.h @@ -1,8 +1,32 @@ -/* stdarg.h for GNU. +/* Copyright (C) 1989, 1997, 1998, 1999 Free Software Foundation, Inc. - Note that the type used in va_arg is supposed to match the - actual type **after default promotions**. - Thus, va_arg (..., short) is not valid. */ +This file is part of GNU CC. + +GNU CC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU CC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU CC; see the file COPYING. If not, write to +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +/* As a special exception, if you include this header file into source + files compiled by GCC, this header file does not by itself cause + the resulting executable to be covered by the GNU General Public + License. This exception does not however invalidate any other + reasons why the executable file might be covered by the GNU General + Public License. */ + +/* + * ISO C Standard: 7.15 Variable arguments <stdarg.h> + */ #ifndef _STDARG_H #ifndef _ANSI_STDARG_H_ @@ -23,6 +47,10 @@ typedef __builtin_va_list __gnuc_va_list; if this invocation was from the user program. */ #ifdef _STDARG_H +/* Note that the type used in va_arg is supposed to match the + actual type **after default promotions**. + Thus, va_arg (..., short) is not valid. */ + #define va_start(v,l) __builtin_stdarg_start(&(v),l) #define va_end __builtin_va_end #define va_arg __builtin_va_arg diff --git a/gcc/ginclude/stdbool.h b/gcc/ginclude/stdbool.h index 219e423992f..151c1de71a7 100644 --- a/gcc/ginclude/stdbool.h +++ b/gcc/ginclude/stdbool.h @@ -1,6 +1,35 @@ -/* stdbool.h for GNU. */ -#ifndef __STDBOOL_H__ -#define __STDBOOL_H__ 1 +/* Copyright (C) 1998, 1999 Free Software Foundation, Inc. + +This file is part of GNU CC. + +GNU CC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU CC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU CC; see the file COPYING. If not, write to +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +/* As a special exception, if you include this header file into source + files compiled by GCC, this header file does not by itself cause + the resulting executable to be covered by the GNU General Public + License. This exception does not however invalidate any other + reasons why the executable file might be covered by the GNU General + Public License. */ + +/* + * ISO C Standard: 7.16 Boolean type and values <stdbool.h> + */ + +#ifndef _STDBOOL_H +#define _STDBOOL_H /* The type `_Bool' must promote to `int' or `unsigned int'. The constants `true' and `false' must have the value 0 and 1 respectively. */ diff --git a/gcc/ginclude/stddef.h b/gcc/ginclude/stddef.h index 615052e85d4..00f2febcbb2 100644 --- a/gcc/ginclude/stddef.h +++ b/gcc/ginclude/stddef.h @@ -1,3 +1,32 @@ +/* Copyright (C) 1989, 1997, 1998, 1999 Free Software Foundation, Inc. + +This file is part of GNU CC. + +GNU CC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU CC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU CC; see the file COPYING. If not, write to +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +/* As a special exception, if you include this header file into source + files compiled by GCC, this header file does not by itself cause + the resulting executable to be covered by the GNU General Public + License. This exception does not however invalidate any other + reasons why the executable file might be covered by the GNU General + Public License. */ + +/* + * ISO C Standard: 7.17 Common definitions <stddef.h> + */ #if (!defined(_STDDEF_H) && !defined(_STDDEF_H_) && !defined(_ANSI_STDDEF_H) \ && !defined(__STDDEF_H__)) \ || defined(__need_wchar_t) || defined(__need_size_t) \ diff --git a/gcc/ginclude/varargs.h b/gcc/ginclude/varargs.h index 151139b486f..6c70f7a0440 100644 --- a/gcc/ginclude/varargs.h +++ b/gcc/ginclude/varargs.h @@ -1,4 +1,28 @@ -/* Record that this is varargs.h; this turns off stdarg.h. */ +/* Copyright (C) 1989, 1997, 1998, 1999 Free Software Foundation, Inc. + +This file is part of GNU CC. + +GNU CC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU CC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU CC; see the file COPYING. If not, write to +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. */ + +/* As a special exception, if you include this header file into source + files compiled by GCC, this header file does not by itself cause + the resulting executable to be covered by the GNU General Public + License. This exception does not however invalidate any other + reasons why the executable file might be covered by the GNU General + Public License. */ #ifndef _VARARGS_H #define _VARARGS_H |