24#ifndef AMIGA_OS3SUPPORT_H_
25#define AMIGA_OS3SUPPORT_H_
32#include <proto/exec.h>
36#include <clib/alib_protos.h>
39#include <exec/memory.h>
48#define REG(reg,arg) arg __asm(#reg)
51#define MIN(a,b) (((a)<(b))?(a):(b))
54#define IsMinListEmpty(L) (L)->mlh_Head->mln_Succ == 0
55#define LIB_IS_AT_LEAST(B,V,R) ((B)->lib_Version>(V)) || \
56 ((B)->lib_Version==(V) && (B)->lib_Revision>=(R))
57#define EAD_IS_FILE(E) ((E)->ed_Type<0)
60#define MEMF_PRIVATE MEMF_ANY
61#define MEMF_SHARED MEMF_ANY
64#define ASO_NoTrack TAG_IGNORE
65#define BITMAP_DisabledSourceFile TAG_IGNORE
66#define BITMAP_HasAlpha TAG_IGNORE
67#define BLITA_UseSrcAlpha TAG_IGNORE
68#define BLITA_MaskPlane TAG_IGNORE
69#define CLICKTAB_CloseImage TAG_IGNORE
70#define CLICKTAB_FlagImage TAG_IGNORE
71#define CLICKTAB_LabelTruncate TAG_IGNORE
72#define CLICKTAB_NodeClosed TAG_IGNORE
73#define GETFONT_OTagOnly TAG_IGNORE
74#define GETFONT_ScalableOnly TAG_IGNORE
75#define PDTA_PromoteMask TAG_IGNORE
76#define RPTAG_APenColor TAG_IGNORE
77#define GA_ContextMenu TAG_IGNORE
78#define GA_HintInfo TAG_IGNORE
79#define GAUGEIA_Level TAG_IGNORE
80#define IA_InBorder TAG_IGNORE
81#define IA_Label TAG_IGNORE
82#define LBNCA_SoftStyle TAG_IGNORE
83#define LISTBROWSER_Striping TAG_IGNORE
84#define SA_Compositing TAG_IGNORE
85#define SBNA_Text TAG_IGNORE
86#define SBNA_HintInfo TAG_IGNORE
87#define TNA_CloseGadget TAG_IGNORE
88#define TNA_HintInfo TAG_IGNORE
89#define WA_ContextMenuHook TAG_IGNORE
90#define WA_ToolBox TAG_IGNORE
91#define WINDOW_BuiltInScroll TAG_IGNORE
92#define WINDOW_NewMenu TAG_IGNORE
93#define WINDOW_NewPrefsHook TAG_IGNORE
96#define RAWKEY_BACKSPACE 0x41
97#define RAWKEY_TAB 0x42
98#define RAWKEY_ESC 0x45
99#define RAWKEY_DEL 0x46
100#define RAWKEY_PAGEUP 0x48
101#define RAWKEY_PAGEDOWN 0x49
102#define RAWKEY_CRSRUP 0x4C
103#define RAWKEY_CRSRDOWN 0x4D
104#define RAWKEY_CRSRRIGHT 0x4E
105#define RAWKEY_CRSRLEFT 0x4F
106#define RAWKEY_F5 0x54
107#define RAWKEY_F8 0x57
108#define RAWKEY_F9 0x58
109#define RAWKEY_F10 0x59
110#define RAWKEY_F12 0x6F
111#define RAWKEY_HELP 0x5F
112#define RAWKEY_HOME 0x70
113#define RAWKEY_END 0x71
116#define DISABLEDTEXTPEN HIGHLIGHTTEXTPEN
117#define TITLEPEN FILLPEN
120#define BVS_DISPLAY BVS_NONE
121#define IDCMP_EXTENDEDMOUSE 0
122#define WINDOW_BACKMOST 0
124#define BGBACKFILL JAM1
127#define ML_SEPARATOR NM_BARLABEL
131#define AnchorPathOld AnchorPath
134#define GetFileEnd End
135#define GetFontEnd End
136#define GetScreenModeEnd End
139#define MINTERM_SRCMASK (ABC|ABNC|ANBC)
143#define Notify(...) (void)0
146#define SaveDTObjectA(O,W,R,F,M,I,A) DoDTMethod(O,W,R,DTM_WRITE,F,M,NULL)
149#define EReleaseInfo ReleaseInfo
150#define EObtainInfo ObtainInfo
151#define ESetInfo SetInfo
154#define ObtainCharsetInfo(A,B,C) (const char *)nsoption_charp(local_charset)
157#define AllocSysObjectTags(A,B,C,D) CreateMsgPort()
158#define FOpen(A,B,C) Open(A,B)
159#define FClose(A) Close(A)
160#define CreateDirTree(D) CreateDir(D)
161#define SetCurrentDir(L) CurrentDir(L)
162#define DevNameFromLock(A,B,C,D) NameFromLock(A,B,C)
165#define FindIName FindName
168#define ICoerceMethod CoerceMethod
169#define IDoMethod DoMethod
170#define IDoMethodA DoMethodA
171#define IDoSuperMethodA DoSuperMethodA
172#define ShowWindow(...) (void)0
176#define SNPrintf snprintf
217#define ICONCTRLA_SetImageDataFormat (ICONA_Dummy + 0x67)
218#define ICONCTRLA_GetImageDataFormat (ICONA_Dummy + 0x68)
220#define IDFMT_BITMAPPED (0)
221#define IDFMT_PALETTEMAPPED (1)
222#define IDFMT_DIRECTMAPPED (2)
246struct Node *
GetHead(
struct List *list);
247struct Node *
GetPred(
struct Node *node);
248struct Node *
GetSucc(
struct Node *node);
253ULONG
RefreshSetGadgetAttrsA(
struct Gadget *g,
struct Window *w,
struct Requester *r,
struct TagItem *tags);
254APTR
NewObject(
struct IClass * classPtr, CONST_STRPTR classID, ULONG tagList, ...);
257char *
ASPrintf(
const char *fmt, ...);
261int alphasort(
const struct dirent **d1,
const struct dirent **d2);
262int scandir(
const char *dir,
struct dirent ***namelist,
263 int (*filter)(
const struct dirent *),
264 int (*
compar)(
const struct dirent **,
const struct dirent **));
directory traversal and entry
static int compar(const void *va, const void *vb)
Quick sort comparison.
int scandir(const char *dir, struct dirent ***namelist, int(*filter)(const struct dirent *), int(*compar)(const struct dirent **, const struct dirent **))
struct Node * GetPred(struct Node *node)
void FreeSysObject(ULONG type, APTR obj)
void CloseOutlineFont(struct OutlineFont *of, struct List *list)
APTR NewObject(struct IClass *classPtr, CONST_STRPTR classID, ULONG tagList,...)
char * ASPrintf(const char *fmt,...)
int alphasort(const struct dirent **d1, const struct dirent **d2)
struct OutlineFont * OpenOutlineFont(STRPTR fileName, struct List *list, ULONG flags)
int64 GetFileSize(BPTR fh)
uint32 GetAttrs(Object *obj, Tag tag1,...)
ULONG RefreshSetGadgetAttrsA(struct Gadget *g, struct Window *w, struct Requester *r, struct TagItem *tags)
struct Node * GetHead(struct List *list)
ULONG RefreshSetGadgetAttrs(struct Gadget *g, struct Window *w, struct Requester *r, Tag tag1,...)
struct Node * GetSucc(struct Node *node)
struct GlyphEngine * GEngine
struct TagItem * olf_OTagList
struct BulletBase * BulletBase