Add non-parsing WriteOut.
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@3184
This commit is contained in:
parent
ec45bd0fad
commit
e7d66020ea
2 changed files with 9 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: programs.h,v 1.16 2008-03-02 11:13:46 qbix79 Exp $ */
|
||||
/* $Id: programs.h,v 1.17 2008-07-26 19:06:26 qbix79 Exp $ */
|
||||
|
||||
#ifndef DOSBOX_PROGRAMS_H
|
||||
#define DOSBOX_PROGRAMS_H
|
||||
|
@ -77,6 +77,7 @@ public:
|
|||
Bitu GetEnvCount(void);
|
||||
bool SetEnv(const char * entry,const char * new_string);
|
||||
void WriteOut(const char * format,...); /* Write to standard output */
|
||||
void WriteOut_NoParsing(const char * format); /* Write to standard output, no parsing */
|
||||
void ChangeToLongCmd();
|
||||
|
||||
};
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/* $Id: programs.cpp,v 1.31 2008-03-02 11:13:46 qbix79 Exp $ */
|
||||
/* $Id: programs.cpp,v 1.32 2008-07-26 19:06:26 qbix79 Exp $ */
|
||||
|
||||
#include <vector>
|
||||
#include <ctype.h>
|
||||
|
@ -126,10 +126,15 @@ void Program::WriteOut(const char * format,...) {
|
|||
vsnprintf(buf,2047,format,msg);
|
||||
va_end(msg);
|
||||
|
||||
Bit16u size=strlen(buf);
|
||||
Bit16u size = strlen(buf);
|
||||
DOS_WriteFile(STDOUT,(Bit8u *)buf,&size);
|
||||
}
|
||||
|
||||
void Program::WriteOut_NoParsing(const char * format) {
|
||||
Bit16u size = strlen(format);
|
||||
DOS_WriteFile(STDOUT,(Bit8u *)format,&size);
|
||||
}
|
||||
|
||||
|
||||
bool Program::GetEnvStr(const char * entry,std::string & result) {
|
||||
/* Walk through the internal environment and see for a match */
|
||||
|
|
Loading…
Add table
Reference in a new issue