From 1591baeb4251a930adf02c74fc250d965ba52ca8 Mon Sep 17 00:00:00 2001 From: Sjoerd van der Berg Date: Fri, 18 Oct 2002 09:19:53 +0000 Subject: [PATCH] Support for the new environment functions. Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@343 --- include/programs.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/include/programs.h b/include/programs.h index 34875b2c..8a65ad1c 100644 --- a/include/programs.h +++ b/include/programs.h @@ -23,6 +23,7 @@ #include "setup.h" + class Program; typedef void (PROGRAMS_Main)(Program * * make); @@ -36,10 +37,10 @@ public: CommandLine * cmd; DOS_PSP * psp; virtual void Run(void)=0; - char * GetEnvStr(char * env_entry); - char * GetEnvNum(Bit32u num); - Bit32u GetEnvCount(void); - bool SetEnv(char * env_entry,char * new_string); + bool Program::GetEnvStr(const char * entry,std::string & result); + bool GetEnvNum(Bitu num,std::string & result); + Bitu GetEnvCount(void); + bool SetEnv(const char * entry,const char * new_string); void WriteOut(const char * format,...); /* Write to standard output */ };