From ddb290d5f615019c33c42b8d94e5a5254cabcf33 Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Sat, 22 Oct 2016 13:13:17 +0200 Subject: NOTICE (TYPE NAME CONSOLIDATION) Use standard uint64_t, uint32_t, uint16_t or uint8_t instead of UINT64, UINT32, UINT16 or UINT8 also use standard int64_t, int32_t, int16_t or int8_t instead of INT64, INT32, INT16 or INT8 --- src/lib/formats/coco_cas.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/lib/formats/coco_cas.cpp') diff --git a/src/lib/formats/coco_cas.cpp b/src/lib/formats/coco_cas.cpp index cf711718a34..ba5186f539d 100644 --- a/src/lib/formats/coco_cas.cpp +++ b/src/lib/formats/coco_cas.cpp @@ -61,12 +61,12 @@ static cassette_image::error coco_cas_identify(cassette_image *cassette, struct -static int get_cas_block(cassette_image *cassette, UINT64 *offset, UINT8 *block, int *block_len) +static int get_cas_block(cassette_image *cassette, uint64_t *offset, uint8_t *block, int *block_len) { - UINT8 block_length = 0; - UINT8 block_checksum = 0; - UINT64 current_offset; - UINT64 image_size; + uint8_t block_length = 0; + uint8_t block_checksum = 0; + uint64_t current_offset; + uint64_t image_size; PAIR p; int i; int state = 0; @@ -150,21 +150,21 @@ static int get_cas_block(cassette_image *cassette, UINT64 *offset, UINT8 *block, -static cassette_image::error cas_load(cassette_image *cassette, UINT8 silence) +static cassette_image::error cas_load(cassette_image *cassette, uint8_t silence) { cassette_image::error err; - UINT64 offset; - UINT64 image_size; - UINT8 block[258]; /* 255 bytes per block + 3 (type, length, checksum) */ + uint64_t offset; + uint64_t image_size; + uint8_t block[258]; /* 255 bytes per block + 3 (type, length, checksum) */ int block_length = 0; - UINT8 last_blocktype; + uint8_t last_blocktype; double time_index = 0.0; double time_displacement; - static const UINT8 magic_bytes[2] = { 0x55, 0x3C }; + static const uint8_t magic_bytes[2] = { 0x55, 0x3C }; #if 0 { - static const UINT8 dummy_bytes[] = + static const uint8_t dummy_bytes[] = { 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, 0x55, -- cgit v1.2.3-70-g09d2