1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-12-24 12:30:17 +00:00

Adds missing include files, corrects bad include paths and eliminates the Clang-specific __undefined.

This commit is contained in:
Thomas Harte 2017-11-10 21:56:53 -05:00
parent 153067c018
commit fabaf4e607
7 changed files with 23 additions and 12 deletions

View File

@ -6,10 +6,10 @@
// Copyright © 2016 Thomas Harte. All rights reserved. // Copyright © 2016 Thomas Harte. All rights reserved.
// //
#include "C1540.hpp" #include "../C1540.hpp"
#include <string>
#include <cassert> #include <cassert>
#include <cstring>
#include "../../../../Storage/Disk/Encodings/CommodoreGCR.hpp" #include "../../../../Storage/Disk/Encodings/CommodoreGCR.hpp"

View File

@ -8,9 +8,11 @@
#include "IntermediateShader.hpp" #include "IntermediateShader.hpp"
#include <stdio.h> #include <cstdio>
#include <stdlib.h> #include <cstdlib>
#include <math.h> #include <cstring>
#include <cmath>
#include "../../../../SignalProcessing/FIRFilter.hpp" #include "../../../../SignalProcessing/FIRFilter.hpp"
using namespace OpenGL; using namespace OpenGL;

View File

@ -8,7 +8,8 @@
#include "Shader.hpp" #include "Shader.hpp"
#include <stdio.h> #include <cstdio>
#include <cstring>
using namespace OpenGL; using namespace OpenGL;

View File

@ -9,9 +9,10 @@
#ifndef Storage_Data_ZX8081_hpp #ifndef Storage_Data_ZX8081_hpp
#define Storage_Data_ZX8081_hpp #define Storage_Data_ZX8081_hpp
#include <cstdint>
#include <memory>
#include <string> #include <string>
#include <vector> #include <vector>
#include <cstdint>
namespace Storage { namespace Storage {
namespace Data { namespace Data {

View File

@ -8,6 +8,8 @@
#include "ImplicitSectors.hpp" #include "ImplicitSectors.hpp"
#include <cstring>
#include "../../../Encodings/MFM/Sector.hpp" #include "../../../Encodings/MFM/Sector.hpp"
#include "../../../Encodings/MFM/Encoder.hpp" #include "../../../Encodings/MFM/Encoder.hpp"
#include "../../../Encodings/MFM/Constants.hpp" #include "../../../Encodings/MFM/Constants.hpp"

View File

@ -300,12 +300,14 @@ void TZX::ignore_group_end() {
} }
void TZX::ignore_jump_to_block() { void TZX::ignore_jump_to_block() {
__unused uint16_t target = file_.get16le(); uint16_t target = file_.get16le();
(void)target;
printf("Ignoring TZX jump\n"); printf("Ignoring TZX jump\n");
} }
void TZX::ignore_loop_start() { void TZX::ignore_loop_start() {
__unused uint16_t number_of_repetitions = file_.get16le(); uint16_t number_of_repetitions = file_.get16le();
(void)number_of_repetitions;
printf("Ignoring TZX loop\n"); printf("Ignoring TZX loop\n");
} }
@ -313,7 +315,7 @@ void TZX::ignore_loop_end() {
} }
void TZX::ignore_call_sequence() { void TZX::ignore_call_sequence() {
__unused uint16_t number_of_entries = file_.get16le(); uint16_t number_of_entries = file_.get16le();
file_.seek(number_of_entries * sizeof(uint16_t), SEEK_CUR); file_.seek(number_of_entries * sizeof(uint16_t), SEEK_CUR);
printf("Ignoring TZX call sequence\n"); printf("Ignoring TZX call sequence\n");
} }
@ -323,7 +325,7 @@ void TZX::ignore_return_from_sequence() {
} }
void TZX::ignore_select_block() { void TZX::ignore_select_block() {
__unused uint16_t length_of_block = file_.get16le(); uint16_t length_of_block = file_.get16le();
file_.seek(length_of_block, SEEK_CUR); file_.seek(length_of_block, SEEK_CUR);
printf("Ignoring TZX select block\n"); printf("Ignoring TZX select block\n");
} }
@ -337,9 +339,10 @@ void TZX::ignore_text_description() {
} }
void TZX::ignore_message_block() { void TZX::ignore_message_block() {
__unused uint8_t time_for_display = file_.get8(); uint8_t time_for_display = file_.get8();
uint8_t length = file_.get8(); uint8_t length = file_.get8();
file_.seek(length, SEEK_CUR); file_.seek(length, SEEK_CUR);
(void)time_for_display;
printf("Ignoring TZX message\n"); printf("Ignoring TZX message\n");
} }

View File

@ -7,6 +7,8 @@
// //
#include "Commodore.hpp" #include "Commodore.hpp"
#include <cstring>
#include "../../Data/Commodore.hpp" #include "../../Data/Commodore.hpp"
using namespace Storage::Tape::Commodore; using namespace Storage::Tape::Commodore;