Clean up library includes

This commit is contained in:
Ilari Liusvaara 2012-11-13 22:01:12 +02:00
parent 7d7ff9fbf8
commit 184e3fe7ff
56 changed files with 124 additions and 105 deletions

View file

@ -6,7 +6,7 @@
#include <set> #include <set>
#include <map> #include <map>
#include <list> #include <list>
#include "library/threadtypes.hpp" #include "threadtypes.hpp"
class command; class command;

View file

@ -1,7 +1,7 @@
#ifndef _library__emustatus__hpp__included__ #ifndef _library__emustatus__hpp__included__
#define _library__emustatus__hpp__included__ #define _library__emustatus__hpp__included__
#include "library/threadtypes.hpp" #include "threadtypes.hpp"
#include <map> #include <map>
#include <string> #include <string>

View file

@ -5,7 +5,7 @@
#include <map> #include <map>
#include <string> #include <string>
#include <fstream> #include <fstream>
#include "library/threadtypes.hpp" #include "threadtypes.hpp"
#define CLUSTER_SIZE 8192 #define CLUSTER_SIZE 8192
#define CLUSTERS_PER_SUPER (CLUSTER_SIZE / 4) #define CLUSTERS_PER_SUPER (CLUSTER_SIZE / 4)

View file

@ -1,11 +1,11 @@
#ifndef _library__lua__hpp__included__ #ifndef _library__luabase__hpp__included__
#define _library__lua__hpp__included__ #define _library__luabase__hpp__included__
#include <string> #include <string>
#include <stdexcept> #include <stdexcept>
#include <map> #include <map>
#include <cassert> #include <cassert>
#include "library/string.hpp" #include "string.hpp"
extern "C" extern "C"
{ {
#include <lua.h> #include <lua.h>

View file

@ -1,7 +1,7 @@
#ifndef _library__memorysearch__hpp__included__ #ifndef _library__memorysearch__hpp__included__
#define _library__memorysearch__hpp__included__ #define _library__memorysearch__hpp__included__
#include "library/memoryspace.hpp" #include "memoryspace.hpp"
#include <string> #include <string>
#include <list> #include <list>
#include <vector> #include <vector>

View file

@ -6,7 +6,7 @@
#include <vector> #include <vector>
#include <cstdint> #include <cstdint>
#include <cstring> #include <cstring>
#include "library/threadtypes.hpp" #include "threadtypes.hpp"
/** /**
* Information about region of memory. * Information about region of memory.

View file

@ -4,7 +4,7 @@
#include <string> #include <string>
#include <cstdint> #include <cstdint>
#include <stdexcept> #include <stdexcept>
#include "library/controller-data.hpp" #include "controller-data.hpp"
/** /**
* Movie being played back or recorded * Movie being played back or recorded

View file

@ -1,5 +1,5 @@
#ifndef _slot__hpp__included__ #ifndef _library__patch__hpp__included__
#define _slot__hpp__included__ #define _library__patch__hpp__included__
#include <vector> #include <vector>
#include <string> #include <string>

View file

@ -1,5 +1,5 @@
#ifndef _pixfmt_lrgb__hpp__included__ #ifndef _library__pixfmt_lrgb__hpp__included__
#define _pixfmt_lrgb__hpp__included__ #define _library__pixfmt_lrgb__hpp__included__
#include "framebuffer.hpp" #include "framebuffer.hpp"

View file

@ -1,5 +1,5 @@
#ifndef _pixfmt_rgb15__hpp__included__ #ifndef _library__pixfmt_rgb15__hpp__included__
#define _pixfmt_rgb15__hpp__included__ #define _library__pixfmt_rgb15__hpp__included__
#include "framebuffer.hpp" #include "framebuffer.hpp"

View file

@ -1,5 +1,5 @@
#ifndef _pixfmt_rgb16__hpp__included__ #ifndef _library__pixfmt_rgb16__hpp__included__
#define _pixfmt_rgb16__hpp__included__ #define _library__pixfmt_rgb16__hpp__included__
#include "framebuffer.hpp" #include "framebuffer.hpp"

View file

@ -1,5 +1,5 @@
#ifndef _pixfmt_rgb24__hpp__included__ #ifndef _library__pixfmt_rgb24__hpp__included__
#define _pixfmt_rgb24__hpp__included__ #define _library__pixfmt_rgb24__hpp__included__
#include "framebuffer.hpp" #include "framebuffer.hpp"

View file

@ -1,5 +1,5 @@
#ifndef _pixfmt_rgb32__hpp__included__ #ifndef _library__pixfmt_rgb32__hpp__included__
#define _pixfmt_rgb32__hpp__included__ #define _library__pixfmt_rgb32__hpp__included__
#include "framebuffer.hpp" #include "framebuffer.hpp"

View file

@ -1,5 +1,5 @@
#ifndef _png__hpp__included__ #ifndef _library__png__hpp__included__
#define _png__hpp__included__ #define _library__png__hpp__included__
#include <stdexcept> #include <stdexcept>
#include <cstdint> #include <cstdint>

View file

@ -1,5 +1,5 @@
#ifndef _recentfiles__hpp__included__ #ifndef _library__recentfiles__hpp__included__
#define _recentfiles__hpp__included__ #define _library__recentfiles__hpp__included__
#include <string> #include <string>
#include <cstdlib> #include <cstdlib>

View file

@ -1,7 +1,7 @@
#ifndef _library__register_queue__hpp__included__ #ifndef _library__register_queue__hpp__included__
#define _library__register_queue__hpp__included__ #define _library__register_queue__hpp__included__
#include "library/threadtypes.hpp" #include "threadtypes.hpp"
#include <string> #include <string>
#include <list> #include <list>
#include <set> #include <set>

View file

@ -1,8 +1,8 @@
#ifndef _library__settings_cmd_bridge__hpp__included__ #ifndef _library__settings_cmd_bridge__hpp__included__
#define _library__settings_cmd_bridge__hpp__included__ #define _library__settings_cmd_bridge__hpp__included__
#include "library/commands.hpp" #include "commands.hpp"
#include "library/settings.hpp" #include "settings.hpp"
/** /**
* Bridge between command group and settings group. * Bridge between command group and settings group.

View file

@ -7,7 +7,7 @@
#include <iostream> #include <iostream>
#include <map> #include <map>
#include <list> #include <list>
#include "library/threadtypes.hpp" #include "threadtypes.hpp"
class setting; class setting;
class setting_group; class setting_group;

View file

@ -1,7 +1,7 @@
#ifndef _library__sha256__hpp__included__ #ifndef _library__sha256__hpp__included__
#define _library__sha256__hpp__included__ #define _library__sha256__hpp__included__
#include "library/bintohex.hpp" #include "bintohex.hpp"
#include <cstdint> #include <cstdint>
#include <cstring> #include <cstring>
#include <vector> #include <vector>

View file

@ -0,0 +1,23 @@
#ifndef _library_threadtypes__hpp__included__
#define _library_threadtypes__hpp__included__
#include <cstdint>
#ifdef NATIVE_THREADS
#include <thread>
#include <condition_variable>
#include <mutex>
typedef std::thread thread_class;
typedef std::condition_variable cv_class;
typedef std::mutex mutex_class;
typedef std::unique_lock<std::mutex> umutex_class;
#else
#include <boost/thread.hpp>
#include <boost/thread/locks.hpp>
typedef boost::thread thread_class;
typedef boost::condition_variable cv_class;
typedef boost::mutex mutex_class;
typedef boost::unique_lock<boost::mutex> umutex_class;
#endif
#endif

View file

@ -1,5 +1,5 @@
#ifndef _utf8__hpp__included__ #ifndef _library__utf8__hpp__included__
#define _utf8__hpp__included__ #define _library__utf8__hpp__included__
#include <cstdint> #include <cstdint>
#include <cstdlib> #include <cstdlib>

View file

@ -2,7 +2,7 @@
#define _library_workthread__hpp__included__ #define _library_workthread__hpp__included__
#include <cstdint> #include <cstdint>
#include "library/threadtypes.hpp" #include "threadtypes.hpp"
#define WORKFLAG_QUIT_REQUEST 0x80000000U #define WORKFLAG_QUIT_REQUEST 0x80000000U

View file

@ -1,5 +1,5 @@
#ifndef _zip__hpp__included__ #ifndef _library__zip__hpp__included__
#define _zip__hpp__included__ #define _library__zip__hpp__included__
#include <boost/iostreams/filtering_stream.hpp> #include <boost/iostreams/filtering_stream.hpp>
#include <iostream> #include <iostream>

View file

@ -5,7 +5,7 @@
#include <cstdio> #include <cstdio>
#include <cstdlib> #include <cstdlib>
#include <iostream> #include <iostream>
#include "library/lua.hpp" #include "library/luabase.hpp"
extern lua_state LS; extern lua_state LS;

View file

@ -7,7 +7,7 @@ __all__.$(OBJECT_SUFFIX): $(OBJECTS)
touch __all__.ldflags touch __all__.ldflags
%.$(OBJECT_SUFFIX): %.cpp %.$(OBJECT_SUFFIX): %.cpp
$(REALCC) $(CFLAGS) -c -o $@ $< -I../../include $(REALCC) $(CFLAGS) -c -o $@ $< -I../../include/library
precheck: precheck:
@true @true

View file

@ -1,4 +1,4 @@
#include "library/bintohex.hpp" #include "bintohex.hpp"
#include <sstream> #include <sstream>
#include <iomanip> #include <iomanip>

View file

@ -1,9 +1,9 @@
#include "library/commands.hpp" #include "commands.hpp"
#include "library/globalwrap.hpp" #include "globalwrap.hpp"
#include "library/minmax.hpp" #include "minmax.hpp"
#include "library/register-queue.hpp" #include "register-queue.hpp"
#include "library/string.hpp" #include "string.hpp"
#include "library/zip.hpp" #include "zip.hpp"
#include <iostream> #include <iostream>
#include <cstdlib> #include <cstdlib>

View file

@ -1,7 +1,7 @@
#include "library/controller-data.hpp" #include "controller-data.hpp"
#include "library/threadtypes.hpp" #include "threadtypes.hpp"
#include "library/minmax.hpp" #include "minmax.hpp"
#include "library/globalwrap.hpp" #include "globalwrap.hpp"
#include <iostream> #include <iostream>
#include <list> #include <list>

View file

@ -1,4 +1,4 @@
#include "library/emustatus.hpp" #include "emustatus.hpp"
emulator_status::emulator_status() throw(std::bad_alloc) emulator_status::emulator_status() throw(std::bad_alloc)
{ {

View file

@ -1,6 +1,6 @@
#include "library/filesys.hpp" #include "filesys.hpp"
#include "library/minmax.hpp" #include "minmax.hpp"
#include "library/serialization.hpp" #include "serialization.hpp"
#include <cstring> #include <cstring>
#include <stdexcept> #include <stdexcept>
#include <iostream> #include <iostream>

View file

@ -1,8 +1,8 @@
#include "library/framebuffer.hpp" #include "framebuffer.hpp"
#include "library/png.hpp" #include "png.hpp"
#include "library/serialization.hpp" #include "serialization.hpp"
#include "library/string.hpp" #include "string.hpp"
#include "library/utf8.hpp" #include "utf8.hpp"
#include <cstring> #include <cstring>
#include <iostream> #include <iostream>
#include <list> #include <list>

View file

@ -1,5 +1,5 @@
#include "library/joyfun.hpp" #include "joyfun.hpp"
#include "library/string.hpp" #include "string.hpp"
#include <sstream> #include <sstream>
#include <iostream> #include <iostream>

View file

@ -1,4 +1,4 @@
#include "library/loadlib.hpp" #include "loadlib.hpp"
#include <sstream> #include <sstream>
#if !defined(NO_DLFCN) && !defined(_WIN32) && !defined(_WIN64) #if !defined(NO_DLFCN) && !defined(_WIN32) && !defined(_WIN64)

View file

@ -1,5 +1,5 @@
#include "library/lua.hpp" #include "luabase.hpp"
#include "library/register-queue.hpp" #include "register-queue.hpp"
#include <iostream> #include <iostream>
#include <cassert> #include <cassert>

View file

@ -1,5 +1,5 @@
#include "library/memorysearch.hpp" #include "memorysearch.hpp"
#include "library/minmax.hpp" #include "minmax.hpp"
#include <iostream> #include <iostream>
memory_search::memory_search(memory_space& space) throw(std::bad_alloc) memory_search::memory_search(memory_space& space) throw(std::bad_alloc)

View file

@ -1,5 +1,5 @@
#include "library/memoryspace.hpp" #include "memoryspace.hpp"
#include "library/minmax.hpp" #include "minmax.hpp"
#include <algorithm> #include <algorithm>
namespace namespace

View file

@ -1,4 +1,4 @@
#include "library/messagebuffer.hpp" #include "messagebuffer.hpp"
messagebuffer::update_handler::~update_handler() throw() messagebuffer::update_handler::~update_handler() throw()
{ {

View file

@ -1,6 +1,4 @@
#include "lsnes.hpp" #include "movie.hpp"
#include "library/movie.hpp"
#include <stdexcept> #include <stdexcept>
#include <cassert> #include <cassert>

View file

@ -1,7 +1,7 @@
#include "library/minmax.hpp" #include "minmax.hpp"
#include "library/patch.hpp" #include "patch.hpp"
#include "library/serialization.hpp" #include "serialization.hpp"
#include "library/string.hpp" #include "string.hpp"
#include <cstdint> #include <cstdint>
#include <limits> #include <limits>
#include <cstring> #include <cstring>

View file

@ -1,7 +1,7 @@
#include "library/minmax.hpp" #include "minmax.hpp"
#include "library/patch.hpp" #include "patch.hpp"
#include "library/serialization.hpp" #include "serialization.hpp"
#include "library/string.hpp" #include "string.hpp"
#include <cstdint> #include <cstdint>
#include <limits> #include <limits>
#include <cstring> #include <cstring>

View file

@ -1,6 +1,6 @@
#include "library/patch.hpp" #include "patch.hpp"
#include "library/sha256.hpp" #include "sha256.hpp"
#include "library/string.hpp" #include "string.hpp"
#include <cstdint> #include <cstdint>
#include <cstring> #include <cstring>
#include <iostream> #include <iostream>

View file

@ -1,4 +1,4 @@
#include "library/pixfmt-lrgb.hpp" #include "pixfmt-lrgb.hpp"
pixel_format_lrgb::~pixel_format_lrgb() throw() pixel_format_lrgb::~pixel_format_lrgb() throw()
{ {

View file

@ -1,4 +1,4 @@
#include "library/pixfmt-rgb15.hpp" #include "pixfmt-rgb15.hpp"
template<bool uvswap> template<bool uvswap>
pixel_format_rgb15<uvswap>::~pixel_format_rgb15() throw() pixel_format_rgb15<uvswap>::~pixel_format_rgb15() throw()

View file

@ -1,4 +1,4 @@
#include "library/pixfmt-rgb16.hpp" #include "pixfmt-rgb16.hpp"
template<bool uvswap> template<bool uvswap>
pixel_format_rgb16<uvswap>::~pixel_format_rgb16() throw() pixel_format_rgb16<uvswap>::~pixel_format_rgb16() throw()

View file

@ -1,4 +1,4 @@
#include "library/pixfmt-rgb24.hpp" #include "pixfmt-rgb24.hpp"
#include <cstring> #include <cstring>
template<bool uvswap> template<bool uvswap>

View file

@ -1,4 +1,4 @@
#include "library/pixfmt-rgb32.hpp" #include "pixfmt-rgb32.hpp"
pixel_format_rgb32::~pixel_format_rgb32() throw() {} pixel_format_rgb32::~pixel_format_rgb32() throw() {}

View file

@ -1,4 +1,4 @@
#include "library/png.hpp" #include "png.hpp"
#include <fstream> #include <fstream>
#include <iostream> #include <iostream>

View file

@ -1,5 +1,5 @@
#include "library/recentfiles.hpp" #include "recentfiles.hpp"
#include "library/zip.hpp" #include "zip.hpp"
#include <fstream> #include <fstream>
recent_files::recent_files(const std::string& _cfgfile, size_t _maxcount) recent_files::recent_files(const std::string& _cfgfile, size_t _maxcount)

View file

@ -1,5 +1,5 @@
#include "library/settings-cmd-bridge.hpp" #include "settings-cmd-bridge.hpp"
#include "library/string.hpp" #include "string.hpp"
namespace namespace
{ {

View file

@ -1,7 +1,7 @@
#include "library/globalwrap.hpp" #include "globalwrap.hpp"
#include "library/register-queue.hpp" #include "register-queue.hpp"
#include "library/settings.hpp" #include "settings.hpp"
#include "library/string.hpp" #include "string.hpp"
#include <set> #include <set>
#include <map> #include <map>

View file

@ -1,4 +1,4 @@
#include "library/sha256.hpp" #include "sha256.hpp"
#include <cstdint> #include <cstdint>
#include <sstream> #include <sstream>
#include <iostream> #include <iostream>

View file

@ -1,5 +1,5 @@
#include "library/string.hpp" #include "string.hpp"
#include "library/minmax.hpp" #include "minmax.hpp"
#include <cctype> #include <cctype>
#include <boost/regex.hpp> #include <boost/regex.hpp>

View file

@ -1,4 +1,4 @@
#include "library/utf8.hpp" #include "utf8.hpp"
namespace namespace
{ {

View file

@ -1,4 +1,4 @@
#include "library/workthread.hpp" #include "workthread.hpp"
#include <stdexcept> #include <stdexcept>
#include <sys/time.h> #include <sys/time.h>

View file

@ -1,6 +1,4 @@
#include "lsnes.hpp" #include "zip.hpp"
#include "library/zip.hpp"
#include <cstdint> #include <cstdint>
#include <cstring> #include <cstring>

View file

@ -1,5 +1,5 @@
#include "library/zlibstream.hpp" #include "zlibstream.hpp"
#include "library/minmax.hpp" #include "minmax.hpp"
#include <stdexcept> #include <stdexcept>
#include <cstring> #include <cstring>
#include <cerrno> #include <cerrno>