]> pd.if.org Git - pdclib/commitdiff
Comment reformatting for consistency.
authorMartin Baute <solar@rootdirectory.de>
Sun, 13 Mar 2016 06:38:33 +0000 (07:38 +0100)
committerMartin Baute <solar@rootdirectory.de>
Sun, 13 Mar 2016 06:38:33 +0000 (07:38 +0100)
27 files changed:
functions/stdio/_PDCLIB_fvopen.c
functions/stdio/_cbprintf.c
functions/stdio/_vcbprintf.c
functions/stdio/fseek.c
functions/stdio/ftrylockfile.c
functions/stdio/funlockfile.c
functions/stdio/vprintf.c
functions/stdio/vscanf.c
functions/stdio/vsnprintf.c
functions/stdio/vsprintf.c
functions/stdio/vsscanf.c
functions/string/strdup.c
functions/string/strlcat.c
functions/string/strlcpy.c
functions/string/strndup.c
functions/time/clock.c [new file with mode: 0644]
functions/uchar/_PDCLIB_c32srtombs.c
functions/uchar/_PDCLIB_mbsrtoc32s.c
functions/uchar/c16rtomb.c
functions/uchar/c32rtomb.c
functions/uchar/mbrtoc16.c
functions/uchar/mbrtoc32.c
functions/wchar/mbrtowc.c
functions/wchar/mbsinit.c
functions/wchar/wcrtomb.c
functions/wchar/wcscpy.c
functions/wchar/wcsncpy.c

index 18d820d339fc86bb1ed5255b6831bc295413befb..1f089cb20cc049e4b89cdbad3b92e7bf53b0ad7c 100644 (file)
@@ -1,4 +1,4 @@
-/* _PDCLIB_fvopen( _PDCLIB_fd_t fd, _PDCLIB_fileops_t *  )\r
+/* _PDCLIB_fvopen( _PDCLIB_fd_t, _PDCLIB_fileops_t * )\r
 \r
    This file is part of the Public Domain C Library (PDCLib).\r
    Permission is granted to use, modify, and / or redistribute at will.\r
index dedf84e5da558792c303b02c79a1bd0322c0c12e..38e33334dd66565a48abaf391410e66077f53db2 100644 (file)
@@ -1,4 +1,4 @@
-/* _cbprintf( void *, size_t (*)( void*, const char *, size_t ), const char *, ... )
+/* _cbprintf( void *, size_t (*)( void *, const char *, size_t ), const char *, ... )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index 0c950d5e0dd228b06737a1332710818c800a8e7b..4aa8532bc62861e28f2b3568528a1a3af22ff0b0 100644 (file)
@@ -1,4 +1,4 @@
-/* vsnprintf( char *, size_t, const char *, va_list ap )
+/* vsnprintf( char *, size_t, const char *, va_list )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index 72fe951d22d0f917f53849275349d3cb61f50aa1..fafeeb9f2267f0ea62086d5b0740fe35cd4ddf56 100644 (file)
@@ -1,4 +1,4 @@
-/* fseek( FILE *, long offset, int )
+/* fseek( FILE *, long, int )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index 994b51e850dc3fa7a6a9f0514f8e6609715e17fe..a06dc57048a52944fdba54a9118988ede026f877 100644 (file)
@@ -1,4 +1,4 @@
-/* ftrylockfile(FILE * )\r
+/* ftrylockfile( FILE * )\r
 \r
    This file is part of the Public Domain C Library (PDCLib).\r
    Permission is granted to use, modify, and / or redistribute at will.\r
index 01133905ae8cce08657eace636a4e63c346ce9bb..7435607e2b653b1c7a4f95a60912de3748ce6baa 100644 (file)
@@ -1,4 +1,4 @@
-/* funlockfile(FILE * )\r
+/* funlockfile( FILE * )\r
 \r
    This file is part of the Public Domain C Library (PDCLib).\r
    Permission is granted to use, modify, and / or redistribute at will.\r
index ef08ac858c0f8cedd7024ddbaaeb294572ffef2f..9c56df1697a77b6b6b2bdfb2c2184d677c5d5378 100644 (file)
@@ -1,4 +1,4 @@
-/* vprintf( const char *, va_list arg )
+/* vprintf( const char *, va_list )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index 654f5bf70bc787c71c55564d8d0a611ad6d348bf..3a161f37ceaa357dc4e313ff6aa51adc76dd9f36 100644 (file)
@@ -1,4 +1,4 @@
-/* vscanf( const char *, va_list arg )
+/* vscanf( const char *, va_list )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index a8f568469cd101a713f6a660b9151a2c928893d6..92aef76085c154493f4c5109ab9cdf59cd1ac5fd 100644 (file)
@@ -1,4 +1,4 @@
-/* vsnprintf( char *, size_t, const char *, va_list ap )
+/* vsnprintf( char *, size_t, const char *, va_list )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index 410e485c86b3b6f88146db74055089e782530069..661b2aa7e85a58a9d3aab19045fdb239ad7e298e 100644 (file)
@@ -1,4 +1,4 @@
-/* vsprintf( char *, const char *, va_list ap )
+/* vsprintf( char *, const char *, va_list )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index 51b49e5cbc90d7c25521f0775fd5d641da5edeb1..e6c91575f4d1f1b5fedb3c491085494a36b2e86d 100644 (file)
@@ -1,4 +1,4 @@
-/* vsscanf( const char *, const char *, va_list arg )
+/* vsscanf( const char *, const char *, va_list )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index 9be484a623eb4e760f7dd7b395b8195191f76ea6..41df104b321025130d80b80411f6b5866405c1f4 100644 (file)
@@ -1,4 +1,4 @@
-/* [XSI] char* strdup(const char *)\r
+/* [XSI] char * strdup( const char * )\r
 \r
    This file is part of the Public Domain C Library (PDCLib).\r
    Permission is granted to use, modify, and / or redistribute at will.\r
index 34a47d4cdbf7906fb28bafb6d7e0a5142e374bab..b81bf7d08c251047cb0e87f8f0a3cf58df2abcbb 100644 (file)
@@ -1,7 +1,4 @@
-/* strlcat(
-   char *_PDCLIB_restrict _Dst,
-   const char *_PDCLIB_restict _Src,
-   size_t _DstSize)
+/* strlcat( char *, const char *, size_t )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index 7a73f8c20e9efadd90fab9f20e3ab1c67be1c6bc..6739f85854135ede3a4d91cc911d45a9ee85294e 100644 (file)
@@ -1,7 +1,4 @@
-/* strlcpy(
-   char *_PDCLIB_restrict _Dst,
-   const char *_PDCLIB_restrict _Src,
-   size_t _DstSize)
+/* strlcpy( char *, const char *, size_t )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index 15c44be27f23dc717acc718dd8dddb60f7e28bdf..2967bbbd46861e947af4b2aa1bec457e0fcd748c 100644 (file)
@@ -1,4 +1,4 @@
-/* [XSI] char* strndup(const char *, size_t)\r
+/* [XSI] char * strndup( const char *, size_t )\r
 \r
    This file is part of the Public Domain C Library (PDCLib).\r
    Permission is granted to use, modify, and / or redistribute at will.\r
diff --git a/functions/time/clock.c b/functions/time/clock.c
new file mode 100644 (file)
index 0000000..b3fb840
--- /dev/null
@@ -0,0 +1,28 @@
+/* clock( void )
+
+   This file is part of the Public Domain C Library (PDCLib).
+   Permission is granted to use, modify, and / or redistribute at will.
+*/
+
+#include <time.h>
+
+#ifndef REGTEST
+
+clock_t clock( void )
+{
+    /* TODO: Placeholder implementation (valid but useless) */
+    return -1;
+}
+
+#endif
+
+#ifdef TEST
+#include <_PDCLIB_test.h>
+
+int main( void )
+{
+    TESTCASE( NO_TESTDRIVER );
+    return TEST_RESULTS;
+}
+
+#endif
index eda8ab5a15864217e1ed8297f02689332a41a6fd..5a3a297242998e0470e7959b53a4bfee79faff0b 100644 (file)
@@ -1,8 +1,4 @@
-/* _PDCLIB_c32srtombs(
-    char            *_PDCLIB_restrict   dst, 
-    const char32_t **_PDCLIB_restrict   src, 
-    size_t                              len, 
-    mbstate_t       *_PDCLIB_restrict   ps);
+/* _PDCLIB_c32srtombs( char *, const char32_t * *, size_t, mbstate_t * )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index 0e672e66dfd9c7fecf38cb67d0275689fb20c199..6339a9ead5fd48bb26ec7e72b8379b746e971c00 100644 (file)
@@ -1,8 +1,4 @@
-/* _PDCLIB_mbsrtoc32s(
-    char32_t        *restrict   dst, 
-    const char     **restrict   src, 
-    size_t                              len, 
-    mbstate_t       *restrict   ps);
+/* _PDCLIB_mbsrtoc32s( char32_t *, const char * *, size_t, mbstate_t * )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index ac8c6295cab69bc474549c1c54eb313caedba826..f78c0d868e064d06cc546e586a22701380402791 100644 (file)
@@ -1,7 +1,4 @@
-/* c16rtomb(\r
-    char        *restrict   s, \r
-    char16_t                c16,\r
-    mbstate_t   *restrict   ps);\r
+/* c16rtomb( char *, char16_t, mbstate_t * )\r
 \r
    This file is part of the Public Domain C Library (PDCLib).\r
    Permission is granted to use, modify, and / or redistribute at will.\r
index d9f016dc1e121a7ebd616e2ddcd84cbf19d80c1e..3b32e52180a857f1b261738cc51818badd2047cd 100644 (file)
@@ -1,7 +1,4 @@
-/* c32rtomb(
-    char        *restrict   s, 
-    char32_t                c32,
-    mbstate_t   *restrict   ps);
+/* c32rtomb( char *, char32_t, mbstate_t * )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index 60b9f41aeaec91763da1173d08d0b989711f46b0..2aacf29dee43dda3f09874a0b03511b05b045207 100644 (file)
@@ -1,8 +1,4 @@
-/* size_t mbrtoc16(\r
-    char16_t    *restrict   pc16,\r
-    const char  *restrict   s, \r
-    size_t                  n,\r
-    mbstate_t   *restrict   ps);\r
+/* size_t mbrtoc16( char16_t *, const char *, size_t, mbstate_t * )\r
 \r
    This file is part of the Public Domain C Library (PDCLib).\r
    Permission is granted to use, modify, and / or redistribute at will.\r
index 7e0eb1d44ea7ad1b0cc9626e7f5a2f2c7a6c7e60..326d6b5b05d8556c0be3c2070c9f2b3689fa1933 100644 (file)
@@ -1,8 +1,4 @@
-/* size_t mbrtoc32(
-    char32_t    *restrict   pc32,
-    const char  *restrict   s, 
-    size_t                  n,
-    mbstate_t   *restrict   ps);
+/* size_t mbrtoc32( char32_t *, const char *, size_t, mbstate_t * )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index b2912ba691a0c29439de5fca8f951f4f36746224..56c16ab9fea9676193271344cf6fc672a84fd17d 100644 (file)
@@ -1,8 +1,4 @@
-/* mbrtowc(
-    wchar_t *restrict pwc, 
-    const char *restrict s, 
-    size_t n, 
-    mbstate_t *restrict ps);
+/* mbrtowc( wchar_t * pwc, const char * s, size_t n, mbstate_t * ps )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index 07347112d243b7e8b0c2593456c0c1b8c93f3d23..90c2c2fe9bfdf2eee332313b9f5ce1fbc129b1e4 100644 (file)
@@ -1,4 +1,4 @@
-/* mbsinit(mbstate_t *ps);\r
+/* mbsinit( mbstate_t * ps )\r
 \r
    This file is part of the Public Domain C Library (PDCLib).\r
    Permission is granted to use, modify, and / or redistribute at will.\r
index 3fddc1fd6298fe15c38a389cd59e73c15c4d4642..287ff1d82534033d571b4d39b6716693774b6858 100644 (file)
@@ -1,7 +1,4 @@
-/* wcrtomb(
-    char        *restrict   s, 
-    wchar_t                 wc,
-    mbstate_t   *restrict   ps);
+/* wcrtomb( char * s, wchar_t wc, mbstate_t * ps )
 
    This file is part of the Public Domain C Library (PDCLib).
    Permission is granted to use, modify, and / or redistribute at will.
index 02394ee51c9402c59fb431eee63de2092c5b8825..5b18f99b5bcac3bb8ace7ed3586dd40a91495c2e 100644 (file)
@@ -1,4 +1,4 @@
-/* wchar_t * wcscpy( wchar_t restrict *, const wchar_t restrict * );\r
+/* wchar_t * wcscpy( wchar_t *, const wchar_t * );\r
 \r
    This file is part of the Public Domain C Library (PDCLib).\r
    Permission is granted to use, modify, and / or redistribute at will.\r
index 6d0e4d284a748d5884eb45701af4188c7e81901d..5f4329f3f722edf9f614431ade021ec3a2b549db 100644 (file)
@@ -1,4 +1,4 @@
-/* wchar_t * wcsncpy( wchar_t restrict *, const wchar_t restrict * , size_t );\r
+/* wchar_t * wcsncpy( wchar_t *, const wchar_t * , size_t );\r
 \r
    This file is part of the Public Domain C Library (PDCLib).\r
    Permission is granted to use, modify, and / or redistribute at will.\r