diff options
author | Vas Crabb <vas@vastheman.com> | 2017-08-27 11:07:21 +1000 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2017-08-27 11:07:21 +1000 |
commit | ec3caa98bdcab04b0cb90b3cf1c1eb740433dfd6 (patch) | |
tree | 337a198314bc8532025a9a1107430de7aafc1388 /src/lib | |
parent | d969bebe1a47abe407c3ab280227213856b257bd (diff) |
srcclean (nw)
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/formats/acorn_dsk.cpp | 4 | ||||
-rw-r--r-- | src/lib/formats/hti_tape.cpp | 8 | ||||
-rw-r--r-- | src/lib/formats/hti_tape.h | 6 | ||||
-rw-r--r-- | src/lib/formats/jvc_dsk.cpp | 2 | ||||
-rw-r--r-- | src/lib/util/png.h | 2 | ||||
-rw-r--r-- | src/lib/util/server_http.hpp | 6 | ||||
-rw-r--r-- | src/lib/util/server_ws.hpp | 4 | ||||
-rw-r--r-- | src/lib/util/server_ws_impl.hpp | 2 | ||||
-rw-r--r-- | src/lib/util/unicode.cpp | 4 |
9 files changed, 19 insertions, 19 deletions
diff --git a/src/lib/formats/acorn_dsk.cpp b/src/lib/formats/acorn_dsk.cpp index 1fd1764a1e1..486cf20be54 100644 --- a/src/lib/formats/acorn_dsk.cpp +++ b/src/lib/formats/acorn_dsk.cpp @@ -512,7 +512,7 @@ int acorn_dos_format::identify(io_generic *io, uint32_t form_factor) int type = find_size(io, form_factor); if(type != -1) - return 90; + return 90; return 0; } @@ -593,7 +593,7 @@ bool opus_ddcpm_format::load(io_generic *io, uint32_t form_factor, floppy_image spt = 10; desc_pc_sector sects[10]; uint8_t sectdata[10*512]; - + io_generic_read(io, sectdata, file_offset, spt * bps); for (int i = 0; i < spt; i++) { diff --git a/src/lib/formats/hti_tape.cpp b/src/lib/formats/hti_tape.cpp index a0dafb46277..92f28228a59 100644 --- a/src/lib/formats/hti_tape.cpp +++ b/src/lib/formats/hti_tape.cpp @@ -2,16 +2,16 @@ // copyright-holders:F. Ulivi /********************************************************************* - "HTI" format + "HTI" format *********************************************************************/ #include "hti_tape.h" #include "imageutl.h" -static constexpr uint32_t FILE_MAGIC = 0x5441434f; // Magic value at start of image file: "TACO" -static constexpr hti_format_t::tape_pos_t ZERO_BIT_LEN = 619; // Length of 0 bits at slow tape speed: 1/(35200 Hz) -static constexpr hti_format_t::tape_pos_t ONE_BIT_LEN = 1083; // Length of 1 bits at slow tape speed: 1.75 times ZERO_BIT_LEN +static constexpr uint32_t FILE_MAGIC = 0x5441434f; // Magic value at start of image file: "TACO" +static constexpr hti_format_t::tape_pos_t ZERO_BIT_LEN = 619; // Length of 0 bits at slow tape speed: 1/(35200 Hz) +static constexpr hti_format_t::tape_pos_t ONE_BIT_LEN = 1083; // Length of 1 bits at slow tape speed: 1.75 times ZERO_BIT_LEN // *** Position of tape holes *** // At beginning of tape: diff --git a/src/lib/formats/hti_tape.h b/src/lib/formats/hti_tape.h index 469866d5f5b..3366b48f697 100644 --- a/src/lib/formats/hti_tape.h +++ b/src/lib/formats/hti_tape.h @@ -2,10 +2,10 @@ // copyright-holders:F. Ulivi /********************************************************************* - "HTI" format + "HTI" format - Format of images of DC-100 tape cassettes as used in HP 9845 - and HP 85 systems. + Format of images of DC-100 tape cassettes as used in HP 9845 + and HP 85 systems. *********************************************************************/ diff --git a/src/lib/formats/jvc_dsk.cpp b/src/lib/formats/jvc_dsk.cpp index 87695e54cdd..3c230eed3cd 100644 --- a/src/lib/formats/jvc_dsk.cpp +++ b/src/lib/formats/jvc_dsk.cpp @@ -69,7 +69,7 @@ bool jvc_format::parse_header(io_generic *io, int &header_size, int &tracks, int // no break case 1: sectors = header[0]; // no break - case 0: tracks = (size - header_size) / sector_size / sectors / heads; + case 0: tracks = (size - header_size) / sector_size / sectors / heads; break; } diff --git a/src/lib/util/png.h b/src/lib/util/png.h index 9721df4ca94..d4805876215 100644 --- a/src/lib/util/png.h +++ b/src/lib/util/png.h @@ -66,7 +66,7 @@ public: void free_data(); void reset() { free_data(); operator=(png_info()); } - std::unique_ptr<std::uint8_t []> image; + std::unique_ptr<std::uint8_t []> image; std::uint32_t width, height; std::uint32_t xres = 0, yres = 0; rectangle screen; diff --git a/src/lib/util/server_http.hpp b/src/lib/util/server_http.hpp index 13c6aec45bf..5218a5da734 100644 --- a/src/lib/util/server_http.hpp +++ b/src/lib/util/server_http.hpp @@ -49,10 +49,10 @@ namespace webpp { std::string remote_endpoint_address; unsigned short remote_endpoint_port; - + virtual ~Request() {} }; - + struct Response { virtual Response& status(int number) = 0; virtual void type(std::string str) = 0; @@ -61,7 +61,7 @@ namespace webpp { virtual ~Response() {} }; - + class http_server; } #endif /* MAME_LIB_UTIL_SERVER_HTTP_HPP */ diff --git a/src/lib/util/server_ws.hpp b/src/lib/util/server_ws.hpp index 563bd473b6d..18546d7ed23 100644 --- a/src/lib/util/server_ws.hpp +++ b/src/lib/util/server_ws.hpp @@ -39,11 +39,11 @@ namespace webpp { std::string remote_endpoint_address; unsigned short remote_endpoint_port; - + Connection(unsigned short remote_endpoint_port) : remote_endpoint_port(remote_endpoint_port) {} virtual ~Connection() {} }; - + class ws_server; } #endif /* MAME_LIB_UTIL_SERVER_WS_HPP */ diff --git a/src/lib/util/server_ws_impl.hpp b/src/lib/util/server_ws_impl.hpp index 90f1a4a1385..35f0043ed10 100644 --- a/src/lib/util/server_ws_impl.hpp +++ b/src/lib/util/server_ws_impl.hpp @@ -254,7 +254,7 @@ namespace webpp { unsigned char fin_rsv_opcode=129) const { std::shared_ptr<Connection> connection = std::dynamic_pointer_cast<Connection> (conn); if (!connection) return; - + if(fin_rsv_opcode!=136) timer_idle_reset(connection); diff --git a/src/lib/util/unicode.cpp b/src/lib/util/unicode.cpp index ed0f336d275..bd0414a4612 100644 --- a/src/lib/util/unicode.cpp +++ b/src/lib/util/unicode.cpp @@ -470,7 +470,7 @@ std::string normalize_unicode(const char *s, size_t length, unicode_normalizatio //------------------------------------------------- // uchar_toupper - uses utf8proc to convert to -// upper case +// upper case //------------------------------------------------- char32_t uchar_toupper(char32_t ch) @@ -481,7 +481,7 @@ char32_t uchar_toupper(char32_t ch) //------------------------------------------------- // uchar_tolower - uses utf8proc to convert to -// lower case +// lower case //------------------------------------------------- char32_t uchar_tolower(char32_t ch) |