home *** CD-ROM | disk | FTP | other *** search
/ PC Musician 2000 / PC_Musician_2000.iso / PCMUSIC / NOTATION / SCOREIO / SCLIB.H < prev    next >
Encoding:
C/C++ Source or Header  |  1996-03-26  |  1.8 KB  |  58 lines

  1. /*---------------------- SCLIB.H Defs und Prototypes for SCLIB.LIB -----------*/
  2.  
  3. #define OK                       0
  4. #define FILE_ERR                -1
  5. #define SWAP_FAIL               -1
  6. #define FORMAT_ERR              -2
  7. #define MEMORY_ERR              -3
  8. #define CONSIST_ERR             -4
  9. #define END                     -5
  10. #define SYNTAX_ERR              -6
  11. #define MAX_CD                  19
  12. #define FLOAT_EPS                0.1F
  13.  
  14. #define TIME                    18
  15. #define MIDI                    17
  16. #define DTIME                   17
  17. #define TIE_FLAG                16
  18.  
  19. #define FNAME_LEN               20
  20.  
  21.  
  22. /*---------------------- Structures ------------------------------------------*/
  23. struct score_item {
  24.         Float              cd[MAX_CD];
  25.         Char              *text;
  26.         struct score_item *tied;
  27.         struct score_item *next;
  28.         struct score_item *prev;
  29. };
  30. typedef struct score_item item;
  31. typedef item             *item_ptr;
  32.  
  33. struct score_list_head {
  34.         Int      items;
  35.         Int      parameters;
  36.         Int      trail_len;
  37.         Float    cd[8];        /* 8 ist willkürlich gewählt */
  38.         item_ptr first;
  39.         item_ptr last;
  40. };
  41. typedef struct score_list_head list_head;
  42. typedef list_head             *list_ptr;
  43.  
  44. typedef char                  *string;
  45.  
  46.  
  47. /*---------------------- Function Prototypes ---------------------------------*/
  48.  
  49. Int     get_fnames   (Char fname[][FNAME_LEN], Int count, Int name_max);
  50. Int     exists       (Char *filename);
  51. Int     get_parms    (Char *fname, list_ptr sl);
  52. Int     put_parms    (Char *fname, list_ptr sl);
  53. Int     set_info     (list_ptr sl);
  54. void    set_free     (list_ptr sl);
  55.  
  56. Int     sort_items_x (list_ptr kopf);
  57. Int     sort_items_xy(list_ptr kopf);
  58.