2 * Copyright (c) 1994, 1995. Netscape Communications Corporation. All
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
11 /* ------------------------------------------------------------------------ */
15 * Standard defs for NetSite servers.
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"
33 #define MAGNUS_VERSION_STRING "Netscape-Commerce/1.12"
35 #define MAGNUS_VERSION_STRING "Netscape-Communications/1.12"
38 #elif defined(MCC_NEWS)
39 #define MAGNUS_VERSION_STRING "Netscape 1.1"
42 /* Used in some places as a length limit on error messages */
43 #define MAGNUS_ERROR_LEN 8192
45 /* Carraige return and line feed */
49 /* -------------------------- Memory allocation --------------------------- */
52 /* Later change these to have catastrophic error handling */
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
);