Standardize the width of all comment boxes in C files

This commit is contained in:
Gregory Nutt
2015-10-02 17:43:18 -06:00
parent cb9e27c3b0
commit 5b51a9fcdd
230 changed files with 2054 additions and 2054 deletions
+8 -8
View File
@@ -1,4 +1,4 @@
/************************************************************
/****************************************************************************
* libc/string/lib_memcmp.c
*
* Copyright (C) 2007, 2011-2012 Gregory Nutt. All rights reserved.
@@ -31,23 +31,23 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************/
****************************************************************************/
/************************************************************
/****************************************************************************
* Compilation Switches
************************************************************/
****************************************************************************/
/************************************************************
/****************************************************************************
* Included Files
************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include <sys/types.h>
#include <string.h>
/************************************************************
/****************************************************************************
* Public Functions
************************************************************/
****************************************************************************/
#ifndef CONFIG_ARCH_MEMCMP
int memcmp(FAR const void *s1, FAR const void *s2, size_t n)
+8 -8
View File
@@ -1,4 +1,4 @@
/************************************************************
/****************************************************************************
* libc/string/lib_memmove.c
*
* Copyright (C) 2007, 2011 Gregory Nutt. All rights reserved.
@@ -31,23 +31,23 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************/
****************************************************************************/
/************************************************************
/****************************************************************************
* Compilation Switches
************************************************************/
****************************************************************************/
/************************************************************
/****************************************************************************
* Included Files
************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include <sys/types.h>
#include <string.h>
/************************************************************
/****************************************************************************
* Public Functions
************************************************************/
****************************************************************************/
#ifndef CONFIG_ARCH_MEMMOVE
FAR void *memmove(FAR void *dest, FAR const void *src, size_t count)
+8 -8
View File
@@ -1,4 +1,4 @@
/************************************************************************
/****************************************************************************
* libc/string/lib_strppy.c
*
* Copyright (C) 2014 Gregory Nutt. All rights reserved.
@@ -31,21 +31,21 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************/
****************************************************************************/
/************************************************************************
/****************************************************************************
* Included Files
************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include <string.h>
/************************************************************************
/****************************************************************************
* Public Functions
************************************************************************/
****************************************************************************/
/************************************************************************
/****************************************************************************
* Name: stpcpy
*
* Description:
@@ -56,7 +56,7 @@
* The stpcpy() function returns a pointer to the terminating NUL
* character copied into the 'dest' buffer
*
************************************************************************/
****************************************************************************/
#ifndef CONFIG_ARCH_STPCPY
FAR char *stpcpy(FAR char *dest, FAR const char *src)
+8 -8
View File
@@ -1,4 +1,4 @@
/************************************************************************
/****************************************************************************
* libc/string/lib_strcpy.c
*
* Copyright (C) 2007, 2009, 2011, 2014 Gregory Nutt. All rights reserved.
@@ -31,21 +31,21 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************/
****************************************************************************/
/************************************************************************
/****************************************************************************
* Included Files
************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include <string.h>
/************************************************************************
/****************************************************************************
* Public Functions
************************************************************************/
****************************************************************************/
/************************************************************************
/****************************************************************************
* Name: strcpy
*
* Description:
@@ -55,7 +55,7 @@
* Returned value:
* The strcpy() function returns the 'dest' pointer
*
************************************************************************/
****************************************************************************/
#ifndef CONFIG_ARCH_STRCPY
FAR char *strcpy(FAR char *dest, FAR const char *src)
+6 -6
View File
@@ -1,4 +1,4 @@
/************************************************************************
/****************************************************************************
* libc/string//lib_strdup.c
*
* Copyright (C) 2007, 2009, 2011, 2013 Gregory Nutt. All rights reserved.
@@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************/
****************************************************************************/
/************************************************************************
/****************************************************************************
* Included Files
************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
@@ -43,9 +43,9 @@
#include "lib_internal.h"
/************************************************************************
/****************************************************************************
* Public Functions
************************************************************************/
****************************************************************************/
FAR char *strdup(const char *s)
{
+16 -16
View File
@@ -1,4 +1,4 @@
/************************************************************************
/****************************************************************************
* libc/string/lib_strerror.c
*
* Copyright (C) 2007, 2009, 2011-2012 Gregory Nutt. All rights reserved.
@@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************/
****************************************************************************/
/************************************************************************
/****************************************************************************
* Included Files
************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
@@ -43,13 +43,13 @@
#include <string.h>
#include <errno.h>
/************************************************************************
/****************************************************************************
* Pre-processor Definitions
************************************************************************/
****************************************************************************/
/************************************************************************
/****************************************************************************
* Private Types
************************************************************************/
****************************************************************************/
struct errno_strmap_s
{
@@ -57,9 +57,9 @@ struct errno_strmap_s
const char *str;
};
/************************************************************************
/****************************************************************************
* Private Data
************************************************************************/
****************************************************************************/
#ifdef CONFIG_LIBC_STRERROR
@@ -334,17 +334,17 @@ static const struct errno_strmap_s g_errnomap[] =
#endif /* CONFIG_LIBC_STRERROR */
/************************************************************************
/****************************************************************************
* Private Functions
************************************************************************/
****************************************************************************/
/************************************************************************
/****************************************************************************
* Public Functions
************************************************************************/
****************************************************************************/
/************************************************************************
/****************************************************************************
* Name: strerror
************************************************************************/
****************************************************************************/
FAR const char *strerror(int errnum)
{
+6 -6
View File
@@ -1,4 +1,4 @@
/************************************************************
/****************************************************************************
* libc/string/lib_strncat.c
*
* Copyright (C) 2007, 2011 Gregory Nutt. All rights reserved.
@@ -31,19 +31,19 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************/
****************************************************************************/
/************************************************************
/****************************************************************************
* Included Files
************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include <sys/types.h>
#include <string.h>
/************************************************************
/****************************************************************************
* Public Functions
************************************************************/
****************************************************************************/
#ifndef CONFIG_ARCH_STRNCAT
char *strncat(char *dest, const char *src, size_t n)
+8 -8
View File
@@ -1,4 +1,4 @@
/************************************************************
/****************************************************************************
* libc/string/lib_strncpy.c
*
* Copyright (C) 2007, 2011, 2014 Gregory Nutt. All rights reserved.
@@ -31,23 +31,23 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************/
****************************************************************************/
/************************************************************
/****************************************************************************
* Included Files
************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include <sys/types.h>
#include <string.h>
/************************************************************
/****************************************************************************
* Public Functions
************************************************************/
****************************************************************************/
/************************************************************
/****************************************************************************
* Name: strncpy
************************************************************/
****************************************************************************/
#ifndef CONFIG_ARCH_STRNCPY
char *strncpy(FAR char *dest, FAR const char *src, size_t n)
+8 -8
View File
@@ -1,4 +1,4 @@
/************************************************************************
/****************************************************************************
* libc/string//lib_strndup.c
*
* Copyright (C) 2011, 2013 Gregory Nutt. All rights reserved.
@@ -31,11 +31,11 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************/
****************************************************************************/
/************************************************************************
/****************************************************************************
* Included Files
************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
@@ -43,10 +43,10 @@
#include "lib_internal.h"
/************************************************************************
/****************************************************************************
* Public Functions
************************************************************************/
/************************************************************************
****************************************************************************/
/****************************************************************************
* Name: strndup
*
* Description:
@@ -61,7 +61,7 @@
* character. The newly created string will always be properly
* terminated.
*
************************************************************************/
****************************************************************************/
FAR char *strndup(FAR const char *s, size_t size)
{
+6 -6
View File
@@ -1,4 +1,4 @@
/************************************************************************
/****************************************************************************
* libc/string/lib_strrchr.c
*
* Copyright (C) 2007, 2009, 2011 Gregory Nutt. All rights reserved.
@@ -31,19 +31,19 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
************************************************************************/
****************************************************************************/
/************************************************************************
/****************************************************************************
* Included Files
************************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include <string.h>
/************************************************************************
/****************************************************************************
* Public Functions
************************************************************************/
****************************************************************************/
/* The strrchr() function returns a pointer to the last
* occurrence of the character c in the string s.
+16 -16
View File
@@ -57,9 +57,9 @@
#define CONFIG_MEMCPY_INDEXED_COPY
/********************************************************************
/****************************************************************************
* Included Files
*******************************************************************/
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/compiler.h>
@@ -68,9 +68,9 @@
#include <stdint.h>
#include <string.h>
/********************************************************************
/****************************************************************************
* Pre-processor Definitions
*******************************************************************/
****************************************************************************/
/* Can't support CONFIG_MEMCPY_64BIT if the platform does not have 64-bit
* integer types.
@@ -124,10 +124,10 @@
#endif /* CONFIG_ENDIAN_BIG */
/********************************************************************
/****************************************************************************
* Macros for copying words of different alignment.
* Uses incremening pointers.
*******************************************************************/
****************************************************************************/
#define CP_INCR() \
{ \
@@ -142,10 +142,10 @@
INC_VAL(dstN) = dstWord; \
}
/********************************************************************
/****************************************************************************
* Macros for copying words of different alignment.
* Uses array indexes.
*******************************************************************/
****************************************************************************/
#define CP_INDEX(idx) \
{ \
@@ -160,11 +160,11 @@
dstN[x] = dstWord; \
}
/********************************************************************
/****************************************************************************
* Macros for copying words of different alignment.
* Uses incremening pointers or array indexes depending on
* configuration.
*******************************************************************/
****************************************************************************/
#if defined (CONFIG_MEMCPY_INDEXED_COPY)
@@ -279,9 +279,9 @@
return dest; \
}
/********************************************************************
/****************************************************************************
* Type Definitions
*******************************************************************/
****************************************************************************/
#ifdef CONFIG_MEMCPY_64BIT
typedef uint64_t UIntN;
@@ -291,10 +291,10 @@ typedef uint32_t UIntN;
# define TYPE_WIDTH 4L
#endif
/********************************************************************
/****************************************************************************
* Public Functions
*******************************************************************/
/********************************************************************
****************************************************************************/
/****************************************************************************
* Name: memcpy
*
* Description:
@@ -308,7 +308,7 @@ typedef uint32_t UIntN;
* Returned Value:
* A pointer to destination buffer
*
*******************************************************************/
****************************************************************************/
void *memcpy(void *dest, const void *src, size_t count)
{