com.tapina.robe.swi.clib.stdlib
Class GetEnv

java.lang.Object
  extended bycom.tapina.robe.runtime.Block
      extended bycom.tapina.robe.runtime.CodeBlock
          extended bycom.tapina.robe.swi.clib.Stub
              extended bycom.tapina.robe.swi.clib.stdlib.GetEnv
All Implemented Interfaces:
Executable

public class GetEnv
extends Stub

This reads the contents of an environment variable, whose name is given. In DOS it reads the DOS environment variables eg PATH, whereas in RISC OS it reads the system variable eg Obey$Dir. When reading the variables it converts numbers to strings and expands macros. You should not modify the returned string and it may be overwritten by subsequent calls to getenv. This function is equivalent to the SWI OS_ReadVarVal , with R4=3. Returns: A pointer to the variable contents.


Field Summary
 
Fields inherited from class com.tapina.robe.swi.clib.Stub
A1, A2, A3, A4, FP, IP, log, LR, PC, SL, SP, V1, V2, V3, V4, V5, V6
 
Constructor Summary
GetEnv()
           
 
Method Summary
 void executeStub(Environment environment)
           
 
Methods inherited from class com.tapina.robe.swi.clib.Stub
execute, executeSubroutine, setAddress
 
Methods inherited from class com.tapina.robe.runtime.CodeBlock
isExtendable
 
Methods inherited from class com.tapina.robe.runtime.Block
getAddress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetEnv

public GetEnv()
Method Detail

executeStub

public void executeStub(Environment environment)
Specified by:
executeStub in class Stub


Copyright © 2003-2005 . All Rights Reserved.