mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2024-11-14 21:37:52 -07:00
createtest fixes and compile fixes for linux
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3482 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
ff83f9eb71
commit
697ce7b1ab
@ -92,8 +92,6 @@ namespace
|
|||||||
#ifndef _SECURE_SCL
|
#ifndef _SECURE_SCL
|
||||||
#error Please define _SECURE_SCL=0 in the project settings
|
#error Please define _SECURE_SCL=0 in the project settings
|
||||||
#else
|
#else
|
||||||
template <bool> struct CompileTimeAssert;
|
|
||||||
template<> struct CompileTimeAssert<true> {};
|
|
||||||
CompileTimeAssert<_SECURE_SCL==0> x;
|
CompileTimeAssert<_SECURE_SCL==0> x;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,9 @@
|
|||||||
#define SLEEP(x) usleep(x*1000)
|
#define SLEEP(x) usleep(x*1000)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
template <bool> struct CompileTimeAssert;
|
||||||
|
template<> struct CompileTimeAssert<true> {};
|
||||||
|
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
|
|
||||||
#if defined __APPLE__
|
#if defined __APPLE__
|
||||||
|
@ -20,8 +20,9 @@
|
|||||||
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
#include <string>
|
#include <string>
|
||||||
|
#ifdef _WIN32
|
||||||
#include <mmsystem.h>
|
#include <mmsystem.h>
|
||||||
|
#endif
|
||||||
namespace Common
|
namespace Common
|
||||||
{
|
{
|
||||||
class Timer
|
class Timer
|
||||||
|
@ -23,7 +23,7 @@
|
|||||||
#include "../PatchEngine.h"
|
#include "../PatchEngine.h"
|
||||||
#include "../IPC_HLE/WII_IPC_HLE.h"
|
#include "../IPC_HLE/WII_IPC_HLE.h"
|
||||||
|
|
||||||
#include "WiiWAD.h"
|
#include "WiiWad.h"
|
||||||
#include "NANDContentLoader.h"
|
#include "NANDContentLoader.h"
|
||||||
#include "FileUtil.h"
|
#include "FileUtil.h"
|
||||||
#include "Boot_DOL.h"
|
#include "Boot_DOL.h"
|
||||||
|
@ -68,7 +68,7 @@ bool Compare(const std::vector<u16> &code1, const std::vector<u16> &code2)
|
|||||||
{
|
{
|
||||||
if (code1.size() != code2.size())
|
if (code1.size() != code2.size())
|
||||||
printf("Size difference! 1=%i 2=%i\n", (int)code1.size(), (int)code2.size());
|
printf("Size difference! 1=%i 2=%i\n", (int)code1.size(), (int)code2.size());
|
||||||
int count_equal = 0;
|
u32 count_equal = 0;
|
||||||
const int min_size = (int)std::min(code1.size(), code2.size());
|
const int min_size = (int)std::min(code1.size(), code2.size());
|
||||||
|
|
||||||
AssemblerSettings settings;
|
AssemblerSettings settings;
|
||||||
@ -135,7 +135,7 @@ void CodeToHeader(const std::vector<u16> &code, std::string _filename,
|
|||||||
header.append("#endif\n\n");
|
header.append("#endif\n\n");
|
||||||
|
|
||||||
header.append("\t{\n\t\t");
|
header.append("\t{\n\t\t");
|
||||||
for (int j = 0; j < code.size(); j++)
|
for (u32 j = 0; j < code.size(); j++)
|
||||||
{
|
{
|
||||||
if (j && ((j & 15) == 0))
|
if (j && ((j & 15) == 0))
|
||||||
header.append("\n\t\t");
|
header.append("\n\t\t");
|
||||||
@ -147,7 +147,7 @@ void CodeToHeader(const std::vector<u16> &code, std::string _filename,
|
|||||||
header.append("};\n");
|
header.append("};\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
void CodesToHeader(const std::vector<u16> *codes, const std::vector<std::string> filenames,
|
void CodesToHeader(const std::vector<u16> *codes, const std::vector<std::string>* filenames,
|
||||||
int numCodes, const char *name, std::string &header)
|
int numCodes, const char *name, std::string &header)
|
||||||
{
|
{
|
||||||
char buffer[1024];
|
char buffer[1024];
|
||||||
@ -164,7 +164,8 @@ void CodesToHeader(const std::vector<u16> *codes, const std::vector<std::string>
|
|||||||
for (int i = 0; i < numCodes; i++)
|
for (int i = 0; i < numCodes; i++)
|
||||||
{
|
{
|
||||||
std::string filename;
|
std::string filename;
|
||||||
SplitPath(filenames.at(i), NULL, &filename, NULL);
|
SplitPath(filenames->at(i), NULL, &filename, NULL);
|
||||||
|
// printf("files %s\n", (filenames->at(i).c_str()));
|
||||||
sprintf(buffer, "%s\t\"%s\",\n", buffer, filename.c_str());
|
sprintf(buffer, "%s\t\"%s\",\n", buffer, filename.c_str());
|
||||||
}
|
}
|
||||||
sprintf(buffer, "%s};\n\n", buffer);
|
sprintf(buffer, "%s};\n\n", buffer);
|
||||||
@ -187,7 +188,7 @@ void CodesToHeader(const std::vector<u16> *codes, const std::vector<std::string>
|
|||||||
code_copy.push_back(0);
|
code_copy.push_back(0);
|
||||||
|
|
||||||
header.append("\t{\n\t\t");
|
header.append("\t{\n\t\t");
|
||||||
for (int j = 0; j < codes[i].size(); j++)
|
for (u32 j = 0; j < codes[i].size(); j++)
|
||||||
{
|
{
|
||||||
if (j && ((j & 15) == 0))
|
if (j && ((j & 15) == 0))
|
||||||
header.append("\n\t\t");
|
header.append("\n\t\t");
|
||||||
|
@ -29,7 +29,7 @@ bool Compare(const std::vector<u16> &code1, const std::vector<u16> &code2);
|
|||||||
void GenRandomCode(int size, std::vector<u16> &code);
|
void GenRandomCode(int size, std::vector<u16> &code);
|
||||||
void CodeToHeader(const std::vector<u16> &code, std::string _filename,
|
void CodeToHeader(const std::vector<u16> &code, std::string _filename,
|
||||||
const char *name, std::string &header);
|
const char *name, std::string &header);
|
||||||
void CodesToHeader(const std::vector<u16> *codes, const std::vector<std::string> filenames,
|
void CodesToHeader(const std::vector<u16> *codes, const std::vector<std::string> *filenames,
|
||||||
int numCodes, const char *name, std::string &header);
|
int numCodes, const char *name, std::string &header);
|
||||||
|
|
||||||
// Big-endian, for writing straight to file using File::WriteStringToFile.
|
// Big-endian, for writing straight to file using File::WriteStringToFile.
|
||||||
|
@ -16,9 +16,7 @@
|
|||||||
// http://code.google.com/p/dolphin-emu/
|
// http://code.google.com/p/dolphin-emu/
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// Include
|
// Include
|
||||||
// ¯¯¯¯¯¯¯¯¯¯
|
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
|
|
||||||
#include <wx/button.h>
|
#include <wx/button.h>
|
||||||
@ -75,7 +73,7 @@ extern "C" // Bitmaps
|
|||||||
#include "../resources/toolbar_add_breakpoint.c"
|
#include "../resources/toolbar_add_breakpoint.c"
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
|
||||||
class CPluginInfo;
|
class CPluginInfo;
|
||||||
class CPluginManager;
|
class CPluginManager;
|
||||||
|
|
||||||
@ -92,7 +90,7 @@ inline wxBitmap _wxGetBitmapFromMemory(const unsigned char* data, int length)
|
|||||||
return(wxBitmap(wxImage(is, wxBITMAP_TYPE_ANY, -1), -1));
|
return(wxBitmap(wxImage(is, wxBITMAP_TYPE_ANY, -1), -1));
|
||||||
}
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
|
||||||
BEGIN_EVENT_TABLE(CCodeWindow, wxFrame)
|
BEGIN_EVENT_TABLE(CCodeWindow, wxFrame)
|
||||||
EVT_LISTBOX(ID_SYMBOLLIST, CCodeWindow::OnSymbolListChange)
|
EVT_LISTBOX(ID_SYMBOLLIST, CCodeWindow::OnSymbolListChange)
|
||||||
EVT_LISTBOX(ID_CALLSTACKLIST, CCodeWindow::OnCallstackListChange)
|
EVT_LISTBOX(ID_CALLSTACKLIST, CCodeWindow::OnCallstackListChange)
|
||||||
@ -159,7 +157,7 @@ BEGIN_EVENT_TABLE(CCodeWindow, wxFrame)
|
|||||||
END_EVENT_TABLE()
|
END_EVENT_TABLE()
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////
|
|
||||||
// Class, input event handler and host message handler
|
// Class, input event handler and host message handler
|
||||||
CCodeWindow::CCodeWindow(const SCoreStartupParameter& _LocalCoreStartupParameter, wxWindow* parent, wxWindowID id,
|
CCodeWindow::CCodeWindow(const SCoreStartupParameter& _LocalCoreStartupParameter, wxWindow* parent, wxWindowID id,
|
||||||
const wxString& title, const wxPoint& pos, const wxSize& size, long style)
|
const wxString& title, const wxPoint& pos, const wxSize& size, long style)
|
||||||
@ -277,13 +275,13 @@ void CCodeWindow::OnHostMessage(wxCommandEvent& event)
|
|||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// =======================================================================================
|
|
||||||
|
|
||||||
// Load these settings before CreateGUIControls()
|
// Load these settings before CreateGUIControls()
|
||||||
// --------------
|
|
||||||
void CCodeWindow::Load_( IniFile &ini )
|
void CCodeWindow::Load_( IniFile &ini )
|
||||||
{
|
{
|
||||||
// The font to override DebuggerFont with
|
// The font to override DebuggerFont with
|
||||||
@ -299,7 +297,7 @@ void CCodeWindow::Load_( IniFile &ini )
|
|||||||
ini.Get("ShowOnStart", "JitWindow", &bJitWindow, true);
|
ini.Get("ShowOnStart", "JitWindow", &bJitWindow, true);
|
||||||
ini.Get("ShowOnStart", "SoundWindow", &bSoundWindow, false);
|
ini.Get("ShowOnStart", "SoundWindow", &bSoundWindow, false);
|
||||||
ini.Get("ShowOnStart", "VideoWindow", &bVideoWindow, false);
|
ini.Get("ShowOnStart", "VideoWindow", &bVideoWindow, false);
|
||||||
// ===============
|
|
||||||
|
|
||||||
// Boot to pause or not
|
// Boot to pause or not
|
||||||
ini.Get("ShowOnStart", "AutomaticStart", &bAutomaticStart, false);
|
ini.Get("ShowOnStart", "AutomaticStart", &bAutomaticStart, false);
|
||||||
@ -353,7 +351,7 @@ void CCodeWindow::CreateGUIControls(const SCoreStartupParameter& _LocalCoreStart
|
|||||||
{
|
{
|
||||||
CreateMenu(_LocalCoreStartupParameter);
|
CreateMenu(_LocalCoreStartupParameter);
|
||||||
|
|
||||||
// =======================================================================================
|
|
||||||
// Configure the code window
|
// Configure the code window
|
||||||
wxBoxSizer* sizerBig = new wxBoxSizer(wxHORIZONTAL);
|
wxBoxSizer* sizerBig = new wxBoxSizer(wxHORIZONTAL);
|
||||||
wxBoxSizer* sizerLeft = new wxBoxSizer(wxVERTICAL);
|
wxBoxSizer* sizerLeft = new wxBoxSizer(wxVERTICAL);
|
||||||
@ -377,7 +375,7 @@ void CCodeWindow::CreateGUIControls(const SCoreStartupParameter& _LocalCoreStart
|
|||||||
sizerBig->Fit(this);
|
sizerBig->Fit(this);
|
||||||
|
|
||||||
sync_event.Init();
|
sync_event.Init();
|
||||||
// =================
|
|
||||||
|
|
||||||
|
|
||||||
if (bRegisterWindow)
|
if (bRegisterWindow)
|
||||||
@ -425,17 +423,17 @@ void CCodeWindow::CreateGUIControls(const SCoreStartupParameter& _LocalCoreStart
|
|||||||
} // don't have any else, just ignore it
|
} // don't have any else, just ignore it
|
||||||
}
|
}
|
||||||
|
|
||||||
// ===================================================================
|
|
||||||
// Create CPU Mode and Views menus
|
// Create CPU Mode and Views menus
|
||||||
// ---------------
|
|
||||||
void CCodeWindow::CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParameter)
|
void CCodeWindow::CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParameter)
|
||||||
{
|
{
|
||||||
// Create menu
|
// Create menu
|
||||||
pMenuBar = new wxMenuBar(wxMB_DOCKABLE);
|
pMenuBar = new wxMenuBar(wxMB_DOCKABLE);
|
||||||
|
|
||||||
// --------------------------------
|
|
||||||
// CPU Mode
|
// CPU Mode
|
||||||
// -------------
|
|
||||||
wxMenu* pCoreMenu = new wxMenu;
|
wxMenu* pCoreMenu = new wxMenu;
|
||||||
|
|
||||||
wxMenuItem* interpreter = pCoreMenu->Append(IDM_INTERPRETER, _T("&Interpreter core")
|
wxMenuItem* interpreter = pCoreMenu->Append(IDM_INTERPRETER, _T("&Interpreter core")
|
||||||
@ -493,11 +491,11 @@ void CCodeWindow::CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParam
|
|||||||
// dualcore->Check(_LocalCoreStartupParameter.bUseDualCore);
|
// dualcore->Check(_LocalCoreStartupParameter.bUseDualCore);
|
||||||
|
|
||||||
pMenuBar->Append(pCoreMenu, _T("&CPU Mode"));
|
pMenuBar->Append(pCoreMenu, _T("&CPU Mode"));
|
||||||
// -----------------
|
|
||||||
|
|
||||||
// --------------------------------
|
|
||||||
|
|
||||||
// Views
|
// Views
|
||||||
// ---------------
|
|
||||||
wxMenu* pDebugDialogs = new wxMenu;
|
wxMenu* pDebugDialogs = new wxMenu;
|
||||||
|
|
||||||
wxMenuItem* pRegister = pDebugDialogs->Append(IDM_REGISTERWINDOW, _T("&Registers"), wxEmptyString, wxITEM_CHECK);
|
wxMenuItem* pRegister = pDebugDialogs->Append(IDM_REGISTERWINDOW, _T("&Registers"), wxEmptyString, wxITEM_CHECK);
|
||||||
@ -522,7 +520,7 @@ void CCodeWindow::CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParam
|
|||||||
wxMenuItem* pFontPicker = pDebugDialogs->Append(IDM_FONTPICKER, _T("&Font..."), wxEmptyString, wxITEM_NORMAL);
|
wxMenuItem* pFontPicker = pDebugDialogs->Append(IDM_FONTPICKER, _T("&Font..."), wxEmptyString, wxITEM_NORMAL);
|
||||||
|
|
||||||
pMenuBar->Append(pDebugDialogs, _T("&Views"));
|
pMenuBar->Append(pDebugDialogs, _T("&Views"));
|
||||||
// -----------------
|
|
||||||
|
|
||||||
CreateSymbolsMenu();
|
CreateSymbolsMenu();
|
||||||
|
|
||||||
@ -530,9 +528,9 @@ void CCodeWindow::CreateMenu(const SCoreStartupParameter& _LocalCoreStartupParam
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// =======================================================================================
|
|
||||||
// Toolbar and bitmaps for the toolbar
|
// Toolbar and bitmaps for the toolbar
|
||||||
// --------------
|
|
||||||
void CCodeWindow::InitBitmaps()
|
void CCodeWindow::InitBitmaps()
|
||||||
{
|
{
|
||||||
// load original size 48x48
|
// load original size 48x48
|
||||||
@ -573,12 +571,12 @@ void CCodeWindow::PopulateToolbar(wxToolBar* toolBar)
|
|||||||
// the changes
|
// the changes
|
||||||
toolBar->Realize();
|
toolBar->Realize();
|
||||||
}
|
}
|
||||||
// ===================================
|
|
||||||
|
|
||||||
|
|
||||||
// =======================================================================================
|
|
||||||
|
|
||||||
// Shortcuts
|
// Shortcuts
|
||||||
// --------------
|
|
||||||
bool CCodeWindow::UseInterpreter()
|
bool CCodeWindow::UseInterpreter()
|
||||||
{
|
{
|
||||||
return GetMenuBar()->IsChecked(IDM_INTERPRETER);
|
return GetMenuBar()->IsChecked(IDM_INTERPRETER);
|
||||||
@ -603,12 +601,12 @@ bool CCodeWindow::JITBlockLinking()
|
|||||||
{
|
{
|
||||||
return GetMenuBar()->IsChecked(IDM_JITBLOCKLINKING);
|
return GetMenuBar()->IsChecked(IDM_JITBLOCKLINKING);
|
||||||
}
|
}
|
||||||
// =========================
|
|
||||||
|
|
||||||
|
|
||||||
// =======================================================================================
|
|
||||||
|
|
||||||
// CPU Mode and JIT Menu
|
// CPU Mode and JIT Menu
|
||||||
// --------------
|
|
||||||
void CCodeWindow::OnCPUMode(wxCommandEvent& event)
|
void CCodeWindow::OnCPUMode(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
switch (event.GetId())
|
switch (event.GetId())
|
||||||
@ -662,27 +660,26 @@ void CCodeWindow::OnJitMenu(wxCommandEvent& event)
|
|||||||
case IDM_SEARCHINSTRUCTION:
|
case IDM_SEARCHINSTRUCTION:
|
||||||
{
|
{
|
||||||
wxString str;
|
wxString str;
|
||||||
str = wxGetTextFromUser("", "Op?", wxEmptyString, this);
|
str = wxGetTextFromUser(_(""), wxT("Op?"), wxEmptyString, this);
|
||||||
for (u32 addr = 0x80000000; addr < 0x80100000; addr += 4) {
|
for (u32 addr = 0x80000000; addr < 0x80100000; addr += 4) {
|
||||||
const char *name = PPCTables::GetInstructionName(Memory::ReadUnchecked_U32(addr));
|
const char *name = PPCTables::GetInstructionName(Memory::ReadUnchecked_U32(addr));
|
||||||
if (name && !strcmp(str.c_str(), name))
|
if (name && !strcmp((const char *)str.mb_str(), name))
|
||||||
NOTICE_LOG(POWERPC, "Found %s at %08x", str.c_str(), addr);
|
NOTICE_LOG(POWERPC, "Found %s at %08x", str.c_str(), addr);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// =====================================
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////////////////////////////////
|
|
||||||
|
|
||||||
// Events
|
// Events
|
||||||
// ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
|
|
||||||
|
|
||||||
// =======================================================================================
|
|
||||||
// The Play, Stop, Step, Skip, Go to PC and Show PC buttons all go here
|
// The Play, Stop, Step, Skip, Go to PC and Show PC buttons all go here
|
||||||
// --------------
|
|
||||||
void CCodeWindow::OnCodeStep(wxCommandEvent& event)
|
void CCodeWindow::OnCodeStep(wxCommandEvent& event)
|
||||||
{
|
{
|
||||||
switch (event.GetId())
|
switch (event.GetId())
|
||||||
@ -865,13 +862,13 @@ void CCodeWindow::Update()
|
|||||||
when we pause SINCE THIS CAN BE CALLED AT OTHER TIMES TOO */
|
when we pause SINCE THIS CAN BE CALLED AT OTHER TIMES TOO */
|
||||||
// codeview->Center(PC);
|
// codeview->Center(PC);
|
||||||
}
|
}
|
||||||
/////////////////////////////////////////////////
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// =======================================================================================
|
|
||||||
|
|
||||||
// Update GUI
|
// Update GUI
|
||||||
// --------------
|
|
||||||
void CCodeWindow::UpdateButtonStates()
|
void CCodeWindow::UpdateButtonStates()
|
||||||
{
|
{
|
||||||
bool Initialized = (Core::GetState() != Core::CORE_UNINITIALIZED);
|
bool Initialized = (Core::GetState() != Core::CORE_UNINITIALIZED);
|
||||||
@ -947,12 +944,12 @@ void CCodeWindow::RecreateToolbar()
|
|||||||
PopulateToolbar(theToolBar);
|
PopulateToolbar(theToolBar);
|
||||||
SetToolBar(theToolBar);
|
SetToolBar(theToolBar);
|
||||||
}
|
}
|
||||||
// =============
|
|
||||||
|
|
||||||
|
|
||||||
// =======================================================================================
|
|
||||||
|
|
||||||
// Show Tool Tip for menu items
|
// Show Tool Tip for menu items
|
||||||
// --------------
|
|
||||||
void CCodeWindow::DoTip(wxString text)
|
void CCodeWindow::DoTip(wxString text)
|
||||||
{
|
{
|
||||||
// Create a blank tooltip to clear the eventual old one
|
// Create a blank tooltip to clear the eventual old one
|
||||||
@ -998,4 +995,4 @@ void CCodeWindow::OnStatusBar_(wxUpdateUIEvent& event)
|
|||||||
//if(event.GetId() != IDM_ADDRBOX) DoTip(wxEmptyString);
|
//if(event.GetId() != IDM_ADDRBOX) DoTip(wxEmptyString);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
// =============
|
|
||||||
|
@ -20,6 +20,7 @@ files = [
|
|||||||
'VolumeWad.cpp',
|
'VolumeWad.cpp',
|
||||||
'VolumeWiiCrypted.cpp',
|
'VolumeWiiCrypted.cpp',
|
||||||
'NANDContentLoader.cpp',
|
'NANDContentLoader.cpp',
|
||||||
|
'WiiWad.cpp',
|
||||||
'AES/aes_cbc.c',
|
'AES/aes_cbc.c',
|
||||||
'AES/aes_core.c',
|
'AES/aes_core.c',
|
||||||
]
|
]
|
||||||
|
@ -57,7 +57,10 @@ usage() if (! defined $input);
|
|||||||
my $xtest = XMLin($input);
|
my $xtest = XMLin($input);
|
||||||
my $type = $xtest->{'type'};
|
my $type = $xtest->{'type'};
|
||||||
|
|
||||||
foreach my $cmd (split(/,/, $cmds)) {
|
my @cmdList = split(/,/, $cmds);
|
||||||
|
|
||||||
|
for(my $i = 0;$i < scalar(@cmdList);$i++) {
|
||||||
|
my $cmd = $cmdList[$i];
|
||||||
my $name = parseString($xtest->{'name'}, $cmd);
|
my $name = parseString($xtest->{'name'}, $cmd);
|
||||||
$name =~ s/ /_/g;
|
$name =~ s/ /_/g;
|
||||||
my $desc = parseString($xtest->{'description'}, $cmd);
|
my $desc = parseString($xtest->{'description'}, $cmd);
|
||||||
@ -86,9 +89,6 @@ foreach my $cmd (split(/,/, $cmds)) {
|
|||||||
open(NAMES, ">$name.lst");
|
open(NAMES, ">$name.lst");
|
||||||
}
|
}
|
||||||
|
|
||||||
# print NAMES "; $name\n";
|
|
||||||
# print NAMES "; $desc\n";
|
|
||||||
|
|
||||||
my $numLines = POSIX::ceil(0xFFFF / $ucodes);
|
my $numLines = POSIX::ceil(0xFFFF / $ucodes);
|
||||||
for(my $j = 0; $j < $numLines; $j++) {
|
for(my $j = 0; $j < $numLines; $j++) {
|
||||||
open(OUTPUT, ">$name$j.tst");
|
open(OUTPUT, ">$name$j.tst");
|
||||||
@ -98,7 +98,7 @@ foreach my $cmd (split(/,/, $cmds)) {
|
|||||||
print NAMES "$name$j.tst";
|
print NAMES "$name$j.tst";
|
||||||
|
|
||||||
# Don't end with a newline
|
# Don't end with a newline
|
||||||
if ($j < $numLines - 1) {
|
if ($j < $numLines - 1 || ($merge && $i != scalar(@cmdList)-1)) {
|
||||||
print NAMES "\n";
|
print NAMES "\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -361,7 +361,7 @@ int main(int argc, const char *argv[])
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
CodesToHeader(codes, files, lines, output_header_name.c_str(), header);
|
CodesToHeader(codes, &files, lines, output_header_name.c_str(), header);
|
||||||
File::WriteStringToFile(true, header, (output_header_name + ".h").c_str());
|
File::WriteStringToFile(true, header, (output_header_name + ".h").c_str());
|
||||||
|
|
||||||
delete[] codes;
|
delete[] codes;
|
||||||
|
Loading…
Reference in New Issue
Block a user