diff options
author | Richard Stallman <rms@gnu.org> | 1993-05-06 17:39:52 +0000 |
---|---|---|
committer | Richard Stallman <rms@gnu.org> | 1993-05-06 17:39:52 +0000 |
commit | b54b3fb0235659bb387d9c3d852e1942e1870208 (patch) | |
tree | 90c7919c136e921f026395f6dad3ff15916d1f1d /gcc | |
parent | 8a2648ca071f01d3e09a649218e7aabaa6820233 (diff) | |
download | gcc-b54b3fb0235659bb387d9c3d852e1942e1870208.zip gcc-b54b3fb0235659bb387d9c3d852e1942e1870208.tar.gz gcc-b54b3fb0235659bb387d9c3d852e1942e1870208.tar.bz2 |
(OBJC_GEN_METHOD_LABEL): Do use CAT_NAME.
From-SVN: r4364
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/objc/objc-act.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 6524610..25eaa64 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -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 if method names contain underscores. -- rms. */ #ifndef OBJC_GEN_METHOD_LABEL -#define OBJC_GEN_METHOD_LABEL(BUF, IS_INST, CLASS_NAME, CAT_NAME, SEL_NAME, NUM) \ - do { \ - char *temp; \ - sprintf ((BUF), "_%s_%s_%s", \ - ((IS_INST) ? "i" : "c"), \ - (CLASS_NAME), \ - (SEL_NAME)); \ - for (temp = (BUF); *temp; temp++) \ - if (*temp == ':') *temp = '_'; \ +#define OBJC_GEN_METHOD_LABEL(BUF, IS_INST, CLASS_NAME, CAT_NAME, SEL_NAME, NUM) \ + do { \ + char *temp; \ + sprintf ((BUF), "_%s_%s_%s_%s", \ + ((IS_INST) ? "i" : "c"), \ + (CLASS_NAME), \ + ((CAT_NAME)? (CAT_NAME) : ""), \ + (SEL_NAME)); \ + for (temp = (BUF); *temp; temp++) \ + if (*temp == ':') *temp = '_'; \ } while (0) #endif |