From 86142ac55059d72642d0901e1227e3d421a84211 Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Tue, 13 Oct 2009 10:55:21 +0000 Subject: [PATCH] Tidy up file header/trailer comments --- src/libutf8/000_TopHeader.h | 10 ++++++++-- src/libutf8/000_TopSource.c | 10 ++++++++-- src/libutf8/010_forward.h | 10 ++++++++-- src/libutf8/100_ctype.c | 6 ++++-- src/libutf8/100_ctype.h | 6 ++++-- src/libutf8/200_decode.c | 10 ++++++++-- src/libutf8/200_decode.h | 10 ++++++++-- src/libutf8/300_encode.c | 6 ++++-- src/libutf8/300_encode.h | 6 ++++-- src/libutf8/400_decode_state.c | 6 ++++-- src/libutf8/400_decode_state.h | 6 ++++-- src/libutf8/500_encode_state.c | 6 ++++-- src/libutf8/500_encode_state.h | 6 ++++-- src/libutf8/999_BottomHeader.h | 10 ++++++++-- src/tests/decode.c | 4 +++- src/tests/random.c | 4 +++- 16 files changed, 86 insertions(+), 30 deletions(-) diff --git a/src/libutf8/000_TopHeader.h b/src/libutf8/000_TopHeader.h index 867e387..f05ab62 100644 --- a/src/libutf8/000_TopHeader.h +++ b/src/libutf8/000_TopHeader.h @@ -1,7 +1,8 @@ -/* libutf8/src/lib/TopHeader.h +/* libutf8/src/libutf8/000_TopHeader.h * * (c)2006-2009, Laurence Withers, . - * 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 @@ -14,3 +15,8 @@ #ifdef __cplusplus extern "C" { #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 +*/ diff --git a/src/libutf8/000_TopSource.c b/src/libutf8/000_TopSource.c index 7edfdab..9167174 100644 --- a/src/libutf8/000_TopSource.c +++ b/src/libutf8/000_TopSource.c @@ -1,7 +1,8 @@ -/* libutf8/src/lib/TopSource.cpp +/* libutf8/src/libutf8/000_TopSource.cpp * * (c)2006-2009, Laurence Withers, . - * 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" @@ -11,3 +12,8 @@ #include #include #include + +/* 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 +*/ diff --git a/src/libutf8/010_forward.h b/src/libutf8/010_forward.h index 02c32ea..a64a7fe 100644 --- a/src/libutf8/010_forward.h +++ b/src/libutf8/010_forward.h @@ -1,7 +1,8 @@ -/* libutf8/src/lib/ForwardDeclare.h +/* libutf8/src/libutf8/010_forward.h * * (c)2006-2009, Laurence Withers, . - * 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 @@ -12,3 +13,8 @@ struct utf8_encode_state; // decode_state.h 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 +*/ diff --git a/src/libutf8/100_ctype.c b/src/libutf8/100_ctype.c index 8880fb6..24016d4 100644 --- a/src/libutf8/100_ctype.c +++ b/src/libutf8/100_ctype.c @@ -1,7 +1,8 @@ -/* libutf8/src/lib/ctype.c +/* libutf8/src/libutf8/100_ctype.c * * (c)2006-2009, Laurence Withers, . - * 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) @@ -52,4 +53,5 @@ bool utf8_isvalid(wchar_t ch) /* 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 */ diff --git a/src/libutf8/100_ctype.h b/src/libutf8/100_ctype.h index b86e828..487f13a 100644 --- a/src/libutf8/100_ctype.h +++ b/src/libutf8/100_ctype.h @@ -1,7 +1,8 @@ -/* libutf8/src/lib/ctype.h +/* libutf8/src/libutf8/100_ctype.h * * (c)2006-2009, Laurence Withers, . - * 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 @@ -43,4 +44,5 @@ bool utf8_isvalid(wchar_t ch); /* 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 */ diff --git a/src/libutf8/200_decode.c b/src/libutf8/200_decode.c index b5f4098..0528a00 100644 --- a/src/libutf8/200_decode.c +++ b/src/libutf8/200_decode.c @@ -1,7 +1,8 @@ -/* libutf8/src/lib/decode.c +/* libutf8/src/libutf8/200_decode.c * * (c)2006-2009, Laurence Withers, . - * 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) @@ -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; 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 +*/ diff --git a/src/libutf8/200_decode.h b/src/libutf8/200_decode.h index 65a53b1..5e617c4 100644 --- a/src/libutf8/200_decode.h +++ b/src/libutf8/200_decode.h @@ -1,7 +1,8 @@ -/* libutf8/src/lib/decode.h +/* libutf8/src/libutf8/200_decode.h * * (c)2006-2009, Laurence Withers, . - * 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. @@ -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 +*/ diff --git a/src/libutf8/300_encode.c b/src/libutf8/300_encode.c index 0500ece..ed0097b 100644 --- a/src/libutf8/300_encode.c +++ b/src/libutf8/300_encode.c @@ -1,7 +1,8 @@ -/* libutf8/src/lib/encode.c +/* libutf8/src/libutf8/300_encode.c * * (c)2006-2009, Laurence Withers, . - * 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) @@ -138,4 +139,5 @@ char* utf8_encode_force2(char* dest, size_t amt, size_t* written, const wchar_t* /* 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 */ diff --git a/src/libutf8/300_encode.h b/src/libutf8/300_encode.h index b0e76e0..0bdc12c 100644 --- a/src/libutf8/300_encode.h +++ b/src/libutf8/300_encode.h @@ -1,7 +1,8 @@ -/* libutf8/src/lib/encode.h +/* libutf8/src/libutf8/300_encode.h * * (c)2006-2009, Laurence Withers, . - * 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. @@ -141,4 +142,5 @@ char* utf8_encode_force2(char* dest, size_t amt, size_t* written, const wchar_t* /* 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 */ diff --git a/src/libutf8/400_decode_state.c b/src/libutf8/400_decode_state.c index 240f480..50a64ed 100644 --- a/src/libutf8/400_decode_state.c +++ b/src/libutf8/400_decode_state.c @@ -1,7 +1,8 @@ -/* libutf8/src/lib/decode_ctx.c +/* libutf8/src/libutf8/400_decode_state.c * * (c)2006-2009, Laurence Withers, . - * 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 { @@ -201,4 +202,5 @@ enum utf8_decode_error_action utf8_decode_error_callback_skip( /* 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 */ diff --git a/src/libutf8/400_decode_state.h b/src/libutf8/400_decode_state.h index b6f39b0..d69930c 100644 --- a/src/libutf8/400_decode_state.h +++ b/src/libutf8/400_decode_state.h @@ -1,7 +1,8 @@ -/* libutf8/src/lib/decode_ctx.h +/* libutf8/src/libutf8/400_decode_state.h * * (c)2006-2009, Laurence Withers, . - * 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. @@ -194,4 +195,5 @@ enum utf8_decode_error_action utf8_decode_error_callback_skip( /* 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 */ diff --git a/src/libutf8/500_encode_state.c b/src/libutf8/500_encode_state.c index 73b9b92..e9cda50 100644 --- a/src/libutf8/500_encode_state.c +++ b/src/libutf8/500_encode_state.c @@ -1,7 +1,8 @@ -/* libutf8/src/lib/encode_state.c +/* libutf8/src/libutf8/500_encode_state.c * * (c)2006-2009, Laurence Withers, . - * 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) @@ -85,4 +86,5 @@ enum utf8_encode_error_action utf8_encode_error_callback_skip( /* 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 */ diff --git a/src/libutf8/500_encode_state.h b/src/libutf8/500_encode_state.h index 6df285f..c47108f 100644 --- a/src/libutf8/500_encode_state.h +++ b/src/libutf8/500_encode_state.h @@ -1,7 +1,8 @@ -/* libutf8/src/lib/encode_state.h +/* libutf8/src/libutf8/500_encode_state.h * * (c)2006-2009, Laurence Withers, . - * 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. @@ -155,4 +156,5 @@ struct utf8_encode_state* utf8_encoder(struct utf8_encode_state* 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 */ diff --git a/src/libutf8/999_BottomHeader.h b/src/libutf8/999_BottomHeader.h index 371c31f..44aa930 100644 --- a/src/libutf8/999_BottomHeader.h +++ b/src/libutf8/999_BottomHeader.h @@ -1,7 +1,8 @@ -/* libutf8/src/lib/BottomHeader.h +/* libutf8/src/libutf8/999_BottomHeader.h * * (c)2006-2009, Laurence Withers, . - * 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 @@ -9,3 +10,8 @@ #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 +*/ diff --git a/src/tests/decode.c b/src/tests/decode.c index b0285f0..f182a9b 100644 --- a/src/tests/decode.c +++ b/src/tests/decode.c @@ -1,7 +1,8 @@ /* libutf8/src/tests/decode.c * * (c)2006-2009, Laurence Withers, . - * 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" @@ -104,4 +105,5 @@ int main(int argc, char* argv[]) /* 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 */ diff --git a/src/tests/random.c b/src/tests/random.c index 6e4132b..2b65cab 100644 --- a/src/tests/random.c +++ b/src/tests/random.c @@ -1,7 +1,8 @@ /* libutf8/src/tests/random.c * * (c)2006-2009, Laurence Withers, . - * 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" @@ -162,4 +163,5 @@ int main(int argc, char* argv[]) /* 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 */