Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / apps / JAWS / clients / WebSTONE / src / nsapi-includes / netsite.h
blob68983c7aeaee266d25310f67db4197b6328adadb
1 /*
2 * Copyright (c) 1994, 1995. Netscape Communications Corporation. All
3 * rights reserved.
5 * Use of this software is governed by the terms of the license agreement for
6 * the Netscape Communications or Netscape Comemrce Server between the
7 * parties.
8 */
11 /* ------------------------------------------------------------------------ */
15 * Standard defs for NetSite servers.
19 #ifndef NETSITE_H
20 #define NETSITE_H
22 #ifdef MCC_PROXY
23 #define MAGNUS_VERSION "1.1m"
24 #define MAGNUS_VERSION_STRING "Netscape-Proxy/1.1m"
26 #elif defined(MCC_ADMSERV)
27 #define MAGNUS_VERSION "1.1"
28 #define MAGNUS_VERSION_STRING "Netscape-Administrator/1.1"
30 #elif defined(MCC_HTTPD)
31 #define MAGNUS_VERSION "1.1"
32 #ifdef NET_SSL
33 #define MAGNUS_VERSION_STRING "Netscape-Commerce/1.12"
34 #else
35 #define MAGNUS_VERSION_STRING "Netscape-Communications/1.12"
36 #endif
38 #elif defined(MCC_NEWS)
39 #define MAGNUS_VERSION_STRING "Netscape 1.1"
40 #endif
42 /* Used in some places as a length limit on error messages */
43 #define MAGNUS_ERROR_LEN 8192
45 /* Carraige return and line feed */
46 #define CR 13
47 #define LF 10
49 /* -------------------------- Memory allocation --------------------------- */
52 /* Later change these to have catastrophic error handling */
54 #include <stdlib.h>
56 #define MALLOC(sz) malloc(sz)
57 #define FREE(ptr) free((void *)ptr)
58 #define STRDUP(str) strdup(str)
59 #define REALLOC(ptr,sz) realloc(ptr,sz)
62 /* Not sure where to put this. */
63 void magnus_atrestart(void (*fn)(void *), void *data);
65 #endif