1 /*
2     Title:  exports signature for mpoly.c
3 
4     Copyright (c) 2000-7
5         Cambridge University Technical Services Limited
6 
7     Further development copyright David C.J. Matthews 2001-12, 2015, 2019
8 
9     This library is free software; you can redistribute it and/or
10     modify it under the terms of the GNU Lesser General Public
11     License version 2.1 as published by the Free Software Foundation.
12 
13     This library is distributed in the hope that it will be useful,
14     but WITHOUT ANY WARRANTY; without even the implied warranty of
15     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
16     Lesser General Public License for more details.
17 
18     You should have received a copy of the GNU Lesser General Public
19     License along with this library; if not, write to the Free Software
20     Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
21 
22 */
23 #ifndef _MPOLY_H_DEFINED
24 #define _MPOLY_H_DEFINED
25 
26 #ifdef HAVE_TCHAR_H
27 #include <tchar.h>
28 #else
29 typedef char TCHAR;
30 #endif
31 
32 #include "noreturn.h"
33 #include "../polyexports.h"
34 
35 extern struct _userOptions {
36     unsigned    user_arg_count;
37     TCHAR       **user_arg_strings;
38     const TCHAR *programName;
39     unsigned    gcthreads;    // Number of threads to use for gc
40 } userOptions;
41 
42 class PolyWord;
43 
44 NORETURNFN(extern void finish(int n));
45 
46 extern char *RTSArgHelp(void);
47 
48 extern time_t exportTimeStamp;
49 
50 #if (defined(_WIN32))
51 extern int polymain(int argc, TCHAR **argv, exportDescription *exports);
52 #endif
53 
54 #ifdef HAVE_STDIO_H
55 #include <stdio.h>
56 #endif
57 
58 // Outout streams.  These are the same as stdOut and stdErr in Unix but
59 // may be redirected in Windows.
60 extern FILE *polyStdout, *polyStderr;
61 
62 #endif /* _MPOLY_H_DEFINED */
63