source: git/factory/winnt/factoryconf.h @ cd86ac

fieker-DuValspielwiese
Last change on this file since cd86ac was d1065e, checked in by Jens Schmidt <schmidt@…>, 26 years ago
* winnt/factoryconf.h: automatically created from `factoryconf.template' using `makeheader' git-svn-id: file:///usr/local/Singular/svn/trunk@965 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 7.6 KB
Line 
1/* ../factory/winnt/factoryconf.h automatically generated by makeheader from ../factory/factoryconf.template */
2/* emacs edit mode for this file is -*- C -*- */
3/* $Id: factoryconf.h,v 1.5 1997-12-09 16:37:58 schmidt Exp $ */
4
5#ifndef INCL_FACTORYCONF_H
6#define INCL_FACTORYCONF_H
7
8/* {{{ docu
9*
10* factoryconf.template - template to generate `factoryconf.h'.
11*
12* `factoryconf.h' serves as a configuration file for the
13* installed source files (templates and `factory.h') the same
14* way as `config.h' serves as a configuration file for the
15* source files from which the library is build.  Additionally,
16* we paste a copy of our `assert.h' into this file which is
17* necessary for the templates to translate.
18*
19*/
20/* }}} */
21
22/* stuff included from ../factory/winnt/config.h */
23
24/* emacs edit mode for this file is -*- C -*- */
25/* $Id: factoryconf.h,v 1.5 1997-12-09 16:37:58 schmidt Exp $ */
26
27#ifndef INCL_CONFIG_H
28#define INCL_CONFIG_H
29
30/* {{{ docu
31 *
32 * config.h.in - used by `configure' to create `config.h'.
33 *
34 * This file is included at building time from almost all source
35 * files belonging to Factory.  Furthermore, it is (textually)
36 * included into `factoryconf.h' by `makeheader' so we have an
37 * installed version of this file, too.  This way, the installed
38 * source files will be compiled with the same settings as the
39 * library itself.
40 *
41 * In general, you should let `configure' guess the correct
42 * values for the `#define's below.  But if something seriously
43 * goes wrong in configuring, please inform the authors and feel
44 * free to edit the marked section.
45 *
46 * ---RS---
47 * This is the specialized version of config.h for compiling
48 * Factory on Windows NT 4.0 with MS Visula C++ 5.x
49 * ---RS---
50 */
51/* }}} */
52
53/************** START OF CONFIGURABLE SECTION **************/
54
55/* Define to empty if the keyword does not work.  */
56/* #undef const */
57
58/* Define as __inline if that's what the C compiler calls it.  */
59/* #undef inline */
60
61/* factory version */
62#define FACTORYVERSION "1.3b"
63
64/* factory configuration */
65#define FACTORYCONFIGURATION "WINNT"
66
67/* where the gftables live */
68#define GFTABLEDIR "."
69
70/* define if your compiler does arithmetic shift */
71#define HAS_ARITHMETIC_SHIFT 1
72
73/* define to build factory without stream IO */
74#undef NOSTREAMIO
75
76/* define if linked to Singular */
77#undef SINGULAR
78
79/* define if linked with factory memory manager */
80#define USE_MEMUTIL 1
81
82/* define if linked with old factory memory manager */
83#define USE_OLD_MEMMAN 1
84
85/* define if linked with new factory manager, debugging version */
86#undef MDEBUG
87
88/* define if you do not want to activate assertions */
89#undef NOASSERT
90
91/* define if you want to activate the timing stuff */
92#undef TIMING
93
94/* define if you want to have debugging output */
95#undef DEBUGOUTPUT
96
97/* define type of your compilers 64 bit integer type */
98#define INT64 __int64
99
100/************** END OF CONFIGURABLE SECTION **************/
101
102#endif /* ! INCL_CONFIG_H */
103
104/* stuff included from ../factory/assert.h */
105
106/* emacs edit mode for this file is -*- C -*- */
107/* $Id: factoryconf.h,v 1.5 1997-12-09 16:37:58 schmidt Exp $ */
108
109/* This is for compatibility with standard assert.h */
110#if defined (NDEBUG) && ! defined (NOASSERT)
111#define NOASSERT
112#endif
113
114/* It should be possible to include this file multiple times for different */
115/* settings of NOASSERT */
116
117/* {{{ undefines */
118#undef __ASSERT
119#undef __ASSERT1
120#undef STICKYASSERT
121#undef STICKYASSERT1
122#undef ASSERT
123#undef ASSERT1
124
125#undef __WARN
126#undef STICKYWARN
127#undef WARN
128
129#undef PVIRT_VOID
130#undef PVIRT_INTCF
131#undef PVIRT_BOOL
132#undef PVIRT_INT
133#undef PVIRT_CHARCC
134/* }}} */
135
136#include <stdio.h>
137#include <stdlib.h>
138
139/* {{{ permanent macro definitions */
140#ifndef __GNUC__
141#define __ASSERT(expression, message, file, line) \
142(fprintf( stderr, "error: " message "\n%s:%u: failed assertion `%s'\n", \
143 file, line, expression ), abort(), 0 )
144#define __ASSERT1(expression, message, parameter1, file, line)  \
145(fprintf( stderr, "error: " message "\n%s:%u: failed assertion `%s'\n", \
146 parameter1, file, line, expression ), abort(), 0 )
147
148#define STICKYASSERT(expression, message) \
149((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__)))
150#define STICKYASSERT1(expression, message, parameter1) \
151((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__)))
152
153#define __WARN(expression, message, file, line)  \
154(fprintf( stderr, "warning: " message "\n%s:%u: failed assertion `%s'\n", \
155 file, line, expression ), 0 )
156#define STICKYWARN(expression, message) \
157((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__)))
158#else /* __GNUCC__ */
159/* use preprocessor macro __PRETTY_FUNCTION__ for more informative output */
160#define __ASSERT(expression, message, file, line, function) \
161(fprintf( stderr, "error: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
162 file, line, function, expression ), abort(), 0 )
163#define __ASSERT1(expression, message, parameter1, file, line, function)  \
164(fprintf( stderr, "error: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
165 parameter1, file, line, function, expression ), abort(), 0 )
166
167#define STICKYASSERT(expression, message) \
168((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
169#define STICKYASSERT1(expression, message, parameter1) \
170((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
171
172#define __WARN(expression, message, file, line, function)  \
173(fprintf( stderr, "warning: " message "\n%s:%u: In function `%s':\nfailed assertion `%s'\n", \
174 file, line, function, expression ), 0 )
175#define STICKYWARN(expression, message) \
176((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
177#endif /* __GNUCC__ */
178/* }}} */
179
180/* {{{ macro definitions dependent on NOASSERT */
181#ifndef NOASSERT
182#ifndef __GNUC__
183#define ASSERT(expression, message) \
184((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__)))
185#define ASSERT1(expression, message, parameter1) \
186((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__)))
187
188#define WARN(expression, message) \
189((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__)))
190#else /* __GNUCC__ */
191/* use preprocessor macro __PRETTY_FUNCTION__ for more informative output */
192#define ASSERT(expression, message) \
193((void)((expression) ? 0 : __ASSERT(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
194#define ASSERT1(expression, message, parameter1) \
195((void)((expression) ? 0 : __ASSERT1(#expression, message, parameter1, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
196
197#define WARN(expression, message) \
198((void)((expression) ? 0 : __WARN(#expression, message, __FILE__, __LINE__, __PRETTY_FUNCTION__)))
199#endif /* __GNUCC__ */
200
201#define PVIRT_VOID(msg) \
202{ fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); }
203#define PVIRT_INTCF(msg) \
204{ fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
205#define PVIRT_BOOL(msg) \
206{ fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return false; }
207#define PVIRT_INT(msg) \
208{ fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
209#define PVIRT_CHARCC(msg) \
210{ fprintf( stderr, "pure method( " msg " ) called\n" ); abort(); return 0; }
211#else /* NOASSERT */
212#define ASSERT(expression, message)
213#define ASSERT1(expression, message, parameter1)
214
215#define WARN(expression, message)
216
217#define PVIRT_VOID(msg) = 0
218#define PVIRT_INTCF(msg) = 0
219#define PVIRT_BOOL(msg) = 0
220#define PVIRT_INT(msg) = 0
221#define PVIRT_CHARCC(msg) = 0
222#endif /* NOASSERT */
223/* }}} */
224
225#endif /* ! INCL_FACTORYCONF_H */
Note: See TracBrowser for help on using the repository browser.