diff options
author | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-08 14:50:43 +0000 |
---|---|---|
committer | patacongo <patacongo@7fd9a85b-ad96-42d3-883c-3090e2eb8679> | 2012-07-08 14:50:43 +0000 |
commit | 266f29b3a16b6ade481c24811c51b14496badd45 (patch) | |
tree | accd637b0551acab73839ead97a8282e415aac1f /nuttx/include | |
parent | 02b7f86536c75e36a7a6380abacc583cee3d56e4 (diff) | |
download | px4-firmware-266f29b3a16b6ade481c24811c51b14496badd45.tar.gz px4-firmware-266f29b3a16b6ade481c24811c51b14496badd45.tar.bz2 px4-firmware-266f29b3a16b6ade481c24811c51b14496badd45.zip |
Add a generic GCC stdarg.h header file
git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4919 7fd9a85b-ad96-42d3-883c-3090e2eb8679
Diffstat (limited to 'nuttx/include')
-rw-r--r-- | nuttx/include/cxx/cstdarg | 6 | ||||
-rw-r--r-- | nuttx/include/cxx/cstddef | 2 | ||||
-rw-r--r-- | nuttx/include/cxx/cstdint | 9 | ||||
-rw-r--r-- | nuttx/include/nuttx/math.h | 2 | ||||
-rw-r--r-- | nuttx/include/nuttx/stdarg.h | 64 |
5 files changed, 73 insertions, 10 deletions
diff --git a/nuttx/include/cxx/cstdarg b/nuttx/include/cxx/cstdarg index cbef3edf8..4964f8e7c 100644 --- a/nuttx/include/cxx/cstdarg +++ b/nuttx/include/cxx/cstdarg @@ -1,8 +1,8 @@ //*************************************************************************** // include/cxx/cstdarg // -// Copyright (C) 2009 Gregory Nutt. All rights reserved. -// Author: Gregory Nutt <spudmonkey@racsa.co.cr> +// Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved. +// Author: Gregory Nutt <gnutt@nuttx.org> // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions @@ -40,7 +40,7 @@ // Included Files //*************************************************************************** -#include <stdard.h> +#include <stdarg.h> //*************************************************************************** // Namespace diff --git a/nuttx/include/cxx/cstddef b/nuttx/include/cxx/cstddef index 440b680f4..73dbcd526 100644 --- a/nuttx/include/cxx/cstddef +++ b/nuttx/include/cxx/cstddef @@ -2,7 +2,7 @@ // include/cxx/cstddef // // Copyright (C) 2009 Gregory Nutt. All rights reserved. -// Author: Gregory Nutt <spudmonkey@racsa.co.cr> +// Author: Gregory Nutt <gnutt@nuttx.org> // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions diff --git a/nuttx/include/cxx/cstdint b/nuttx/include/cxx/cstdint index d47613771..d662c5dc7 100644 --- a/nuttx/include/cxx/cstdint +++ b/nuttx/include/cxx/cstdint @@ -1,8 +1,8 @@ //*************************************************************************** // include/cxx/cstdint // -// Copyright (C) 2009 Gregory Nutt. All rights reserved. -// Author: Gregory Nutt <spudmonkey@racsa.co.cr> +// Copyright (C) 2009, 2012 Gregory Nutt. All rights reserved. +// Author: Gregory Nutt <gnutt@nuttx.org> // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions @@ -61,7 +61,7 @@ namespace std using ::int_least32_t; using ::int_least64_t; using ::intmax_t; - using ::intintptr_t; + using ::intptr_t; using ::uint8_t; using ::uint16_t; using ::uint32_t; @@ -75,8 +75,7 @@ namespace std using ::uint_least32_t; using ::uint_least64_t; using ::uintmax_t; - using ::uintintptr_t; -} + using ::uintptr_t; } #endif // __INCLUDE_CXX_CSTDINT diff --git a/nuttx/include/nuttx/math.h b/nuttx/include/nuttx/math.h index e44497241..84dbea6e0 100644 --- a/nuttx/include/nuttx/math.h +++ b/nuttx/include/nuttx/math.h @@ -45,7 +45,7 @@ /* If CONFIG_ARCH_MATH_H is defined, then the top-level Makefile will copy * this header file to include/math.h where it will become the system math.h * header file. In this case, the architecture specific code must provide - * an arch/<cpy>/include/math.h file which will be included below: + * an arch/<architecture>/include/math.h file which will be included below: */ #ifdef CONFIG_ARCH_MATH_H diff --git a/nuttx/include/nuttx/stdarg.h b/nuttx/include/nuttx/stdarg.h new file mode 100644 index 000000000..45d16b2d1 --- /dev/null +++ b/nuttx/include/nuttx/stdarg.h @@ -0,0 +1,64 @@ +/**************************************************************************** + * include/nuttx/stdarg.h + * + * Copyright (C) 2012 Gregory Nutt. All rights reserved. + * Author: Gregory Nutt <gnutt@nuttx.org> + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * 1. Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * 3. Neither the name NuttX nor the names of its contributors may be + * used to endorse or promote products derived from this software + * without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, + * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS + * OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED + * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN + * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + * POSSIBILITY OF SUCH DAMAGE. + * + ****************************************************************************/ + +#ifndef __INCLUDE_NUTTX_STDARG_H +#define __INCLUDE_NUTTX_STDARG_H + +/**************************************************************************** + * Included Files + ****************************************************************************/ + +#include <nuttx/config.h> + +/* If CONFIG_ARCH_STDARG_H is defined, then the top-level Makefile will copy + * this header file to include/stdarg.h where it will become the system + * stdarg.h header file. In this case, the architecture specific code must + * provide an arch/<architecture>/include/math.h file which will be included + * below: + */ + +#ifdef CONFIG_ARCH_STDARG_H +# include <arch/stdarg.h> +#endif + +/**************************************************************************** + * Type Definitions + ****************************************************************************/ + +/**************************************************************************** + * Public Function Prototypes + ****************************************************************************/ + +#endif /* __INCLUDE_NUTTX_STDARG_H */ |