*** empty log message ***

This commit is contained in:
hyung-hwan 2004-12-18 09:58:49 +00:00
parent 1027516536
commit 57c59dfaa1
2 changed files with 35 additions and 35 deletions

View File

@ -1,45 +1,45 @@
/*
* $Id: macros.h,v 1.1 2004-12-18 09:16:31 bacon Exp $
* $Id: macros.h,v 1.2 2004-12-18 09:58:49 bacon Exp $
*/
#ifndef _RB_MACROS_H_
#define _RB_MACROS_H_
#ifndef _XP_MACROS_H_
#define _XP_MACROS_H_
#include <rb/types.h>
#include <xp/types.h>
#define RB_NULL ((void*)0)
#define RB_EOF ((rb_cint_t)-1)
#define XP_NULL ((void*)0)
#define XP_EOF ((xp_cint_t)-1)
#define rb_sizeof(n) (sizeof(n))
#define rb_countof(n) (sizeof(n) / sizeof(n[0]))
#define xp_sizeof(n) (sizeof(n))
#define xp_countof(n) (sizeof(n) / sizeof(n[0]))
#if defined(_WIN32)
#define rb_main _tmain
#define xp_main _tmain
#else
#define rb_main main
#define xp_main main
#endif
#define RB_LOOP_CONTINUE(id) goto __loop_ ## id ## _begin__;
#define RB_LOOP_BREAK(id) goto __loop_ ## id ## _end__;
#define RB_LOOP_BEGIN(id) __loop_ ## id ## _begin__: {
#define RB_LOOP_END(id) RB_LOOP_CONTINUE(id) } __loop_ ## id ## _end__:;
#define XP_LOOP_CONTINUE(id) goto __loop_ ## id ## _begin__;
#define XP_LOOP_BREAK(id) goto __loop_ ## id ## _end__;
#define XP_LOOP_BEGIN(id) __loop_ ## id ## _begin__: {
#define XP_LOOP_END(id) XP_LOOP_CONTINUE(id) } __loop_ ## id ## _end__:;
#define RB_QUOTE(val) __RB_QUOTE(val)
#define __RB_QUOTE(val) #val
#define XP_QUOTE(val) __XP_QUOTE(val)
#define __XP_QUOTE(val) #val
#define __RB_CHAR(quote) quote
#define __RB_TEXT(quote) quote
#define RB_MCHAR(quote) quote
#define RB_MTEXT(quote) quote
#define __XP_CHAR(quote) quote
#define __XP_TEXT(quote) quote
#define XP_MCHAR(quote) quote
#define XP_MTEXT(quote) quote
/*
#define __RB_CHAR(quote) L##quote
#define __RB_TEXT(quote) L##quote
#define RB_WCHAR(quote) L##quote
#define RB_WTEXT(quote) L##quote
#define __XP_CHAR(quote) L##quote
#define __XP_TEXT(quote) L##quote
#define XP_WCHAR(quote) L##quote
#define XP_WTEXT(quote) L##quote
*/
#define RB_CHAR(quote) __RB_CHAR(quote)
#define RB_TEXT(quote) __RB_TEXT(quote)
#define XP_CHAR(quote) __XP_CHAR(quote)
#define XP_TEXT(quote) __XP_TEXT(quote)
#endif

View File

@ -1,19 +1,19 @@
/*
* $Id: types.h,v 1.1 2004-12-18 09:16:31 bacon Exp $
* $Id: types.h,v 1.2 2004-12-18 09:58:49 bacon Exp $
*/
#ifndef _RB_TYPES_H_
#define _RB_TYPES_H_
#ifndef _XP_TYPES_H_
#define _XP_TYPES_H_
#include <rb/itypes.h>
typedef rb_int8_t rb_mchar_t;
typedef rb_int32_t rb_mcint_t;
typedef xp_int8_t xp_mchar_t;
typedef xp_int32_t xp_mcint_t;
typedef rb_int16_t rb_wchar_t;
typedef rb_int32_t rb_wcint_t;
typedef xp_int16_t xp_wchar_t;
typedef xp_int32_t xp_wcint_t;
typedef rb_mchar_t rb_char_t;
typedef rb_mcint_t rb_cint_t;
typedef xp_mchar_t xp_char_t;
typedef xp_mcint_t xp_cint_t;
#endif