fix a few more of the patches for gcc 4.8.3
[AROS.git] / tools / adflib / adf_err.h
blobfd891bc86fc933b170009b1eca96487320f1b1e8
1 #ifndef ADF_ERR_H
2 #define ADF_ERR_H
4 /*
5 * adf_err.h
8 */
11 #define hasRC(rc,c) ((rc)&(c))
13 #define RC_OK 0
14 #define RC_ERROR -1
16 #define RC_MALLOC 1
17 #define RC_VOLFULL 2
20 #define RC_FOPEN 1<<10
21 #define RC_NULLPTR 1<<12
23 /* adfRead*Block() */
25 #define RC_BLOCKTYPE 1
26 #define RC_BLOCKSTYPE 1<<1
27 #define RC_BLOCKSUM 1<<2
28 #define RC_HEADERKEY 1<<3
29 #define RC_BLOCKREAD 1<<4
31 /* adfWrite*Block */
32 #define RC_BLOCKWRITE 1<<4
35 /* adfReadBlock() */
36 #define RC_BLOCKOUTOFRANGE 1
37 #define RC_BLOCKNATREAD 1<<1
39 /* adfWriteBlock() */
40 /* RC_BLOCKOUTOFRANGE */
41 #define RC_BLOCKNATWRITE 1<<1
42 #define RC_BLOCKREADONLY 1<<2
44 /* adfInitDumpDevice() */
45 /* RC_FOPEN */
46 /* RC_MALLOC */
48 /* adfNativeReadBlock(), adfReadDumpSector() */
50 #define RC_BLOCKSHORTREAD 1
51 #define RC_BLOCKFSEEK 1<<1
53 /* adfNativeWriteBlock(), adfWriteDumpSector() */
55 #define RC_BLOCKSHORTWRITE 1
56 /* RC_BLOCKFSEEK */
59 /*-- adfReadRDSKblock --*/
60 #define RC_BLOCKID 1<<5
62 /*-- adfWriteRDSKblock() --*/
63 /*RC_BLOCKREADONLY*/
65 #endif /* ADF_ERR_H */
67 /*############################################################################*/