Tidy up file header/trailer comments

This commit is contained in:
Laurence Withers 2009-10-13 10:55:21 +00:00
parent 7a7522e753
commit 86142ac550
16 changed files with 86 additions and 30 deletions

View File

@ -1,7 +1,8 @@
/* libutf8/src/lib/TopHeader.h /* libutf8/src/libutf8/000_TopHeader.h
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
#ifndef HEADER_LIBUTF8 #ifndef HEADER_LIBUTF8
@ -14,3 +15,8 @@
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
/* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/

View File

@ -1,7 +1,8 @@
/* libutf8/src/lib/TopSource.cpp /* libutf8/src/libutf8/000_TopSource.cpp
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
#include "utf8.h" #include "utf8.h"
@ -11,3 +12,8 @@
#include <errno.h> #include <errno.h>
#include <stdint.h> #include <stdint.h>
#include <string.h> #include <string.h>
/* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/

View File

@ -1,7 +1,8 @@
/* libutf8/src/lib/ForwardDeclare.h /* libutf8/src/libutf8/010_forward.h
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
// This file simply contains forward declarations of all libutf8 // This file simply contains forward declarations of all libutf8
@ -12,3 +13,8 @@ struct utf8_encode_state;
// decode_state.h // decode_state.h
struct utf8_decode_state; struct utf8_decode_state;
/* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/

View File

@ -1,7 +1,8 @@
/* libutf8/src/lib/ctype.c /* libutf8/src/libutf8/100_ctype.c
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
bool utf8_isascii(wchar_t ch) bool utf8_isascii(wchar_t ch)
@ -52,4 +53,5 @@ bool utf8_isvalid(wchar_t ch)
/* options for text editors /* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4; kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/ */

View File

@ -1,7 +1,8 @@
/* libutf8/src/lib/ctype.h /* libutf8/src/libutf8/100_ctype.h
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
/*! \defgroup ctype Character classification /*! \defgroup ctype Character classification
@ -43,4 +44,5 @@ bool utf8_isvalid(wchar_t ch);
/* options for text editors /* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4; kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/ */

View File

@ -1,7 +1,8 @@
/* libutf8/src/lib/decode.c /* libutf8/src/libutf8/200_decode.c
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
wchar_t utf8_decode_char(const char* src, size_t* used) wchar_t utf8_decode_char(const char* src, size_t* used)
@ -232,3 +233,8 @@ wchar_t* utf8_decode_force2(wchar_t* dest, size_t size, size_t* written, const c
if(written) *written = ctx.written; if(written) *written = ctx.written;
return dest; return dest;
} }
/* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/

View File

@ -1,7 +1,8 @@
/* libutf8/src/lib/decode.h /* libutf8/src/libutf8/200_decode.h
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
/*! \defgroup decode UTF-8 decoding routines. /*! \defgroup decode UTF-8 decoding routines.
@ -185,3 +186,8 @@ wchar_t* utf8_decode_force2(wchar_t* dest, size_t size, size_t* written, const c
/*!@}*/ /*!@}*/
/* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/

View File

@ -1,7 +1,8 @@
/* libutf8/src/lib/encode.c /* libutf8/src/libutf8/300_encode.c
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
char* utf8_encode_char(char* dest, size_t amt, wchar_t ch) char* utf8_encode_char(char* dest, size_t amt, wchar_t ch)
@ -138,4 +139,5 @@ char* utf8_encode_force2(char* dest, size_t amt, size_t* written, const wchar_t*
/* options for text editors /* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4; kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/ */

View File

@ -1,7 +1,8 @@
/* libutf8/src/lib/encode.h /* libutf8/src/libutf8/300_encode.h
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
/*! \defgroup encode UTF-8 encoding routines. /*! \defgroup encode UTF-8 encoding routines.
@ -141,4 +142,5 @@ char* utf8_encode_force2(char* dest, size_t amt, size_t* written, const wchar_t*
/* options for text editors /* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4; kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/ */

View File

@ -1,7 +1,8 @@
/* libutf8/src/lib/decode_ctx.c /* libutf8/src/libutf8/400_decode_state.c
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
enum utf8_decoder_state { enum utf8_decoder_state {
@ -201,4 +202,5 @@ enum utf8_decode_error_action utf8_decode_error_callback_skip(
/* options for text editors /* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4; kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/ */

View File

@ -1,7 +1,8 @@
/* libutf8/src/lib/decode_ctx.h /* libutf8/src/libutf8/400_decode_state.h
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
/*! \defgroup decode_ctx UTF-8 stateful decoder. /*! \defgroup decode_ctx UTF-8 stateful decoder.
@ -194,4 +195,5 @@ enum utf8_decode_error_action utf8_decode_error_callback_skip(
/* options for text editors /* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4; kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/ */

View File

@ -1,7 +1,8 @@
/* libutf8/src/lib/encode_state.c /* libutf8/src/libutf8/500_encode_state.c
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
struct utf8_encode_state* utf8_encoder(struct utf8_encode_state* state) struct utf8_encode_state* utf8_encoder(struct utf8_encode_state* state)
@ -85,4 +86,5 @@ enum utf8_encode_error_action utf8_encode_error_callback_skip(
/* options for text editors /* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4; kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/ */

View File

@ -1,7 +1,8 @@
/* libutf8/src/lib/encode_state.h /* libutf8/src/libutf8/500_encode_state.h
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
/*! \defgroup encode_state UTF-8 stateful encoder. /*! \defgroup encode_state UTF-8 stateful encoder.
@ -155,4 +156,5 @@ struct utf8_encode_state* utf8_encoder(struct utf8_encode_state* state);
/* options for text editors /* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4; kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/ */

View File

@ -1,7 +1,8 @@
/* libutf8/src/lib/BottomHeader.h /* libutf8/src/libutf8/999_BottomHeader.h
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
#ifdef __cplusplus #ifdef __cplusplus
@ -9,3 +10,8 @@
#endif #endif
#endif #endif
/* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/

View File

@ -1,7 +1,8 @@
/* libutf8/src/tests/decode.c /* libutf8/src/tests/decode.c
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
#include "utf8.h" #include "utf8.h"
@ -104,4 +105,5 @@ int main(int argc, char* argv[])
/* options for text editors /* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4; kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/ */

View File

@ -1,7 +1,8 @@
/* libutf8/src/tests/random.c /* libutf8/src/tests/random.c
* *
* (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>. * (c)2006-2009, Laurence Withers, <l@lwithers.me.uk>.
* COPYING for more information / terms of license. * Released under the GNU GPLv3. See file COPYING or
* http://www.gnu.org/copyleft/gpl.html for details.
*/ */
#include "utf8.h" #include "utf8.h"
@ -162,4 +163,5 @@ int main(int argc, char* argv[])
/* options for text editors /* options for text editors
kate: replace-trailing-space-save true; space-indent true; tab-width 4; kate: replace-trailing-space-save true; space-indent true; tab-width 4;
vim: expandtab:ts=4:sw=4:syntax=c.doxygen
*/ */