home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 35 Internet
/
35-Internet.zip
/
dongrovs.zip
/
RexxUtil_REQ.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1996-10-16
|
2KB
|
56 lines
/* ********************************************************************* */
/* ********************************************************************* */
/* Normally used as a REQUIRES file, but all possiblities are handled. */
/* ********************************************************************* */
parse source . a2 .
atRc= 0
SELECT
WHEN a2 == 'FUNCTION'
THEN atRc = ''
WHEN a2 == 'COMMAND'
THEN SAY 'RexxUtil.DLL has been Loaded or was already Loaded....'
OTHERWISE NOP /* SUBROUTINE and/or REQUIRES */
END
return atRc
/* ******************************************************************* */
/* ******************************************************************* */
/* Any REQUIRES files */
/* ** None are REQUIRED ** */
/* ******************************************************************* */
/* ******************************************************************* */
/* The following is the proper way to check for and load REXXUTIL!! */
/* And the following use of 'SysDropFuncs' is the only use without a */
/* direct COMMAND from the system operator. */
::routine LoadDLLs
IF RxFuncQuery('SysDropFuncs')
THEN DO;
/* Note: The double test is because some Operators Undefine the above function. */
IF RxFuncQuery('SysLoadFuncs')
THEN DO;
call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs';
call SysLoadFuncs;
END;
END;
RETURN .TRUE
::class RexxUtil_REQ
::method INIT CLASS
expose Dummy
Dummy = LoadDLLs()
::method UNINIT CLASS
expose Dummy
NOP
/* ------------------------------------------------------------------------ */
/* The UNINIT has nothing to do because it's never safe to Automacticly */
/* unload REXXUTIL.DLL. */
/* Calling "SysDropFuncs" doesn't just unload it the session that called it */
/* but ALL SESIONS. */
/* And it cannot be reloaded again until ALL REXX using sessions terminate. */
/* ------------------------------------------------------------------------ */
/* ******************************************************************* */
/* ****************** End of RexxUtil_REQ.cmd ************************ */
/* ******************************************************************* */