home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Programming / C / BC_DICE2.DMS / in.adf / INCLUDE / clib / utility_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-10  |  1.9 KB  |  61 lines

  1. #ifndef CLIB_UTILITY_PROTOS_H
  2. #define CLIB_UTILITY_PROTOS_H
  3. /*
  4. ** $VER: utility_protos.h 36.6 (13.02.91)
  5. ** Includes Release 38.56
  6. **
  7. ** C prototypes. For use with 32 bit integers only.
  8. **
  9. ** (C) Copyright 1990-1992 Commodore-Amiga, Inc.
  10. ** All Rights Reserved
  11. */
  12. #ifndef UTILITY_TAGITEM_H
  13. #include <utility/tagitem.h>
  14. #endif
  15. #ifndef UTILITY_DATE_H
  16. #include <utility/date.h>
  17. #endif
  18. #ifndef UTILITY_HOOKS_H
  19. #include <utility/hooks.h>
  20. #endif
  21.  
  22. struct TagItem *FindTagItem( Tag tagVal, struct TagItem *tagList );
  23. ULONG GetTagData( Tag tagVal, unsigned long defaultVal,
  24.  struct TagItem *tagList );
  25. ULONG PackBoolTags( unsigned long initialFlags, struct TagItem *tagList,
  26.  struct TagItem *boolMap );
  27. struct TagItem *NextTagItem( struct TagItem **tagListPtr );
  28. void FilterTagChanges( struct TagItem *newTagList, struct TagItem *oldTagList,
  29.  long apply );
  30. void MapTags( struct TagItem *tagList, struct TagItem *mapList,
  31.  long includeMiss );
  32. struct TagItem *AllocateTagItems( unsigned long numItems );
  33. struct TagItem *CloneTagItems( struct TagItem *tagList );
  34. void FreeTagItems( struct TagItem *tagList );
  35. void RefreshTagItemClones( struct TagItem *cloneList,
  36.  struct TagItem *origList );
  37. BOOL TagInArray( Tag tagVal, Tag *tagArray );
  38. LONG FilterTagItems( struct TagItem *tagList, Tag *filterArray, long logic );
  39.  
  40.  
  41. ULONG CallHookPkt( struct Hook *hook, APTR object, APTR paramPacket );
  42.  
  43.  
  44. void Amiga2Date( unsigned long amigaTime, struct ClockData *date );
  45. ULONG Date2Amiga( struct ClockData *date );
  46. ULONG CheckDate( struct ClockData *date );
  47.  
  48.  
  49. LONG SMult32( long factor1, long factor2 );
  50. ULONG UMult32( unsigned long factor1, unsigned long factor2 );
  51.  
  52. LONG SDivMod32( long dividend, long divisor );
  53. ULONG UDivMod32( unsigned long dividend, unsigned long divisor );
  54.  
  55.  
  56. LONG Stricmp( UBYTE *string1, UBYTE *string2 );
  57. LONG Strnicmp( UBYTE *string1, UBYTE *string2, long length );
  58. UBYTE ToUpper( unsigned long character );
  59. UBYTE ToLower( unsigned long character );
  60. #endif 
  61.