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
This commit is contained in:
patacongo
2012-07-08 14:50:43 +00:00
parent 4a0b61ab76
commit a4cc2f6f5b
14 changed files with 296 additions and 26 deletions
+3 -3
View File
@@ -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
+1 -1
View File
@@ -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
+4 -5
View File
@@ -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
+1 -1
View File
@@ -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
+64
View File
@@ -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 */