Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

mac.c File Reference

#include "config.h"
#include "misc.h"
#include "dir.h"
#include "lisp.h"
#include "module.h"
#include "system.h"

Include dependency graph for mac.c:

Include dependency graph

Defines

#define c2p(STR, PBUF)
#define p2c(PSTR, BUF)
#define XCONQLIB   ":lib"
#define XCONQIMAGES   ":images"
#define XCONQSAVE   ":save"

Functions

int convert_mac_charcodes (int ch)
char * default_library_pathname ()
char * default_images_pathname (char *libpath)
char * news_filename ()
void save_game (char *name)
char * game_homedir (void)
char * game_filename (char *namevar, char *defaultname)
FILE * open_file (char *filename, char *mode)
FILE * open_library_file (char *filename)
FILE * open_scorefile_for_reading (char *name)
FILE * open_scorefile_for_writing (char *name)
void close_scorefile_for_writing (FILE *fp)
void make_pathname (char *path, char *name, char *extn, char *pathbuf)
int remove_file (char *fname)
char * error_save_filename (void)
void init_signal_handlers ()
int n_seconds_elapsed (int n)
int n_ms_elapsed (int n)
void record_ms ()
int open_remote_connection (char *methodname, int willhost)
void close_remote_connection (int rid)
void low_send (int id, char *buf)
int low_receive (int *idp, char *buf, int maxchars, int timeout)

Variables

CursHandle sendcursor
CursHandle receivecursor
CursHandle current_cursor
short initial_vrefnum = -1
long initial_dirid = -1
int use_mac_charcodes
int last_ticks = 0
int last_ticks_for_ms = 0

Define Documentation

#define c2p STR,
PBUF   ) 
 

Value:

strcpy(((char *) PBUF) + 1, STR);  \
  PBUF[0] = strlen(STR);

#define p2c PSTR,
BUF   ) 
 

Value:

strncpy(BUF, ((char *) (PSTR) + 1), PSTR[0]);  \
  BUF[PSTR[0]] = '\0';

#define XCONQIMAGES   ":images"
 

#define XCONQLIB   ":lib"
 

#define XCONQSAVE   ":save"
 


Function Documentation

void close_remote_connection int  rid  ) 
 

void close_scorefile_for_writing FILE *  fp  ) 
 

int convert_mac_charcodes int  ch  ) 
 

char* default_images_pathname char *  libpath  ) 
 

char* default_library_pathname void   ) 
 

char* error_save_filename void   ) 
 

char* game_filename char *  namevar,
char *  defaultname
 

char* game_homedir void   ) 
 

void init_signal_handlers void   ) 
 

int low_receive int *  idp,
char *  buf,
int  maxchars,
int  timeout
 

void low_send int  id,
char *  buf
 

void make_pathname char *  path,
char *  name,
char *  extn,
char *  pathbuf
 

int n_ms_elapsed int  n  ) 
 

int n_seconds_elapsed int  n  ) 
 

char* news_filename void   ) 
 

FILE* open_file char *  filename,
char *  mode
 

FILE* open_library_file char *  filename  ) 
 

int open_remote_connection char *  methodname,
int  willhost
 

FILE* open_scorefile_for_reading char *  name  ) 
 

FILE* open_scorefile_for_writing char *  name  ) 
 

void record_ms void   ) 
 

int remove_file char *  fname  ) 
 

void save_game char *  name  ) 
 


Variable Documentation

CursHandle current_cursor
 

long initial_dirid = -1
 

short initial_vrefnum = -1
 

int last_ticks = 0
 

int last_ticks_for_ms = 0
 

CursHandle receivecursor
 

CursHandle sendcursor
 

int use_mac_charcodes
 


Generated on Sat Sep 17 10:29:18 2005 for XconqKernel by doxygen 1.3.6