home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Amiga Shareware Floppies / ma91.dms / ma91.adf / KonwersjaLib.lha / Include / libraries / konwersja.h < prev    next >
C/C++ Source or Header  |  1997-07-08  |  2KB  |  71 lines

  1. #ifndef LIBRARIES_KONWERSJA_H
  2. #define LIBRARIES_KONWERSJA_H
  3.  
  4. /*
  5.    **   $FileName: libraries/konwersja.h $
  6.    **   $Release: 2.04 $
  7.    **   $Revision: 1.0 $
  8.    **
  9.    **   konwersja.library definicje
  10.    **
  11.    **   (C) Copyright 1997 Grzegorz Królik
  12.    **   All Rights Reserved
  13.  */
  14.  
  15. #ifndef EXEC_TYPES_H
  16. #include <exec/types.h>
  17. #endif
  18.  
  19. #ifndef EXEC_LISTS_H
  20. #include <exec/lists.h>
  21. #endif
  22.  
  23. #ifndef EXEC_LIBRARIES_H
  24. #include <exec/libraries.h>
  25. #endif
  26.  
  27. #ifndef LIBRARIES_DOS_H
  28. #include <libraries/dos.h>
  29. #endif
  30.  
  31. #define KONNAME "konwersja.library"
  32. #define KONVERSION 1L
  33.  
  34. struct KonBase
  35.   {
  36.     struct Library kon_LibNode;
  37.     BPTR kon_SegList;        /* SegList biblioteki */
  38.     struct ExecBase *kon_SysBase;    /* Kopia ExecBase */
  39.     struct DosLibrary *kon_DOSBase;    /* Kopia DOSBase */
  40.     struct MinList kon_Standardy;    /* Lista ze standardami */
  41.   };
  42.  
  43. struct Standard
  44.   {
  45.     struct MinNode stan_Node;
  46.     WORD stan_Numer;        /* Numer dla tego standardu */
  47.     UBYTE stan_Flagi;        /* Flagi dla standardu */
  48.     UBYTE stan_Nazwa[9];    /* Nazwa standardu */
  49.     UBYTE stan_Kody[20];    /* Kody kolejnych znaków */
  50.   };
  51.  
  52. /* Flagi dla standardu */
  53. #define STANB_MAZL 0
  54. #define STANF_MAZL (1<<0)
  55. #define STANB_WBUD 7        /* NIE UÛYWAÊ!!! */
  56. #define STANF_WBUD (1<<7)
  57.  
  58. /* Flagi dla funkcji Konwertuj() */
  59. #define KONWB_ZMIENNL    0
  60. #define KONWF_ZMIENNL    (1<<0)
  61. #define KONWB_DODAJEOF    1
  62. #define KONWF_DODAJEOF    (1<<1)
  63.  
  64. /* Numery bîëdów */
  65. #define KONBLAD_OK            0L
  66. #define KONBLAD_KONWERSJA_PRZERWANA    -1L
  67. #define KONBLAD_STANDARD_NIE_ISTNIEJE    -2L
  68. #define KONBLAD_BRAK_PAMIECI        -3L
  69.  
  70. #endif /* LIBRARIES_KONWERSJA_H */
  71.