freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Devel] OTV_NEST*


From: Masatake YAMATO
Subject: [Devel] OTV_NEST*
Date: Sun, 26 Dec 2004 21:05:17 +0900 (JST)

I'm reading otvalid.
I've found some strange macro usages. I guess these are typos. 
Could you check this patch?

2004-12-26  Masatake YAMATO  <address@hidden>

        * src/otvalid/otvcommn.h (OTV_NEST1, OTV_NEST2, OTV_NEST3): Pass
        extra arguments generated by `#' preprocessor operator to
        OTV_NEST1_, OTV_NEST2_, OTV_NEST3_.

--- orig/src/otvalid/otvcommn.h
+++ mod/src/otvalid/otvcommn.h
@@ -112,7 +112,7 @@
 #ifdef FT_DEBUG_LEVEL_TRACE
 
   /* use preprocessor's argument prescan to expand one argument into two */
-#define OTV_NEST1( x )  OTV_NEST1_( x )
+#define OTV_NEST1( x )  OTV_NEST1_( x, #x )
 #define OTV_NEST1_( func0, name0 )                 \
           FT_BEGIN_STMNT                           \
             valid->nesting_level          = 0;     \
@@ -121,7 +121,7 @@
           FT_END_STMNT
 
   /* use preprocessor's argument prescan to expand two arguments into four */
-#define OTV_NEST2( x, y )  OTV_NEST2_( x, y )
+#define OTV_NEST2( x, y )  OTV_NEST2_( x, #x, y, #y )
 #define OTV_NEST2_( func0, name0, func1, name1 )   \
           FT_BEGIN_STMNT                           \
             valid->nesting_level          = 0;     \
@@ -132,7 +132,7 @@
           FT_END_STMNT
 
   /* use preprocessor's argument prescan to expand three arguments into six */
-#define OTV_NEST3( x, y, z )  OTV_NEST3_( x, y, z )
+#define OTV_NEST3( x, y, z )  OTV_NEST3_( x, #x, y, #y, z, #z )
 #define OTV_NEST3_( func0, name0, func1, name1, func2, name2 ) \
           FT_BEGIN_STMNT                                       \
             valid->nesting_level          = 0;                 \
@@ -172,7 +172,7 @@
 #else   /* !FT_DEBUG_LEVEL_TRACE */
 
   /* use preprocessor's argument prescan to expand one argument into two */
-#define OTV_NEST1( x )  OTV_NEST1_( x )
+#define OTV_NEST1( x )  OTV_NEST1_( x, #x )
 #define OTV_NEST1_( func0, name0 )        \
           FT_BEGIN_STMNT                  \
             valid->nesting_level = 0;     \
@@ -180,7 +180,7 @@
           FT_END_STMNT
 
   /* use preprocessor's argument prescan to expand two arguments into four */
-#define OTV_NEST2( x, y )  OTV_NEST2_( x, y )
+#define OTV_NEST2( x, y )  OTV_NEST2_( x, #x, y, #y )
 #define OTV_NEST2_( func0, name0, func1, name1 ) \
           FT_BEGIN_STMNT                         \
             valid->nesting_level = 0;            \
@@ -189,7 +189,7 @@
           FT_END_STMNT
 
   /* use preprocessor's argument prescan to expand three arguments into six */
-#define OTV_NEST3( x, y, z )  OTV_NEST3_( x, y, z )
+#define OTV_NEST3( x, y, z )  OTV_NEST3_( x, #x, y, #y, z, #z )
 #define OTV_NEST3_( func0, name0, func1, name1, func2, name2 ) \
           FT_BEGIN_STMNT                                       \
             valid->nesting_level = 0;                          \







reply via email to

[Prev in Thread] Current Thread [Next in Thread]