]> git.sur5r.net Git - cc65/commitdiff
_dio_setup and _dio_finish are now called _dio_open and _dio_close; for
authorcpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 12 Oct 2000 20:52:23 +0000 (20:52 +0000)
committercpg <cpg@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 12 Oct 2000 20:52:23 +0000 (20:52 +0000)
the Atari target they're both dummies

git-svn-id: svn://svn.cc65.org/cc65/trunk@359 b7a2c559-68d2-44c3-8de9-860c34a00d81

include/dio.h

index 284eb0addf677766a9cc38a43ab0c7e02c9506eb..6ce4b98399fd0e83f49f7308c6be0c6a7eb40057 100644 (file)
 
 typedef unsigned char _driveid_t;
 typedef unsigned int  _sectnum_t;
+typedef unsigned int  _sectsize_t;
 
 
 #ifdef __ATARI__
-#define _dio_query_sectsize(x) ((unsigned int)128)
+
+#define _dio_query_sectsize(x) ((_sectsize_t)128)
+#define _dio_open(x)
+#define _dio_close(x)
+
 #else
-#define _dio_query_sectsize(x) ((unsigned int)256)
-#endif
 
-extern unsigned char __fastcall__ _dio_setup       (_driveid_t drive_id);
-extern unsigned char __fastcall__ _dio_finish      (_driveid_t drive_id);
+#define _dio_query_sectsize(x) ((_sectsize_t)256)
+extern unsigned char __fastcall__ _dio_open        (_driveid_t drive_id);
+extern unsigned char __fastcall__ _dio_close       (_driveid_t drive_id);
+
+#endif
 
 extern unsigned char __fastcall__ _dio_format      (_driveid_t drive_id, unsigned int format);
 extern unsigned char __fastcall__ _dio_read        (_driveid_t drive_id, _sectnum_t sect_num, void *buffer);