Mercurial > emacs
comparison src/s/usg5-3.h @ 31226:4b1b1196a217
(index): Define only if not HAVE_INDEX.
(rindex): Define only if !HAVE_RINDEX.
author | Gerd Moellmann <gerd@gnu.org> |
---|---|
date | Mon, 28 Aug 2000 15:03:42 +0000 |
parents | e36f3a1efa2b |
children | 695cf19ef79e d7ddb3e565de |
comparison
equal
deleted
inserted
replaced
31225:7930c46bb365 | 31226:4b1b1196a217 |
---|---|
146 | 146 |
147 #define _setjmp setjmp | 147 #define _setjmp setjmp |
148 #define _longjmp longjmp | 148 #define _longjmp longjmp |
149 | 149 |
150 /* On USG systems these have different names */ | 150 /* On USG systems these have different names */ |
151 #ifndef HAVE_INDEX | |
151 #define index strchr | 152 #define index strchr |
153 #endif /* ! defined (HAVE_INDEX) */ | |
154 #ifndef HAVE_RINDEX | |
152 #define rindex strrchr | 155 #define rindex strrchr |
156 #endif /* ! defined (HAVE_RINDEX) */ | |
153 | 157 |
154 /* USG systems tend to put everything declared static | 158 /* USG systems tend to put everything declared static |
155 into the initialized data area, which becomes pure after dumping Emacs. | 159 into the initialized data area, which becomes pure after dumping Emacs. |
156 Foil this. Emacs carefully avoids static vars inside functions. */ | 160 Foil this. Emacs carefully avoids static vars inside functions. */ |
157 | 161 |