mac.h

Go to the documentation of this file.
00001 
00002 /*  $Id: mac.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 #define macinclude
00029 
00030 
00031 /*constants*/
00032 
00033 #define idgestaltselector 'LAND'
00034 #define idgestaltfunction 128
00035 
00036 
00037 /*typedefs*/
00038 
00039 typedef struct tymemoryconfig {
00040     
00041     long minstacksize; /*minimum stack space required*/
00042     
00043     long minheapsize; /*minimum heap space to run program*/
00044     
00045     long avghandlesize; /*to determine # of master blocks; use zero for none*/
00046     
00047     long reserveforcode; /*approx. size of not-yet-loaded CODE resources*/
00048     
00049     long reserved;
00050     } tymemoryconfig, **hdlmemoryconfig;
00051 
00052 
00053 /*globals*/
00054 
00055 extern long gSystemVersion;
00056 extern boolean  gHasColorQD;
00057 extern boolean  gCanUseNavServ;
00058 
00059 //extern SysEnvRec macworld; /*the machine environment*/
00060 
00061 extern tymemoryconfig macmemoryconfig;
00062 
00063 
00064 /*prototypes*/
00065 
00066 extern boolean initmacintosh (void);
00067 
00068 extern short countinitialfiles (void);
00069 
00070 extern void getinitialfile (short, bigstring, short *);
00071 
00072 extern boolean installgestaltfunction (void);
00073 
00074 #ifdef MACVERSION //JES 2004.03.29: MacOS Specific function declarations
00075     extern void WriteToConsole (char *s);
00076     extern void DoErrorAlert(OSStatus status, CFStringRef errorFormatString);
00077 #endif
00078 

Generated on Wed May 31 18:19:54 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6