uncrustify.

This commit is contained in:
Kelvin Sherlock 2018-08-20 20:57:45 -04:00
parent a5e55f826c
commit 8be3dad543
4 changed files with 1705 additions and 1706 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,33 +1,33 @@
enum {
file_non,
file_regular,
file_resource,
file_directory,
file_non,
file_regular,
file_resource,
file_directory,
};
enum {
translate_none,
translate_crlf,
translate_merlin,
translate_none,
translate_crlf,
translate_merlin,
};
struct file_info {
time_t create_date;
time_t modified_date;
word16 access;
word16 storage_type;
word16 file_type;
word32 aux_type;
word32 eof;
word32 blocks;
word32 resource_eof;
word32 resource_blocks;
mode_t st_mode;
int has_fi;
byte finder_info[32];
time_t create_date;
time_t modified_date;
word16 access;
word16 storage_type;
word16 file_type;
word32 aux_type;
word32 eof;
word32 blocks;
word32 resource_eof;
word32 resource_blocks;
mode_t st_mode;
int has_fi;
byte finder_info[32];
};
@ -43,14 +43,14 @@ extern Engine_reg engine;
#define CLI() engine.psr &= ~0x04
enum {
C = 0x01,
Z = 0x02,
I = 0x04,
D = 0x08,
X = 0x10,
M = 0x20,
V = 0x40,
N = 0x80
C = 0x01,
Z = 0x02,
I = 0x04,
D = 0x08,
X = 0x10,
M = 0x20,
V = 0x40,
N = 0x80
};
extern int g_cfg_host_read_only;

View File

@ -930,7 +930,7 @@ static word32 fst_open(int class, const char *path) {
if (pcount >= 5) set_memory16_c(pb + OpenRecGS_access, access, 0);
if (pcount >= 6) set_memory16_c(pb + OpenRecGS_fileType, fi.file_type, 0);
if (pcount >= 7) set_memory32_c(pb + OpenRecGS_auxType, fi.aux_type, 0);
if (pcount >= 8) set_memory16_c(pb + OpenRecGS_storageType, fi. storage_type, 0);
if (pcount >= 8) set_memory16_c(pb + OpenRecGS_storageType, fi.storage_type, 0);
if (pcount >= 9) host_set_date_time_rec(pb + OpenRecGS_createDateTime, fi.create_date);
if (pcount >= 10) host_set_date_time_rec(pb + OpenRecGS_modDateTime, fi.modified_date);
@ -968,7 +968,7 @@ static word32 fst_open(int class, const char *path) {
return tooManyFilesOpen;
}
if (type == file_regular){
if (type == file_regular) {
if (g_cfg_host_crlf) {
if (fi.file_type == 0x04 || fi.file_type == 0xb0)

File diff suppressed because it is too large Load Diff