home *** CD-ROM | disk | FTP | other *** search
- /*---------------------- SCLIB.H Defs und Prototypes for SCLIB.LIB -----------*/
-
- #define OK 0
- #define FILE_ERR -1
- #define SWAP_FAIL -1
- #define FORMAT_ERR -2
- #define MEMORY_ERR -3
- #define CONSIST_ERR -4
- #define END -5
- #define SYNTAX_ERR -6
- #define MAX_CD 19
- #define FLOAT_EPS 0.1F
-
- #define TIME 18
- #define MIDI 17
- #define DTIME 17
- #define TIE_FLAG 16
-
- #define FNAME_LEN 20
-
-
- /*---------------------- Structures ------------------------------------------*/
- struct score_item {
- Float cd[MAX_CD];
- Char *text;
- struct score_item *tied;
- struct score_item *next;
- struct score_item *prev;
- };
- typedef struct score_item item;
- typedef item *item_ptr;
-
- struct score_list_head {
- Int items;
- Int parameters;
- Int trail_len;
- Float cd[8]; /* 8 ist willkürlich gewählt */
- item_ptr first;
- item_ptr last;
- };
- typedef struct score_list_head list_head;
- typedef list_head *list_ptr;
-
- typedef char *string;
-
-
- /*---------------------- Function Prototypes ---------------------------------*/
-
- Int get_fnames (Char fname[][FNAME_LEN], Int count, Int name_max);
- Int exists (Char *filename);
- Int get_parms (Char *fname, list_ptr sl);
- Int put_parms (Char *fname, list_ptr sl);
- Int set_info (list_ptr sl);
- void set_free (list_ptr sl);
-
- Int sort_items_x (list_ptr kopf);
- Int sort_items_xy(list_ptr kopf);
-