summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-08 14:50:43 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2012-07-08 14:50:43 +0000
commit41dcd39ef26caa7cc3b76ca31ced5ba00f23d874 (patch)
treeaccd637b0551acab73839ead97a8282e415aac1f /nuttx/include
parentfd32aea5907d275b4cf63e873982e865bbf241b9 (diff)
downloadpx4-nuttx-41dcd39ef26caa7cc3b76ca31ced5ba00f23d874.tar.gz
px4-nuttx-41dcd39ef26caa7cc3b76ca31ced5ba00f23d874.tar.bz2
px4-nuttx-41dcd39ef26caa7cc3b76ca31ced5ba00f23d874.zip
Add a generic GCC stdarg.h header file
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4919 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/cxx/cstdarg6
-rw-r--r--nuttx/include/cxx/cstddef2
-rw-r--r--nuttx/include/cxx/cstdint9
-rw-r--r--nuttx/include/nuttx/math.h2
-rw-r--r--nuttx/include/nuttx/stdarg.h64
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 */