1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-27 00:29:31 +00:00

included errno.h instead of declaring _oserrno as external

git-svn-id: svn://svn.cc65.org/cc65/trunk@940 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
mrintsch 2001-09-15 23:39:47 +00:00
parent 1a65e30fa0
commit 308785487f
5 changed files with 6 additions and 11 deletions

View File

@ -5,8 +5,7 @@
*/
#include <cbm.h>
extern unsigned char _oserror;
#include <errno.h>
/* loads file "name" from given device to given address or to the load address
* of the file if addr is 0

View File

@ -6,8 +6,7 @@
*/
#include <cbm.h>
extern unsigned char _oserror;
#include <errno.h>
/* It's like BASIC's: OPEN lfn, device, sec_addr, "name"
*/

View File

@ -5,8 +5,7 @@
*/
#include <cbm.h>
extern unsigned char _oserror;
#include <errno.h>
int cbm_read(unsigned char lfn, void* buffer, unsigned int size)
{

View File

@ -8,8 +8,7 @@
*/
#include <cbm.h>
extern unsigned char _oserror;
#include <errno.h>
/* saves a memory area from start to end-1 to a file.
*/

View File

@ -5,8 +5,7 @@
*/
#include <cbm.h>
extern unsigned char _oserror;
#include <errno.h>
int cbm_write(unsigned char lfn, void* buffer, unsigned int size) {
@ -22,7 +21,7 @@ int cbm_write(unsigned char lfn, void* buffer, unsigned int size) {
}
if (cbm_k_readst()) {
_oserror = 5; /* device not present */
_oserror = 5; /* device not present */
byteswritten = -1;
}