From 064eaaed391835d0e0d057466f6f552e43e79bd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Neuwirth?= Date: Wed, 27 May 2009 16:43:43 +0200 Subject: add cdatset --- ue4/mycpu/cprogram.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'ue4/mycpu/cprogram.h') diff --git a/ue4/mycpu/cprogram.h b/ue4/mycpu/cprogram.h index 43193ac..d8f7d5e 100644 --- a/ue4/mycpu/cprogram.h +++ b/ue4/mycpu/cprogram.h @@ -21,7 +21,7 @@ #include "instructions.h" /* forward declare CInstruction */ -template +template, int width=0> class CInstruction; /** @@ -30,7 +30,7 @@ class CInstruction; * CProgram extends std::vector and adds a method for parsing * programfile. This adds instances of CInstruction to CProgram itself. */ -template +template, int width=0> class CProgram : public std::vector *> { @@ -122,7 +122,7 @@ class CProgram /*----------------------------------------------------------------------------*/ -template +template, int width=0> CProgram::CProgram() { m_instrset.insert(new CInstructionInc); @@ -143,7 +143,7 @@ CProgram::CProgram() /*----------------------------------------------------------------------------*/ -template +template, int width=0> CProgram::~CProgram() { /* free instruction set */ @@ -157,7 +157,7 @@ CProgram::~CProgram() /*----------------------------------------------------------------------------*/ -template +template, int width=0> void CProgram::compile(std::istream& in) { if (!in.good()) @@ -241,7 +241,7 @@ void CProgram::compile(std::istream& in) /*----------------------------------------------------------------------------*/ -template +template, int width=0> unsigned CProgram::findLabel(const std::string& label) const { std::map::const_iterator it; @@ -254,7 +254,7 @@ unsigned CProgram::findLabel(const std::string& label) const /*----------------------------------------------------------------------------*/ #if DEBUG -template +template, int width=0> void CProgram::dump(std::ostream& out) { out << "[PROGRAM DUMP]" << std::endl; -- cgit v1.2.3