Commit b54b3fb0 by Richard Stallman

(OBJC_GEN_METHOD_LABEL): Do use CAT_NAME.

From-SVN: r4364
parent 8a2648ca
...@@ -52,15 +52,16 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ ...@@ -52,15 +52,16 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
Perhaps there's a danger that it will make name conflicts Perhaps there's a danger that it will make name conflicts
if method names contain underscores. -- rms. */ if method names contain underscores. -- rms. */
#ifndef OBJC_GEN_METHOD_LABEL #ifndef OBJC_GEN_METHOD_LABEL
#define OBJC_GEN_METHOD_LABEL(BUF, IS_INST, CLASS_NAME, CAT_NAME, SEL_NAME, NUM) \ #define OBJC_GEN_METHOD_LABEL(BUF, IS_INST, CLASS_NAME, CAT_NAME, SEL_NAME, NUM) \
do { \ do { \
char *temp; \ char *temp; \
sprintf ((BUF), "_%s_%s_%s", \ sprintf ((BUF), "_%s_%s_%s_%s", \
((IS_INST) ? "i" : "c"), \ ((IS_INST) ? "i" : "c"), \
(CLASS_NAME), \ (CLASS_NAME), \
(SEL_NAME)); \ ((CAT_NAME)? (CAT_NAME) : ""), \
for (temp = (BUF); *temp; temp++) \ (SEL_NAME)); \
if (*temp == ':') *temp = '_'; \ for (temp = (BUF); *temp; temp++) \
if (*temp == ':') *temp = '_'; \
} while (0) } while (0)
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment