3 * Copyright © 2001 Novell, Inc. All Rights Reserved.
5 * You may distribute under the terms of either the GNU General Public
6 * License or the Artistic License, as specified in the README file.
12 * DESCRIPTION : Utility functions for NetWare implementation of Perl.
14 * Date : January 2001.
26 #include "win32ish.h" // For "BOOL", "TRUE" and "FALSE"
37 // Name of console command to invoke perl
38 #define PERL_COMMAND_NAME "perl"
40 // Name of console command to load an NLM
41 #define LOAD_COMMAND "load"
44 typedef struct tagCommandLineParser
54 SEMAPHORE m_qSemaphore;
62 char* m_redirBothName;
69 }COMMANDLINEPARSER, *PCOMMANDLINEPARSER;
73 char* fnSkipWhite(char* cptr);
74 char* fnNwGetEnvironmentStr(char *name, char *defaultvalue);
75 char* fnSkipToken(char *s, char *r);
76 char* fnScanToken(char* x, char *r);
77 char* fnStashString(char *s, char *r, int length);
78 void fnAppendArgument(PCOMMANDLINEPARSER pclp, char * new_arg);
79 void fnDeleteArgument(PCOMMANDLINEPARSER pclp, int index);
80 void fnCommandLineParser(PCOMMANDLINEPARSER pclp, char * commandLine, BOOL preserveQuotes);
81 void fnSystemCommand (char** argv, int argc);
82 void fnInternalPerlLaunchHandler(char* cmdLine);
83 char* fnMy_MkTemp(char* templatestr);
87 * This symbol contains the name of the starting default directory to search
90 #define NWDEFPERLROOT "sys:\\perl\\scripts"
93 * This symbol contains the name of the default temp files directory.
95 #define NWDEFPERLTEMP "sys:\\perl\\temp"
98 #endif // __NWUtil_H__