diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-04-02 17:40:19 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2007-04-02 17:40:19 -0700 |
commit | 0fbb37ccc630ced42d6a973c81d947870cca7637 (patch) | |
tree | d4fc36c9f0e52780b67b0739588b0dc62d76f1e1 /src/util/atom.c | |
parent | cc824e4f2c9a53a00b36a6f83bf065c363027087 (diff) |
Add #pragma weak for Sun cc where needed
Diffstat (limited to 'src/util/atom.c')
-rw-r--r-- | src/util/atom.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/util/atom.c b/src/util/atom.c index e5fea46..b770dc9 100644 --- a/src/util/atom.c +++ b/src/util/atom.c @@ -146,6 +146,10 @@ NameEqual (const char *a, const char *b, int l) return TRUE; } +#ifdef __SUNPRO_C +#pragma weak MakeAtom +#endif + weak Atom MakeAtom(char *string, unsigned len, int makeit) { @@ -219,12 +223,20 @@ MakeAtom(char *string, unsigned len, int makeit) return a->atom; } +#ifdef __SUNPRO_C +#pragma weak ValidAtom +#endif + weak int ValidAtom(Atom atom) { return (atom != None) && (atom <= lastAtom); } +#ifdef __SUNPRO_C +#pragma weak NameForAtom +#endif + weak char * NameForAtom(Atom atom) { |