home *** CD-ROM | disk | FTP | other *** search
/ Aminet 18 / aminetcdnumber181997.iso / Aminet / misc / emu / AROS_m68k_bin.lha / AROS / include / clib / aros_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-08  |  1.7 KB  |  67 lines

  1. #ifndef  CLIB_AROS_PROTOS_H
  2. #define  CLIB_AROS_PROTOS_H
  3.  
  4. /*
  5.     (C) 1995-97 AROS - The Amiga Replacement OS
  6.     $Id: aros_protos.h,v 1.14 1997/02/04 17:26:32 digulla Exp $
  7.  
  8.     Desc: Prototypes for aros.lib
  9.     Lang: english
  10. */
  11.  
  12. #ifndef  EXEC_TYPES_H
  13. #   include <exec/types.h>
  14. #endif
  15. #ifndef AROS_AROSBASE_H
  16. #   include <aros/arosbase.h>
  17. #endif
  18. #ifndef EXEC_EXECBASE_H
  19. #   include <exec/execbase.h>
  20. #endif
  21. #ifndef  DOS_DOS_H
  22. #   include <dos/dos.h>
  23. #endif
  24.  
  25. #ifdef DEBUG_FreeMem
  26. #   ifndef PROTO_EXEC_H
  27. #    include <proto/exec.h>
  28. #   endif
  29. #   if DEBUG_FreeMem
  30. #    undef FreeMem
  31. #    define FreeMem NastyFreeMem
  32. #   endif
  33. #endif
  34.  
  35. extern struct ExecBase * Sysbase;
  36.  
  37. /*
  38.     Prototypes
  39. */
  40. ULONG    CalcChecksum (APTR mem, ULONG size);
  41. int    kprintf      (const UBYTE * fmt, ...);
  42. void    NastyFreeMem (APTR mem, ULONG size);
  43. APTR    RemoveSList  (APTR * list, APTR node);
  44. void    hexdump      (const void * data, IPTR offset, ULONG count);
  45.  
  46. /* AROS enhancements */
  47. BOOL ReadByte     (BPTR fh, UBYTE  * dataptr);
  48. BOOL ReadWord     (BPTR fh, UWORD  * dataptr);
  49. BOOL ReadLong     (BPTR fh, ULONG  * dataptr);
  50. BOOL ReadFloat     (BPTR fh, FLOAT  * dataptr);
  51. BOOL ReadDouble  (BPTR fh, DOUBLE * dataptr);
  52. BOOL ReadString  (BPTR fh, STRPTR * dataptr);
  53. BOOL ReadStruct  (BPTR fh, APTR   * dataptr, const IPTR * desc);
  54. BOOL WriteByte     (BPTR fh, UBYTE  data);
  55. BOOL WriteWord     (BPTR fh, UWORD  data);
  56. BOOL WriteLong     (BPTR fh, ULONG  data);
  57. BOOL WriteFloat  (BPTR fh, FLOAT  data);
  58. BOOL WriteDouble (BPTR fh, DOUBLE data);
  59. BOOL WriteString (BPTR fh, STRPTR data);
  60. BOOL WriteStruct (BPTR fh, APTR   data, const IPTR * desc);
  61. void FreeStruct  (APTR s,  const IPTR * desc);
  62.  
  63.  
  64. #define kprintf     (((struct AROSBase *)(SysBase->DebugData))->kprintf)
  65.  
  66. #endif /* CLIB_AROS_PROTOS_H */
  67.