-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0c3b0a
commit 1dd3696
Showing
57 changed files
with
2,610 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"files.associations": { | ||
"TICTAC.C": "cpp", | ||
"SYSTEM.C": "cpp", | ||
"NUCLEO.C": "cpp" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/* alloc.h | ||
memory management functions and variables. | ||
Copyright (c) Borland International 1987,1988 | ||
All Rights Reserved. | ||
*/ | ||
#if __STDC__ | ||
#define _Cdecl | ||
#else | ||
#define _Cdecl cdecl | ||
#endif | ||
|
||
#ifndef _STDDEF | ||
#define _STDDEF | ||
#ifndef _PTRDIFF_T | ||
#define _PTRDIFF_T | ||
#if defined(__LARGE__) || defined(__HUGE__) || defined(__COMPACT__) | ||
typedef long ptrdiff_t; | ||
#else | ||
typedef int ptrdiff_t; | ||
#endif | ||
#endif | ||
#ifndef _SIZE_T | ||
#define _SIZE_T | ||
typedef unsigned size_t; | ||
#endif | ||
#endif | ||
|
||
#ifndef NULL | ||
#if defined(__TINY__) || defined(__SMALL__) || defined(__MEDIUM__) | ||
#define NULL 0 | ||
#else | ||
#define NULL 0L | ||
#endif | ||
#endif | ||
|
||
int _Cdecl brk (void *addr); | ||
void *_Cdecl calloc (size_t nitems, size_t size); | ||
|
||
#if defined(__COMPACT__) || defined(__LARGE__) || defined(__HUGE__) | ||
unsigned long _Cdecl coreleft (void); | ||
#else | ||
unsigned _Cdecl coreleft (void); | ||
#endif | ||
|
||
void _Cdecl free (void *block); | ||
void *_Cdecl malloc (size_t size); | ||
void *_Cdecl realloc (void *block, size_t size); | ||
void *_Cdecl sbrk (int incr); | ||
|
||
#if !__STDC__ | ||
void far * _Cdecl farcalloc (unsigned long nunits, unsigned long unitsz); | ||
unsigned long _Cdecl farcoreleft(void); | ||
void _Cdecl farfree (void far *block); | ||
void far *_Cdecl farmalloc (unsigned long nbytes); | ||
void far *_Cdecl farrealloc (void far *oldblock, unsigned long nbytes); | ||
#endif | ||
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/* conio.h | ||
Direct MSDOS console input/output. | ||
Copyright (c) Borland International 1987,1988 | ||
All Rights Reserved. | ||
*/ | ||
#if !defined(__VIDEO) | ||
#define __VIDEO | ||
|
||
#if __STDC__ | ||
#define _Cdecl | ||
#else | ||
#define _Cdecl cdecl | ||
#endif | ||
|
||
#ifndef __OLDCONIO__ | ||
|
||
struct text_info { | ||
unsigned char winleft; | ||
unsigned char wintop; | ||
unsigned char winright; | ||
unsigned char winbottom; | ||
unsigned char attribute; | ||
unsigned char normattr; | ||
unsigned char currmode; | ||
unsigned char screenheight; | ||
unsigned char screenwidth; | ||
unsigned char curx; | ||
unsigned char cury; | ||
}; | ||
|
||
enum text_modes { LASTMODE=-1, BW40=0, C40, BW80, C80, MONO=7 }; | ||
|
||
#if !defined(__COLORS) | ||
#define __COLORS | ||
|
||
enum COLORS { | ||
BLACK, /* dark colors */ | ||
BLUE, | ||
GREEN, | ||
CYAN, | ||
RED, | ||
MAGENTA, | ||
BROWN, | ||
LIGHTGRAY, | ||
DARKGRAY, /* light colors */ | ||
LIGHTBLUE, | ||
LIGHTGREEN, | ||
LIGHTCYAN, | ||
LIGHTRED, | ||
LIGHTMAGENTA, | ||
YELLOW, | ||
WHITE | ||
}; | ||
#endif | ||
|
||
#define BLINK 128 /* blink bit */ | ||
|
||
extern int _Cdecl directvideo; | ||
|
||
void _Cdecl clreol (void); | ||
void _Cdecl clrscr (void); | ||
void _Cdecl delline (void); | ||
int _Cdecl gettext (int left, int top, int right, int bottom, | ||
void *destin); | ||
void _Cdecl gettextinfo (struct text_info *r); | ||
void _Cdecl gotoxy (int x, int y); | ||
void _Cdecl highvideo (void); | ||
void _Cdecl insline (void); | ||
void _Cdecl lowvideo (void); | ||
int _Cdecl movetext (int left, int top, int right, int bottom, | ||
int destleft, int desttop); | ||
void _Cdecl normvideo (void); | ||
int _Cdecl puttext (int left, int top, int right, int bottom, | ||
void *source); | ||
void _Cdecl textattr (int newattr); | ||
void _Cdecl textbackground (int newcolor); | ||
void _Cdecl textcolor (int newcolor); | ||
void _Cdecl textmode (int newmode); | ||
int _Cdecl wherex (void); | ||
int _Cdecl wherey (void); | ||
void _Cdecl window (int left, int top, int right, int bottom); | ||
#endif | ||
|
||
char *_Cdecl cgets (char *str); | ||
int _Cdecl cprintf (const char *format, ...); | ||
int _Cdecl cputs (const char *str); | ||
int _Cdecl cscanf (const char *format, ...); | ||
int _Cdecl getch (void); | ||
int _Cdecl getche (void); | ||
char *_Cdecl getpass (const char *prompt); | ||
int _Cdecl kbhit (void); | ||
int _Cdecl putch (int c); | ||
int _Cdecl ungetch (int ch); | ||
|
||
#endif | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/* ctype.h | ||
Defines the ctype macros. | ||
Copyright (c) Borland International 1987,1988 | ||
All Rights Reserved. | ||
*/ | ||
#if __STDC__ | ||
#define _Cdecl | ||
#else | ||
#define _Cdecl cdecl | ||
#endif | ||
|
||
#define _IS_SP 1 /* is space */ | ||
#define _IS_DIG 2 /* is digit indicator */ | ||
#define _IS_UPP 4 /* is upper case */ | ||
#define _IS_LOW 8 /* is lower case */ | ||
#define _IS_HEX 16 /* [A-F or [a-f] */ | ||
#define _IS_CTL 32 /* Control */ | ||
#define _IS_PUN 64 /* punctuation */ | ||
|
||
extern char _Cdecl _ctype[]; /* Character type array */ | ||
|
||
#define isalnum(c) (_ctype[(c) + 1] & (_IS_DIG | _IS_UPP | _IS_LOW)) | ||
#define isalpha(c) (_ctype[(c) + 1] & (_IS_UPP | _IS_LOW)) | ||
#define isascii(c) ((unsigned)(c) < 128) | ||
#define iscntrl(c) (_ctype[(c) + 1] & _IS_CTL) | ||
#define isdigit(c) (_ctype[(c) + 1] & _IS_DIG) | ||
#define isgraph(c) ((c) >= 0x21 && (c) <= 0x7e) | ||
#define islower(c) (_ctype[(c) + 1] & _IS_LOW) | ||
#define isprint(c) ((c) >= 0x20 && (c) <= 0x7e) | ||
#define ispunct(c) (_ctype[(c) + 1] & _IS_PUN) | ||
#define isspace(c) (_ctype[(c) + 1] & _IS_SP) | ||
#define isupper(c) (_ctype[(c) + 1] & _IS_UPP) | ||
#define isxdigit(c) (_ctype[(c) + 1] & (_IS_DIG | _IS_HEX)) | ||
|
||
#define _toupper(c) ((c) + 'A' - 'a') | ||
#define _tolower(c) ((c) + 'a' - 'A') | ||
#define toascii(c) ((c) & 0x7f) | ||
|
||
int _Cdecl tolower(int ch); | ||
int _Cdecl toupper(int ch); | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
/* dir.h | ||
Defines structures, macros, and functions for dealing with | ||
directories and pathnames. | ||
Copyright (c) Borland International 1987,1988 | ||
All Rights Reserved. | ||
*/ | ||
#if __STDC__ | ||
#define _Cdecl | ||
#else | ||
#define _Cdecl cdecl | ||
#endif | ||
|
||
#if !defined(__DIR_DEF_) | ||
#define __DIR_DEF_ | ||
|
||
struct ffblk { | ||
char ff_reserved[21]; | ||
char ff_attrib; | ||
unsigned ff_ftime; | ||
unsigned ff_fdate; | ||
long ff_fsize; | ||
char ff_name[13]; | ||
}; | ||
|
||
#define WILDCARDS 0x01 | ||
#define EXTENSION 0x02 | ||
#define FILENAME 0x04 | ||
#define DIRECTORY 0x08 | ||
#define DRIVE 0x10 | ||
|
||
#define MAXPATH 80 | ||
#define MAXDRIVE 3 | ||
#define MAXDIR 66 | ||
#define MAXFILE 9 | ||
#define MAXEXT 5 | ||
|
||
int _Cdecl chdir (const char *path); | ||
int _Cdecl findfirst (const char *path, struct ffblk *ffblk, | ||
int attrib); | ||
int _Cdecl findnext (struct ffblk *ffblk); | ||
void _Cdecl fnmerge (char *path,const char *drive,const char *dir, | ||
const char *name, const char *ext); | ||
int _Cdecl fnsplit (const char *path, char *drive, char *dir, | ||
char *name, char *ext); | ||
int _Cdecl getcurdir (int drive, char *directory); | ||
char *_Cdecl getcwd (char *buf, int buflen); | ||
int _Cdecl getdisk (void); | ||
int _Cdecl mkdir (const char *path); | ||
char *_Cdecl mktemp (char *template); | ||
int _Cdecl rmdir (const char *path); | ||
char *_Cdecl searchpath (const char *file); | ||
int _Cdecl setdisk (int drive); | ||
|
||
#endif | ||
Oops, something went wrong.