mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2025-01-03 10:29:41 +00:00
Added a bin folder for compiled files from ORCA/C
This commit is contained in:
parent
262afd5bbc
commit
bc5e497395
BIN
bin/Languages/Finder.Data
Executable file
BIN
bin/Languages/Finder.Data
Executable file
Binary file not shown.
BIN
bin/Languages/cc
Executable file
BIN
bin/Languages/cc
Executable file
Binary file not shown.
1
bin/Libraries/ORCACDefs/stdio.h
Executable file
1
bin/Libraries/ORCACDefs/stdio.h
Executable file
@ -0,0 +1 @@
|
||||
/****************************************************************
*
* stdio.h - input/output facilities
*
* February 1989
* Mike Westerfield
*
* Copyright 1989, 1993, 1996
* Byte Works, Inc.
*
****************************************************************/
#ifndef __stdio__
#define __stdio__
/*
* Misc.
*/
#ifndef __va_list__
#define __va_list__
typedef char *__va_list[2];
#endif
#ifndef EOF
#define EOF (-1)
#endif
#ifndef NULL
#define NULL (void *) 0L
#endif
#ifndef __size_t__
#define __size_t__ 1
typedef unsigned long size_t;
#endif
/* seek codes */
#define SEEK_SET 0
#define SEEK_CUR 1
#define SEEK_END 2
/*
* Error handling
*/
#ifndef __KeepNamespacePure__
extern int sys_nerr; /* largest index for sys_errlist */
extern char *sys_errlist[]; /* error messages */
#endif
/*
* files
*/
typedef struct __file {
struct __file *next; /* next file in linked list */
unsigned char *_ptr, /* next location to write to */
*_base, /* first byte of the buffer */
*_end; /* end of the file buffer */
unsigned long _size, /* size of the file buffer */
_cnt; /* # chars that can be read/written to buffer */
int _pbk[2]; /* put back buffer */
unsigned int _flag, /* buffer flags */
_file; /* GS/OS file ID */
} FILE;
#define BUFSIZ 1024 /* default buffer size */
#define _LBUFSIZ 255 /* line buffer size */
#define _IOFBF 0x0001 /* full buffering */
#define _IONBF 0x0002 /* no buffering */
#define _IOLBF 0x0004 /* flush when a \n is written */
#define _IOREAD 0x0008 /* currently reading */
#define _IOWRT 0x0010 /* currently writing */
#define _IORW 0x0020 /* read/write enabled */
#define _IOMYBUF 0x0040 /* buffer was allocated by stdio */
#define _IOEOF 0x0080 /* has an EOF been found? */
#define _IOERR 0x0100 /* has an error occurred? */
#define _IOTEXT 0x0200 /* is this file a text file? */
#define _IOTEMPFILE 0x0400 /* was this file created by tmpfile()? */
extern FILE *stderr; /* standard I/O files */
extern FILE *stdin;
extern FILE *stdout;
#define L_tmpnam 26 /* size of a temp name */
#define TMP_MAX 10000 /* # of unique temp names */
#ifndef __KeepNamespacePure__
#define SYS_OPEN 32767 /* max # open files */
#endif
#define FOPEN_MAX 32767 /* max # open files */
#define FILENAME_MAX 1024 /* recommended file name length */
/*
* Other types
*/
typedef long fpos_t;
/*
* Functions declared as macros
*/
#define setbuf(stream,buf) ((buf==NULL) ? (void) __setvbuf(stream,NULL,_IONBF,0l) : (void) __setvbuf(stream,buf,_IOFBF,(size_t) BUFSIZ))
#define rewind(stream) (__fseek((stream),0L,SEEK_SET))
/*
* Function declarations
*/
void clearerr(FILE *);
int fclose(FILE *);
int feof(FILE *);
int ferror(FILE *);
int fflush(FILE *);
int fgetc(FILE *);
int fgetpos(FILE *, fpos_t *);
char *fgets(char *, int, FILE *);
FILE *fopen(const char *, const char *);
int fprintf(FILE *, const char *, ...);
int fputc(int, FILE *);
int fputs(const char *, FILE *);
size_t fread(void *, size_t, size_t, FILE *);
FILE *freopen(const char *, const char *, FILE *);
int fscanf(FILE *, const char *, ...);
int fseek(FILE *, long, int);
int fsetpos(FILE *, const fpos_t *);
long int ftell(FILE *);
size_t fwrite(const void *, size_t, size_t, FILE *);
int getc(FILE *);
int getchar(void);
char *gets(char *);
void perror(const char *);
int printf(const char *, ...);
int putc(int, FILE *);
int putchar(int);
int puts(const char *);
int remove(const char *);
int rename(const char *, const char *);
int scanf(const char *, ...);
int setvbuf(FILE *, char *, int, size_t);
int sprintf(char *, const char *, ...);
int sscanf(const char *, const char *, ...);
FILE *tmpfile(void);
char *tmpnam(char *);
int ungetc(int c, FILE *);
int vfprintf(FILE *, const char *, __va_list);
int vprintf(const char *, __va_list);
int vsprintf(char *, const char *, __va_list);
#endif
|
BIN
bin/Libraries/ORCALib
Executable file
BIN
bin/Libraries/ORCALib
Executable file
Binary file not shown.
1
bin/OSSource/ORCALib/equates.asm
Executable file
1
bin/OSSource/ORCALib/equates.asm
Executable file
@ -0,0 +1 @@
|
||||
****************************************************************
*
* This file contains constant values defined in the C interfaces
* that are also used in the assembly language portion of the
* libraries.
*
****************************************************************
;
; error numbers
;
EDOM gequ 1 domain error
ERANGE gequ 2 # too large, too small, or illegal
ENOMEM gequ 3 Not enough memory
ENOENT gequ 4 No such file or directory
EIO gequ 5 I/O error
EINVAL gequ 6 Invalid argument
EBADF gequ 7 bad file descriptor
EMFILE gequ 8 too many files are open
EACCES gequ 9 access bits prevent the operation
EEXIST gequ 10 the file exists
ENOSPC gequ 11 the file is too large
;
; masks for the __ctype array
;
_digit gequ $01 ['0'..'9']
_upper gequ $02 ['A'..'Z']
_lower gequ $04 ['a'..'z']
_control gequ $08 [chr(0)..chr(31),chr(127)]
_punctuation gequ $10 [' ','!'..'/',':'..'@','['..'`','{'..'~']
_space gequ $20 [chr(9)..chr(13),' ']
_hex gequ $40 ['0'..'9','a'..'f','A'..'F']
_print gequ $80 [' '..'~']
;
; masks for the __ctype2 array
;
_csym gequ $01 ['0'..'9','A'..'Z','a'..'z','_']
_csymf gequ $02 ['A'..'Z','a'..'z'.'_']
_octal gequ $04 ['0'..'7']
;
; signal numbers
;
SIGABRT gequ 1
SIGFPE gequ 2
SIGILL gequ 3
SIGINT gequ 4
SIGSEGV gequ 5
SIGTERM gequ 6
;
; The FILE record
;
! flags
! -----
_IOFBF gequ $0001 full buffering
_IONBF gequ $0002 no buffering
_IOLBF gequ $0004 flush when a \n is written
_IOREAD gequ $0008 currently reading
_IOWRT gequ $0010 currently writing
_IORW gequ $0020 read/write enabled
_IOMYBUF gequ $0040 buffer was allocated by stdio
_IOEOF gequ $0080 has an EOF been found?
_IOERR gequ $0100 has an error occurred?
_IOTEXT gequ $0200 is this file a text file?
_IOTEMPFILE gequ $0400 was this file created by tmpfile()?
! record structure
! ----------------
FILE_next gequ 0 disp to next pointer (must stay 0!)
FILE_ptr gequ FILE_next+4 next location to write to
FILE_base gequ FILE_ptr+4 first byte of the buffer
FILE_end gequ FILE_base+4 end of the file buffer
FILE_size gequ FILE_end+4 size of the file buffer
FILE_cnt gequ FILE_size+4 # chars that can be read/writen to buffer
FILE_pbk gequ FILE_cnt+4 put back character
FILE_flag gequ FILE_pbk+4 buffer flags
FILE_file gequ FILE_flag+2 GS/OS file ID
sizeofFILE gequ FILE_file+2 size of the record
BUFSIZ gequ 1024 default file buffer size
_LBUFSIZ gequ 255 line buffer size
L_tmpnam gequ 9 size of a temp name
TMP_MAX gequ 10000 # of uniq temp names
;
; Seek codes for fseek
;
SEEK_SET gequ 0 seek from start of file
SEEK_CUR gequ 1 seek from current position
SEEK_END gequ 2 seek from end of file
;
; Values for fcntl.h
;
OPEN_MAX gequ 30 files in the file array
F_DUPFD gequ 1 dup file flag (fcntl)
O_RDONLY gequ $0001 file is read only
O_WRONLY gequ $0002 file is write only
O_RDWR gequ $0004 file is read/write
O_NDELAY gequ $0008 not used
O_APPEND gequ $0010 append to file on all writes
O_CREAT gequ $0020 create a new file if needed
O_TRUNC gequ $0040 erase old file
O_EXCL gequ $0080 don't create a new file
O_BINARY gequ $0100 file is binary
;
; Misc.
;
EOF gequ -1 end of file character
stdinID gequ -1 standard in file ID
stdoutID gequ -2 standard out file ID
stderrID gequ -3 error out file ID
|
1
bin/OSSource/ORCALib/stdio.asm
Executable file
1
bin/OSSource/ORCALib/stdio.asm
Executable file
File diff suppressed because one or more lines are too long
1
bin/cc.notes
Executable file
1
bin/cc.notes
Executable file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user