From ab27d628b1e1500a22597acad013c4b50e5474a9 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 30 Aug 2010 15:33:20 +0200 Subject: Use C-style comments in the C code --- libxsde/xsde/c/compilers/ghs/post.h | 9 +++++---- libxsde/xsde/c/compilers/ghs/pre.h | 18 ++++++++++-------- libxsde/xsde/c/genx/char-props.c | 4 ++-- libxsde/xsde/c/post.h | 9 +++++---- libxsde/xsde/c/pre.h | 9 +++++---- 5 files changed, 27 insertions(+), 22 deletions(-) (limited to 'libxsde') diff --git a/libxsde/xsde/c/compilers/ghs/post.h b/libxsde/xsde/c/compilers/ghs/post.h index 7a16f02..5c86e88 100644 --- a/libxsde/xsde/c/compilers/ghs/post.h +++ b/libxsde/xsde/c/compilers/ghs/post.h @@ -1,7 +1,8 @@ -// file : xsde/c/compilers/ghs/post.h -// author : Boris Kolpackov -// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC -// license : GNU GPL v2 + exceptions; see accompanying LICENSE file +/* file : xsde/c/compilers/ghs/post.h + * author : Boris Kolpackov + * copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC + * license : GNU GPL v2 + exceptions; see accompanying LICENSE file + */ #ifdef __EDG__ # pragma ghs endnowarning diff --git a/libxsde/xsde/c/compilers/ghs/pre.h b/libxsde/xsde/c/compilers/ghs/pre.h index 076ab8a..2e37506 100644 --- a/libxsde/xsde/c/compilers/ghs/pre.h +++ b/libxsde/xsde/c/compilers/ghs/pre.h @@ -1,12 +1,14 @@ -// file : xsde/c/compilers/ghs/pre.h -// author : Boris Kolpackov -// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC -// license : GNU GPL v2 + exceptions; see accompanying LICENSE file +/* file : xsde/c/compilers/ghs/pre.h + * author : Boris Kolpackov + * copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC + * license : GNU GPL v2 + exceptions; see accompanying LICENSE file + */ -// Warning pragmas are only available in the new generation compiler. -// -// 111 - statement is unreachable -// +/* + * Warning pragmas are only available in the new generation compiler. + */ + +/* 111 - statement is unreachable */ #ifdef __EDG__ # pragma ghs nowarning 111 #endif diff --git a/libxsde/xsde/c/genx/char-props.c b/libxsde/xsde/c/genx/char-props.c index 34865ca..a7af5a3 100644 --- a/libxsde/xsde/c/genx/char-props.c +++ b/libxsde/xsde/c/genx/char-props.c @@ -255,7 +255,7 @@ void genxSetCharProps(char * p) charProp(p, 0x3007, GENX_LETTER|GENX_NAMECHAR); rangeProp(p, 0x3021, 0x3029, GENX_LETTER|GENX_NAMECHAR); -#endif // GENX_CHAR_TABLE_SIZE == 0x10000 +#endif /* GENX_CHAR_TABLE_SIZE == 0x10000 */ /* * NameChar ::= @@ -392,7 +392,7 @@ void genxSetCharProps(char * p) rangeProp(p, 0x309D, 0x309E, GENX_NAMECHAR); rangeProp(p, 0x30FC, 0x30FE, GENX_NAMECHAR); -#endif // GENX_CHAR_TABLE_SIZE == 0x10000 +#endif /* GENX_CHAR_TABLE_SIZE == 0x10000 */ } #include diff --git a/libxsde/xsde/c/post.h b/libxsde/xsde/c/post.h index 7db2fa2..de85b9b 100644 --- a/libxsde/xsde/c/post.h +++ b/libxsde/xsde/c/post.h @@ -1,7 +1,8 @@ -// file : xsde/c/post.h -// author : Boris Kolpackov -// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC -// license : GNU GPL v2 + exceptions; see accompanying LICENSE file +/* file : xsde/c/post.h + * author : Boris Kolpackov + * copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC + * license : GNU GPL v2 + exceptions; see accompanying LICENSE file + */ #if defined(__ghs__) || defined(__ghs) || defined(ghs) # include diff --git a/libxsde/xsde/c/pre.h b/libxsde/xsde/c/pre.h index 05098d1..cadba07 100644 --- a/libxsde/xsde/c/pre.h +++ b/libxsde/xsde/c/pre.h @@ -1,7 +1,8 @@ -// file : xsde/c/pre.h -// author : Boris Kolpackov -// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC -// license : GNU GPL v2 + exceptions; see accompanying LICENSE file +/* file : xsde/c/pre.h + * author : Boris Kolpackov + * copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC + * license : GNU GPL v2 + exceptions; see accompanying LICENSE file + */ #if defined(__ghs__) || defined(__ghs) || defined(ghs) # include -- cgit v1.1