Added all of the MH sources, including RCS files, in
[mmh] / docs / historical / mh-6.8.5 / h / RCS / strings.h,v
1 head    1.20;
2 access;
3 symbols;
4 locks; strict;
5 comment @ * @;
6
7
8 1.20
9 date    95.12.06.23.48.12;      author jromine; state Exp;
10 branches;
11 next    1.19;
12
13 1.19
14 date    93.02.26.21.54.00;      author jromine; state Exp;
15 branches;
16 next    1.18;
17
18 1.18
19 date    92.11.12.19.34.05;      author jromine; state Exp;
20 branches;
21 next    1.17;
22
23 1.17
24 date    92.11.11.23.04.16;      author jromine; state Exp;
25 branches;
26 next    1.16;
27
28 1.16
29 date    92.11.06.03.30.38;      author jromine; state Exp;
30 branches;
31 next    1.15;
32
33 1.15
34 date    92.11.04.02.36.15;      author jromine; state Exp;
35 branches;
36 next    1.14;
37
38 1.14
39 date    92.11.02.18.54.12;      author jromine; state Exp;
40 branches;
41 next    1.13;
42
43 1.13
44 date    92.10.30.05.52.07;      author jromine; state Exp;
45 branches;
46 next    1.12;
47
48 1.12
49 date    92.05.19.20.53.49;      author jromine; state Exp;
50 branches;
51 next    1.11;
52
53 1.11
54 date    92.05.12.21.47.25;      author jromine; state Exp;
55 branches;
56 next    1.10;
57
58 1.10
59 date    92.02.07.19.16.40;      author jromine; state Exp;
60 branches;
61 next    1.9;
62
63 1.9
64 date    92.01.31.21.37.07;      author jromine; state Exp;
65 branches;
66 next    1.8;
67
68 1.8
69 date    92.01.23.23.16.46;      author jromine; state Exp;
70 branches;
71 next    1.7;
72
73 1.7
74 date    90.04.05.16.18.34;      author sources; state Exp;
75 branches;
76 next    1.6;
77
78 1.6
79 date    90.04.05.15.05.46;      author sources; state Exp;
80 branches;
81 next    1.5;
82
83 1.5
84 date    90.04.02.13.24.20;      author sources; state Exp;
85 branches;
86 next    1.4;
87
88 1.4
89 date    90.03.27.19.14.00;      author sources; state Exp;
90 branches;
91 next    1.3;
92
93 1.3
94 date    90.03.19.09.30.19;      author sources; state Exp;
95 branches;
96 next    1.2;
97
98 1.2
99 date    90.02.01.13.22.13;      author sources; state Exp;
100 branches;
101 next    1.1;
102
103 1.1
104 date    90.02.01.13.21.13;      author sources; state Exp;
105 branches;
106 next    ;
107
108
109 desc
110 @@
111
112
113 1.20
114 log
115 @fix: don't re-define bcopy
116 @
117 text
118 @/* strings.h - define standard string functions */
119 /* @@(#)$Id: strings.h,v 1.19 1993/02/26 21:54:00 jromine Exp jromine $ */
120
121 #ifndef _STRINGS                /* once-only... */
122 #define _STRINGS
123
124 #ifdef AUX
125 #include <stdlib.h>
126 #endif
127
128 #ifdef _AIX
129 #include <string.h>
130 #include <stdlib.h>
131
132 #define bcmp(b1,b2,length)      memcmp(b1, b2, length)
133 #define bcopy(b1,b2,length)     (void) memcpy (b2, b1, length)
134 #define bcpy(b1,b2,length)      memcmp (b1, b2, length)
135 #define bzero(b,length)         (void) memset (b, 0, length)
136
137 #else /* _AIX */
138
139 #ifdef  SYS5
140 #define index   strchr
141 #define rindex  strrchr
142 #endif /* SYS5 */
143
144 #if     defined(BSD42) || defined(SVR4)
145 #if !defined(SVR4) && !defined(__386BSD__) && !defined(BSD44)
146 #include <strings.h>
147 #else
148 #include <string.h>
149 #include <stdlib.h>
150 #endif
151 #else   /* not BSD42 || SVR4 */
152 char   *index ();
153 char   *mktemp ();
154 char   *rindex ();
155 #ifndef SPRINTFTYPE
156 #ifndef ncr             /* NCR compiler complains about re-declaration */
157 char   *sprintf ();             /* I guess this is the new standard */
158 #endif
159 #else
160 SPRINTFTYPE sprintf ();
161 #endif
162 char   *strcat ();
163 int     strcmp ();
164 char   *strcpy ();
165 int     strlen ();
166 char   *strncat ();
167 int     strncmp ();
168 char   *strncpy ();
169 #endif
170
171 #if !defined(SVR4) && !defined(__386BSD__) && !defined(BSD44)
172 char   *getenv ();
173 char   *calloc (), *malloc (), *realloc ();
174 #endif  /* SVR4 */
175
176 #ifdef  SYS5
177 #include <memory.h>
178 #define bcmp(b1,b2,length)      memcmp(b1, b2, length)
179 #define bcopy(b1,b2,length)     (void) memcpy (b2, b1, length)
180 #define bcpy(b1,b2,length)      memcmp (b1, b2, length)
181 #define bzero(b,length)         (void) memset (b, 0, length)
182 #endif /* SYS5 */
183 #endif  /* _AIX */
184 #endif /* not _STRINGS */
185
186 #if !defined(bcopy) && (defined(__HIGHC__) || __GNUC__ == 2)
187 #define bcopy(s,d,l)    memcpy(d,s,l)
188 #endif
189 @
190
191
192 1.19
193 log
194 @386BSD/BSD44
195 @
196 text
197 @d2 1
198 a2 1
199 /* @@(#)$Id: strings.h,v 1.18 1992/11/12 19:34:05 jromine Exp jromine $ */
200 a58 4
201 #if defined(__HIGHC__) || __GNUC__ == 2
202 #define bcopy(s,d,l)    memcpy(d,s,l)
203 #endif
204
205 d68 4
206 @
207
208
209 1.18
210 log
211 @drop u_short defn from AUX`
212 @
213 text
214 @d2 1
215 a2 1
216 /* @@(#)$Id: strings.h,v 1.17 1992/11/11 23:04:16 jromine Exp jromine $ */
217 d28 1
218 a28 1
219 #ifndef SVR4
220 d54 1
221 a54 1
222 #ifndef SVR4
223 @
224
225
226 1.17
227 log
228 @SVR4 change for Solaris 2.x
229 @
230 text
231 @d2 1
232 a2 1
233 /* @@(#)$Id: strings.h,v 1.16 1992/11/06 03:30:38 jromine Exp jromine $ */
234 a8 2
235 #define u_long  ulong
236 #define u_short ushort
237 @
238
239
240 1.16
241 log
242 @AUX
243 @
244 text
245 @d2 1
246 a2 1
247 /* @@(#)$Id: strings.h,v 1.15 1992/11/04 02:36:15 jromine Exp jromine $ */
248 d30 1
249 d33 4
250 @
251
252
253 1.15
254 log
255 @remove _putenv defines
256 @
257 text
258 @d2 1
259 a2 1
260 /* @@(#)$Id: strings.h,v 1.14 1992/11/02 18:54:12 jromine Exp jromine $ */
261 d6 6
262 @
263
264
265 1.14
266 log
267 @don't define [r]index on _AIX since SYS5 defines them
268 @
269 text
270 @d2 1
271 a2 1
272 /* @@(#)$Id: strings.h,v 1.13 1992/10/30 05:52:07 jromine Exp jromine $ */
273 a8 1
274 #define putenv  _putenv
275 a9 1
276 #undef  putenv
277 @
278
279
280 1.13
281 log
282 @#ifdef around putenv decl in <stdlib.h>
283 .,
284 @
285 text
286 @d2 1
287 a2 1
288 /* @@(#)$Id: strings.h,v 1.12 1992/05/19 20:53:49 jromine Exp jromine $ */
289 a11 3
290
291 #define index   strchr
292 #define rindex  strrchr
293 @
294
295
296 1.12
297 log
298 @AIX
299 @
300 text
301 @d2 1
302 a2 1
303 /* @@(#)$Id: strings.h,v 1.11 1992/05/12 21:47:25 jromine Exp jromine $ */
304 d9 1
305 d11 1
306 @
307
308
309 1.11
310 log
311 @fix ifdefs
312 @
313 text
314 @d2 1
315 a2 1
316 /* @@(#)$Id: strings.h,v 1.10 1992/02/07 19:16:40 jromine Exp jromine $ */
317 d9 1
318 a9 1
319 #include <memory.h>
320 @
321
322
323 1.10
324 log
325 @SVR4
326 @
327 text
328 @d2 1
329 a2 1
330 /* @@(#)$Id: strings.h,v 1.9 1992/01/31 21:37:07 jromine Exp jromine $ */
331 d24 1
332 a24 1
333 #endif  SYS5
334 d63 1
335 a63 1
336 #endif  SYS5
337 d65 1
338 a65 1
339 #endif  not _STRINGS
340 @
341
342
343 1.9
344 log
345 @kerberos
346 @
347 text
348 @d2 1
349 a2 1
350 /* @@(#)$Id: strings.h,v 1.8 1992/01/23 23:16:46 jromine Exp jromine $ */
351 d26 1
352 a26 1
353 #ifdef BSD42
354 d48 1
355 d51 1
356 @
357
358
359 1.8
360 log
361 @ifdef ncr
362 @
363 text
364 @d2 1
365 a2 1
366 /* @@(#)$Id: strings.h,v 1.7 1990/04/05 16:18:34 sources Exp jromine $ */
367 d7 14
368 d26 3
369 d46 1
370 d51 4
371 d62 1
372 a62 1
373
374 @
375
376
377 1.7
378 log
379 @fix
380 @
381 text
382 @d2 1
383 a2 1
384 /* @@(#)$Id:$ */
385 d16 1
386 d18 1
387 @
388
389
390 1.6
391 log
392 @add ID
393 @
394 text
395 @a3 2
396 /* @@(MHWARNING) */
397
398 d15 5
399 a19 1
400 @@(SPRINTFTYPE)sprintf ();      /* finally, a config option */
401 @
402
403
404 1.5
405 log
406 @make "sprintf" type a config option
407 @
408 text
409 @d2 1
410 @
411
412
413 1.4
414 log
415 @some hpux fixes
416 @
417 text
418 @d3 2
419 d16 1
420 a16 9
421 /* this is getting gross. */
422 #if     (!defined(hpux) && defined(SYS5)) || defined(SUN41) 
423 char   *sprintf ();
424 #else   SYS5
425 #ifdef __GNUC__
426 #else
427 int     sprintf ();
428 #endif
429 #endif  SYS5
430 @
431
432
433 1.3
434 log
435 @yuk!
436 @
437 text
438 @d15 1
439 a15 1
440 #if     defined(SYS5) || defined(SUN41)
441 @
442
443
444 1.2
445 log
446 @some more SYS5 #ifdefs
447 @
448 text
449 @d14 2
450 a15 1
451 #ifdef SYS5  
452 @
453
454
455 1.1
456 log
457 @Initial revision
458 @
459 text
460 @d14 1
461 a14 1
462 #ifndef SYS5
463 d17 2
464 d20 1
465 d35 1
466 @