1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
/*
Title: exports signature for mpoly.c
Copyright (c) 2000-7
Cambridge University Technical Services Limited
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef _MPOLY_H_DEFINED
#define _MPOLY_H_DEFINED
#include "noreturn.h"
#include "polyexports.h"
extern struct _userOptions {
unsigned user_arg_count;
char **user_arg_strings;
const char *programName;
unsigned debug; /* debugging flags */
bool noDisplay; /* X display flag */
// Not all of these can be set any longer.
unsigned long heapSize, immutableSegSize, mutableSegSize;
unsigned long immutableFreeSpace, mutableFreeSpace;
unsigned long immutableMinFree, mutableMinFree; // Probably remove
} userOptions;
// Values for debugging flags
#define DEBUG_CHECK_OBJECTS 1 // Check that addresses are valid.
#define DEBUG_REGION_CHECK 2 // VERY EXPENSIVE checking
#define DEBUG_NOGROW 4 // Don't allocate new heap segments
#define DEBUG_FORCEGC 16 // Force a GC every allocation
#define DEBUG_X 128 // X-Windows debugging
class PolyWord;
// Return the entry in the io vector corresponding to the Poly system call.
extern PolyWord *IoEntry(unsigned SYS_op);
NORETURNFN(extern void finish(int n));
extern char *RTSArgHelp(void);
extern UNSIGNEDADDR exportTimeStamp;
#endif /* _MPOLY_H_DEFINED */
|