Changed multi-line C comments into another style.
The left side doesn't look unbalanced.
This commit is contained in:
@@ -1,20 +1,21 @@
|
||||
/*
|
||||
* Marc 'BlackJack' Rintsch, 06.03.2001
|
||||
*
|
||||
* unsigned int cbm_load(const char* name,
|
||||
* unsigned char device,
|
||||
* const unsigned char* data);
|
||||
*/
|
||||
** Marc 'BlackJack' Rintsch, 06.03.2001
|
||||
**
|
||||
** unsigned int cbm_load(const char* name,
|
||||
** unsigned char device,
|
||||
** const unsigned char* data);
|
||||
*/
|
||||
|
||||
#include <cbm.h>
|
||||
|
||||
/* loads file "name" from given device to given address or to the load address
|
||||
* of the file if "data" is 0
|
||||
*/
|
||||
** of the file if "data" is 0
|
||||
*/
|
||||
unsigned int cbm_load(const char* name, unsigned char device, void* data)
|
||||
{
|
||||
/* LFN is set to 0 but it's not needed for loading.
|
||||
* (BASIC V2 sets it to the value of the SA for LOAD) */
|
||||
/* LFN is set to 0; but, it's not needed for loading
|
||||
** (BASIC V2 sets it to the value of the SA for LOAD).
|
||||
*/
|
||||
cbm_k_setlfs(0, device, data == 0);
|
||||
cbm_k_setnam(name);
|
||||
return (cbm_k_load(0, (unsigned int)data) - (unsigned int)data);
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
; unsigned char sec_addr,
|
||||
; const char* name);
|
||||
; /* Opens a file. Works just like the BASIC command.
|
||||
; * Returns 0 if opening was successful, otherwise an errorcode (see table
|
||||
; * below).
|
||||
; */
|
||||
; ** Returns 0 if opening was successful, otherwise an errorcode (see table
|
||||
; ** below).
|
||||
; */
|
||||
; {
|
||||
; cbm_k_setlfs(lfn, device, sec_addr);
|
||||
; cbm_k_setnam(name);
|
||||
|
||||
@@ -5,10 +5,10 @@
|
||||
;
|
||||
; int __fastcall__ cbm_read (unsigned char lfn, void* buffer, unsigned int size)
|
||||
; /* Reads up to "size" bytes from a file to "buffer".
|
||||
; * Returns the number of actually read bytes, 0 if there are no bytes left
|
||||
; * (EOF) or -1 in case of an error. _oserror contains an errorcode then (see
|
||||
; * table below).
|
||||
; */
|
||||
; ** Returns the number of actually read bytes, 0 if there are no bytes left
|
||||
; ** (EOF) or -1 in case of an error. _oserror contains an errorcode then (see
|
||||
; ** table below).
|
||||
; */
|
||||
; {
|
||||
; static unsigned int bytesread;
|
||||
; static unsigned char tmp;
|
||||
@@ -22,9 +22,10 @@
|
||||
; tmp = cbm_k_basin();
|
||||
;
|
||||
; /* the kernal routine BASIN sets ST to EOF if the end of file
|
||||
; * is reached the first time, then we have store tmp.
|
||||
; * every subsequent call returns EOF and READ ERROR in ST, then
|
||||
; * we have to exit the loop here immidiatly. */
|
||||
; ** is reached the first time, then we have store tmp.
|
||||
; ** every subsequent call returns EOF and READ ERROR in ST, then
|
||||
; ** we have to exit the loop here immediatly.
|
||||
; */
|
||||
; if (cbm_k_readst() & 0xBF) break;
|
||||
;
|
||||
; ((unsigned char*)buffer)[bytesread++] = tmp;
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
/*
|
||||
* Marc 'BlackJack' Rintsch, 11.03.2001
|
||||
*
|
||||
* unsigned char cbm_save(const char* name,
|
||||
* char device,
|
||||
* unsigned char* data,
|
||||
* unsigned int size);
|
||||
*/
|
||||
** Marc 'BlackJack' Rintsch, 11.03.2001
|
||||
**
|
||||
** unsigned char cbm_save(const char* name,
|
||||
** char device,
|
||||
** unsigned char* data,
|
||||
** unsigned int size);
|
||||
*/
|
||||
|
||||
#include <cbm.h>
|
||||
#include <errno.h>
|
||||
|
||||
/* saves a memory area from start to end-1 to a file.
|
||||
*/
|
||||
*/
|
||||
unsigned char __fastcall__ cbm_save (const char* name,
|
||||
unsigned char device,
|
||||
const void* data,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Internal include file, do not use directly.
|
||||
* Written by Ullrich von Bassewitz. Based on code by Groepaz.
|
||||
*/
|
||||
** Internal include file, do not use directly.
|
||||
** Written by Ullrich von Bassewitz. Based on code by Groepaz.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@@ -36,15 +36,15 @@ struct DIR {
|
||||
|
||||
unsigned char __fastcall__ _dirread (DIR* dir, void* buf, unsigned char count);
|
||||
/* Read characters from the directory into the supplied buffer. Makes sure,
|
||||
* errno is set in case of a short read. Return true if the read was
|
||||
* successful and false otherwise.
|
||||
*/
|
||||
** errno is set in case of a short read. Return true if the read was
|
||||
** successful and false otherwise.
|
||||
*/
|
||||
|
||||
unsigned char __fastcall__ _dirread1 (DIR* dir, void* buf);
|
||||
/* Read one byte from the directory into the supplied buffer. Makes sure,
|
||||
* errno is set in case of a short read. Return true if the read was
|
||||
* successful and false otherwise.
|
||||
*/
|
||||
** errno is set in case of a short read. Return true if the read was
|
||||
** successful and false otherwise.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -16,9 +16,9 @@
|
||||
;
|
||||
; unsigned char __fastcall__ _dirread1 (DIR* dir, void* buf);
|
||||
; /* Read one byte from the directory into the supplied buffer. Makes sure,
|
||||
; * errno is set in case of a short read. Return true if the read was
|
||||
; * successful and false otherwise.
|
||||
; */
|
||||
; ** errno is set in case of a short read. Return true if the read was
|
||||
; ** successful and false otherwise.
|
||||
; */
|
||||
|
||||
__dirread1:
|
||||
|
||||
@@ -31,9 +31,9 @@ __dirread1:
|
||||
;
|
||||
; unsigned char __fastcall__ _dirread (DIR* dir, void* buf, unsigned char count);
|
||||
; /* Read characters from the directory into the supplied buffer. Makes sure,
|
||||
; * errno is set in case of a short read. Return true if the read was
|
||||
; * successful and false otherwise.
|
||||
; */
|
||||
; ** errno is set in case of a short read. Return true if the read was
|
||||
; ** successful and false otherwise.
|
||||
; */
|
||||
|
||||
__dirread:
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Ullrich von Bassewitz, 2012-05-30. Based on code by Groepaz.
|
||||
*/
|
||||
** Ullrich von Bassewitz, 2012-05-30. Based on code by Groepaz.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -18,8 +18,8 @@ DIR* __fastcall__ opendir (register const char* name)
|
||||
DIR d;
|
||||
|
||||
/* Setup the actual file name that is sent to the disk. We accept "0:",
|
||||
* "1:" and "." as directory names.
|
||||
*/
|
||||
** "1:" and "." as directory names.
|
||||
*/
|
||||
d.name[0] = '$';
|
||||
if (name == 0 || name[0] == '\0' || (name[0] == '.' && name[1] == '\0')) {
|
||||
d.name[1] = '\0';
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Ullrich von Bassewitz, 2012-05-30. Based on code by Groepaz.
|
||||
*/
|
||||
** Ullrich von Bassewitz, 2012-05-30. Based on code by Groepaz.
|
||||
*/
|
||||
|
||||
|
||||
|
||||
@@ -53,9 +53,9 @@ struct dirent* __fastcall__ readdir (register DIR* dir)
|
||||
dir->off += count + 4;
|
||||
|
||||
/* End of directory is reached if the buffer contains "blocks free". It is
|
||||
* sufficient here to check for the leading 'b'. buffer will contain at
|
||||
* least one byte if we come here.
|
||||
*/
|
||||
** sufficient here to check for the leading 'b'. buffer will contain at
|
||||
** least one byte if we come here.
|
||||
*/
|
||||
if (buffer[0] == 'b') {
|
||||
goto exitpoint;
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Ullrich von Bassewitz, 2012-06-03. Based on code by Groepaz.
|
||||
*/
|
||||
** Ullrich von Bassewitz, 2012-06-03. Based on code by Groepaz.
|
||||
*/
|
||||
|
||||
#include <fcntl.h>
|
||||
#include <unistd.h>
|
||||
|
||||
Reference in New Issue
Block a user