SidTune.h   SidTune.h 
skipping to change at line 27 skipping to change at line 27
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1, USA.
*/ */
#ifndef SIDTUNE_H #ifndef SIDTUNE_H
#define SIDTUNE_H #define SIDTUNE_H
#include <stdint.h> #include <stdint.h>
#include <fstream>
#include <memory> #include <memory>
#include "sidplayfp/siddefs.h" #include "sidplayfp/siddefs.h"
class SidTuneInfo; class SidTuneInfo;
class SidTuneInfoImpl;
class SidTuneBase; class SidTuneBase;
class sidmemory; class sidmemory;
/** /**
* SidTune * SidTune
*/ */
class SID_EXTERN SidTune class SID_EXTERN SidTune
{ {
public: public:
static const int MD5_LENGTH = 32; static const int MD5_LENGTH = 32;
 End of changes. 2 change blocks. 
2 lines changed or deleted 0 lines changed or added


 sidbuilder.h   sidbuilder.h 
skipping to change at line 39 skipping to change at line 39
#include "sidplayfp/SidConfig.h" #include "sidplayfp/SidConfig.h"
class sidemu; class sidemu;
class EventContext; class EventContext;
/** /**
* Base class for sid builders. * Base class for sid builders.
*/ */
class sidbuilder class sidbuilder
{ {
protected:
typedef std::set<sidemu*> emuset_t;
private: private:
const char * const m_name; const char * const m_name;
protected: protected:
std::string m_errorBuffer; std::string m_errorBuffer;
std::set<sidemu *> sidobjs; emuset_t sidobjs;
bool m_status; bool m_status;
protected: protected:
/** /**
* Utility class for setting emu parameters in builders. * Utility class for setting emu parameters in builders.
*/ */
template<class Temu, typename Tparam> template<class Temu, typename Tparam>
class applyParameter class applyParameter
{ {
 End of changes. 2 change blocks. 
1 lines changed or deleted 4 lines changed or added


 sidplayfp.h   sidplayfp.h 
skipping to change at line 36 skipping to change at line 36
#include <stdint.h> #include <stdint.h>
#include <stdio.h> #include <stdio.h>
#include "sidplayfp/siddefs.h" #include "sidplayfp/siddefs.h"
#include "sidplayfp/sidversion.h" #include "sidplayfp/sidversion.h"
class SidConfig; class SidConfig;
class SidTune; class SidTune;
class SidInfo; class SidInfo;
class EventContext; class EventContext;
class SidTuneInfo;
// Private Sidplayer // Private Sidplayer
namespace SIDPLAYFP_NAMESPACE namespace SIDPLAYFP_NAMESPACE
{ {
class Player; class Player;
} }
/** /**
* sidplayfp * sidplayfp
*/ */
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added


 sidversion.h   sidversion.h 
#ifndef LIBSIDPLAYFP_VERSION_H #ifndef LIBSIDPLAYFP_VERSION_H
#define LIBSIDPLAYFP_VERSION_H #define LIBSIDPLAYFP_VERSION_H
#ifndef SIDPLAYFP_H #ifndef SIDPLAYFP_H
# error Do not include directly. # error Do not include directly.
#endif #endif
#define LIBSIDPLAYFP_VERSION_MAJ 1 #define LIBSIDPLAYFP_VERSION_MAJ 1
#define LIBSIDPLAYFP_VERSION_MIN 1 #define LIBSIDPLAYFP_VERSION_MIN 2
#define LIBSIDPLAYFP_VERSION_LEV 0 #define LIBSIDPLAYFP_VERSION_LEV 0
#endif #endif
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added


 stil.h   stil.h 
skipping to change at line 28 skipping to change at line 28
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-130 1, USA.
*/ */
#ifndef STIL_H #ifndef STIL_H
#define STIL_H #define STIL_H
#include <string> #include <string>
#include <algorithm> #include <algorithm>
#include <map> #include <map>
#include <iosfwd>
#include "stildefs.h" #include "stildefs.h"
/** /**
* STIL class * STIL class
* *
* @author LaLa <LaLa@C64.org> * @author LaLa <LaLa@C64.org>
* @copyright 1998, 2002 by LaLa * @copyright 1998, 2002 by LaLa
* *
* *
skipping to change at line 310 skipping to change at line 311
/// Error number of the last error that happened. /// Error number of the last error that happened.
STILerror lastError; STILerror lastError;
/// Error strings containing the description of the possible errors in STIL. /// Error strings containing the description of the possible errors in STIL.
static const char *STIL_ERROR_STR[]; static const char *STIL_ERROR_STR[];
//////////////// ////////////////
/// The last retrieved entry /// The last retrieved entry
char entrybuf[STIL_MAX_ENTRY_SIZE]; std::string entrybuf;
/// The last retrieved section-global comment /// The last retrieved section-global comment
char globalbuf[STIL_MAX_ENTRY_SIZE]; std::string globalbuf;
/// The last retrieved BUGentry /// The last retrieved BUGentry
char bugbuf[STIL_MAX_ENTRY_SIZE]; std::string bugbuf;
/// Buffers to hold the resulting strings /// Buffers to hold the resulting strings
char resultEntry[STIL_MAX_ENTRY_SIZE]; std::string resultEntry;
char resultBug[STIL_MAX_ENTRY_SIZE]; std::string resultBug;
//////////////// ////////////////
void setVersionString(); void setVersionString();
/** /**
* Determines what the EOL char is (or are) from STIL.txt. * Determines what the EOL char is (or are) from STIL.txt.
* It is assumed that BUGlist.txt will use the same EOL. * It is assumed that BUGlist.txt will use the same EOL.
* *
* @return * @return
skipping to change at line 373 skipping to change at line 374
bool positionToEntry(const char *entryStr, std::ifstream &inFile, dirLi st &dirs); bool positionToEntry(const char *entryStr, std::ifstream &inFile, dirLi st &dirs);
/** /**
* Reads the entry from 'inFile' into 'buffer'. 'inFile' should * Reads the entry from 'inFile' into 'buffer'. 'inFile' should
* already be positioned to the entry to be read. * already be positioned to the entry to be read.
* *
* @param inFile - filehandle of file to read from * @param inFile - filehandle of file to read from
* @param entryStr - the entry needed to be read * @param entryStr - the entry needed to be read
* @param buffer - where to put the result to * @param buffer - where to put the result to
*/ */
void readEntry(std::ifstream &inFile, char *buffer); void readEntry(std::ifstream &inFile, std::string &buffer);
/** /**
* Given a STIL formatted entry in 'buffer', a tune number, * Given a STIL formatted entry in 'buffer', a tune number,
* and a field designation, it returns the requested * and a field designation, it returns the requested
* STIL field into 'result'. * STIL field into 'result'.
* If field=all, it also puts the file-global comment (if it exists) * If field=all, it also puts the file-global comment (if it exists)
* as the first field into 'result'. * as the first field into 'result'.
* *
* @param result - where to put the resulting string to (if any) * @param result - where to put the resulting string to (if any)
* @param buffer - pointer to the first char of what to search for * @param buffer - pointer to the first char of what to search for
* the field. Should be a buffer in standard STIL * the field. Should be a buffer in standard STIL
* format. * format.
* @param tuneNo - song number within the song (default=0) * @param tuneNo - song number within the song (default=0)
* @param field - which field to retrieve (default=all). * @param field - which field to retrieve (default=all).
* @return * @return
* - false - if nothing was put into 'result' * - false - if nothing was put into 'result'
* - true - 'result' has the resulting field * - true - 'result' has the resulting field
*/ */
bool getField(char *result, char *buffer, int tuneNo = 0, STILField fie ld = all); bool getField(std::string &result, const char *buffer, int tuneNo = 0, STILField field = all);
/** /**
* @param result - where to put the resulting string to (if any) * @param result - where to put the resulting string to (if any)
* @param start - pointer to the first char of what to search for * @param start - pointer to the first char of what to search for
* the field. Should be a buffer in standard STIL * the field. Should be a buffer in standard STIL
* format. * format.
* @param end - pointer to the last+1 char of what to search for * @param end - pointer to the last+1 char of what to search for
* the field. ('end-1' should be a '\n'!) * the field. ('end-1' should be a '\n'!)
* @param field - which specific field to retrieve * @param field - which specific field to retrieve
* @return * @return
* - false - if nothing was put into 'result' * - false - if nothing was put into 'result'
* - true - 'result' has the resulting field * - true - 'result' has the resulting field
*/ */
bool getOneField(char *result, char *start, char *end, STILField field) ; bool getOneField(std::string &result, const char *start, const char *en d, STILField field);
/** /**
* Extracts one line from 'infile' to 'line[]'. The end of * Extracts one line from 'infile' to 'line[]'. The end of
* the line is marked by endOfLineChar. Also eats up * the line is marked by endOfLineChar. Also eats up
* additional EOL-like chars. * additional EOL-like chars.
* *
* @param infile - filehandle (streampos should already be positioned * @param infile - filehandle (streampos should already be positioned
* to the start of the desired line) * to the start of the desired line)
* @param line - char array to put the line into * @param line - char array to put the line into
*/ */
void getStilLine(std::ifstream &infile, char *line); void getStilLine(std::ifstream &infile, std::string &line);
private: private:
/** /**
* Converts slashes to the one the OS uses to access files. * Converts slashes to the one the OS uses to access files.
* *
* @param * @param
* str - what to convert * str - what to convert
*/ */
static void convertSlashes(std::string &str) { std::replace(str.begin() , str.end(), '/', SLASH); } static void convertSlashes(std::string &str) { std::replace(str.begin() , str.end(), '/', SLASH); }
 End of changes. 9 change blocks. 
9 lines changed or deleted 10 lines changed or added


 stildefs.h   stildefs.h 
skipping to change at line 85 skipping to change at line 85
#ifdef UNIX #ifdef UNIX
# define SLASH '/' # define SLASH '/'
#elif MAC #elif MAC
# define SLASH ':' # define SLASH ':'
#elif AMIGA #elif AMIGA
# define SLASH '/' # define SLASH '/'
#else // WinDoze #else // WinDoze
# define SLASH '\\' # define SLASH '\\'
#endif #endif
// Maximum size of a single line in STIL - also accounts for some extra // Unused, will be removed in future version
// padding, just in case.
#define STIL_MAX_LINE_SIZE 91 #define STIL_MAX_LINE_SIZE 91
// Maximum size of a single STIL entry (in bytes). // Unused, will be removed in future version
#define STIL_MAX_ENTRY_SIZE STIL_MAX_LINE_SIZE*100 #define STIL_MAX_ENTRY_SIZE STIL_MAX_LINE_SIZE*100
// HVSC path to STIL. // HVSC path to STIL.
const char DEFAULT_PATH_TO_STIL[]="/DOCUMENTS/STIL.txt"; const char DEFAULT_PATH_TO_STIL[]="/DOCUMENTS/STIL.txt";
// HVSC path to BUGlist. // HVSC path to BUGlist.
const char DEFAULT_PATH_TO_BUGLIST[]="/DOCUMENTS/BUGlist.txt"; const char DEFAULT_PATH_TO_BUGLIST[]="/DOCUMENTS/BUGlist.txt";
#endif // STILDEFS_H #endif // STILDEFS_H
 End of changes. 2 change blocks. 
3 lines changed or deleted 2 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/