ARB
Macros | Functions
macinit.c File Reference
#include <Types.h>
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <StdLib.h>
#include <Quickdraw.h>
#include <Memory.h>
#include <OSUtils.h>
#include <ToolUtils.h>
#include <Windows.h>
#include <Palettes.h>
#include <dialogs.h>
#include <StandardFile.h>
#include <Events.h>
Include dependency graph for macinit.c:

Go to the source code of this file.

Macros

#define MAXS   255
 
#define addarg(sptr)
 
#define nocolorID   130
 
#define no68020   133
 
#define no68881   132
 
#define no256   134
 
#define nosys6   135
 

Functions

Boolean StopKey ()
 
Boolean cmdKeyIsDown ()
 
Boolean shiftKeyIsDown ()
 
Boolean capsLockIsDown ()
 
Boolean optionKeyIsDown ()
 
Boolean MouseButton ()
 
Boolean Keypress ()
 
charStdGetFile (char *prompt, OSType fileTypes[], int nFileTypes)
 
int readCmdOptions (FILE *cl, char *progname, char ***argv)
 
int ccommand (char ***argv)
 
 _DataInit ()
 
void MacInit ()
 
 main (int argc, char *argv[])
 

Macro Definition Documentation

#define MAXS   255

Referenced by readCmdOptions().

#define addarg (   sptr)
Value:
if (strlen(sptr)>0) { \
targv = (char **) realloc( targv, (argc+1) * sizeof(char *)); \
targv[argc] = (char *) malloc(1+strlen(sptr) * sizeof(char)); \
strcpy( targv[argc], sptr); \
argc++; }

Referenced by readCmdOptions().

#define nocolorID   130

Definition at line 156 of file macinit.c.

#define no68020   133

Definition at line 157 of file macinit.c.

#define no68881   132

Definition at line 158 of file macinit.c.

#define no256   134

Definition at line 159 of file macinit.c.

#define nosys6   135

Definition at line 160 of file macinit.c.

Function Documentation

Boolean StopKey ( )

Definition at line 31 of file macinit.c.

Boolean cmdKeyIsDown ( )

Definition at line 46 of file macinit.c.

Boolean shiftKeyIsDown ( )

Definition at line 52 of file macinit.c.

Boolean capsLockIsDown ( )

Definition at line 58 of file macinit.c.

Boolean optionKeyIsDown ( )

Definition at line 64 of file macinit.c.

Referenced by StdGetFile().

Boolean MouseButton ( )

Definition at line 70 of file macinit.c.

Boolean Keypress ( )

Definition at line 75 of file macinit.c.

char* StdGetFile ( char prompt,
OSType  fileTypes[],
int  nFileTypes 
)

Definition at line 82 of file macinit.c.

References optionKeyIsDown().

int readCmdOptions ( FILE *  cl,
char progname,
char ***  argv 
)

Definition at line 110 of file macinit.c.

References addarg, and MAXS.

Referenced by ccommand().

int ccommand ( char ***  argv)

Definition at line 140 of file macinit.c.

References readCmdOptions().

Referenced by main().

_DataInit ( )

Referenced by MacInit().

void MacInit ( )

Definition at line 162 of file macinit.c.

References _DataInit().

main ( int  argc,
char argv[] 
)

Definition at line 283 of file macinit.c.

References ccommand(), and fflush().