/***** * * Michael Riff * RPN software version 1.0 Oktob 2013. * * Header file for the redefined stndard IO unix routines to use the * lower part of a MacOS window as a console. * * Version 1.2: 04 Feb 2014 * Renamed InitStdLib *****/ #ifndef UX_STD_DEFS #define UX_STD_DEFS typedef unsigned long size_t; Ptr malloc(size_t); void free(void *); Ptr calloc(size_t, size_t); typedef struct { FSSpec spec; short fRefNum; short vRefNum; } FILE; FILE *fopen(const char *filename, const char *mode); char *fgets(char *s, int n, FILE *stream); void fclose(FILE *file); void InitStdio(WindowPtr, Point); void SelectConsole(); void DeselectConsole(); void ReleaseConsole(); int printf(const char *, ...); int sprintf(char *s, const char *format, ...); int scanf(const char*, ...); int sscanf(const char*, const char*, ...); int strlen(const char *s); int strcmp(const char *, const char *); int strncmp(const char *, const char *, int); int strcpy(char *, char *); int strncpy(char *, char *, int); char* strcat(char *, char *); long atoi(Ptr); long int strtol(const char *, char **, int); unsigned long int strtoul(const char *, char **, int); void InitStdLib(); double atof(Ptr); double strtod(const char *, char **); #endif