Category : UNIX Files
Archive   : SAMPLEC.ZIP
Filename : SYMTAB.H
* header file for symbol table
*/
struct symtab {
char * s_name; /* name pointer */
int s_type; /* symbol type */
int s_blknum; /* static block depth */
union {
int s__num;
struct symtab * s__link;
}s__;
int s_offset; /* symbol definition */
struct symtab * s_next; /* next entry */
};
#define s_pnum s__.s__num /* count of parameters */
#define NOT_SET (-1)
#define s_plist s__.s__link /* chain of parameters */
/*
* s_type values
*/
#define UDEC 0 /* not declared*/
#define FUNC 1 /* function */
#define UFUNC 2 /* undefined function */
#define VAR 3 /* declared vbariable */
#define PARM 4 /* undeclared parameter *.
/*
* s_type values for s_trace
*/
#define SYMmap "undeclared", "function", "undefined function", \
"variable", "parameter"
/*
* typed functions, symbol table module
*/
struct symtab * link_parm(); /* chain parameters */
struct symtab * s_find(); /* locate symbol by name */
struct symtab * make_parm(); /* define parameter */
struct symtab * make_var(); /* define variable */
struct symtab * make_func(); /* define function */
/*
* typed library functions
*/
char * strsav(); /* dynamically save a string */
char * calloc(); /* dynamicall obtain memory */
Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!
This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.
But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/