home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!wupost!uwm.edu!linac!att!ucbvax!lrw.com!leichter
- From: leichter@lrw.com (Jerry Leichter)
- Newsgroups: comp.os.vms
- Subject: RE: DCL symbols from an image
- Message-ID: <9212242217.AA28371@uu3.psi.com>
- Date: 24 Dec 92 21:17:38 GMT
- Sender: daemon@ucbvax.BERKELEY.EDU
- Distribution: world
- Organization: The Internet
- Lines: 26
-
-
- I am writing an application which must not only get symbols, but set
- DCL symbols. I am unable to use the LIB$GET_SYMBOL and
- LIB$SET_SYMBOL services because I need to be able to work with
- integers as well. Does anyone have an example (C or MACRO) that does
- this?
-
- It is *impossible* to set numeric symbols from a user-mode program, short of
- doing something like writing a command file that does the appropriate defini-
- tions and then using LIB$DO_COMMAND to invoke it on completion. The interface
- to do this simply does not exist, and you can't write it in user mode, no
- matter what language you use: The symbol tables are owned by DCL and are
- protected against user-mode modification.
-
- LIB$GET_SYMBOL will happily retrieve a numerical symbol for you, converting it
- to a decimal string first. You can't tell what the form of the original
- symbol was.
-
- I would also like to be able to determine whether the symbol
- was/is global or local on the get, and to specify global or local on
- the set.
-
- This is provided by both LIB$xxx_SYMBOL routines (table-type-indicator
- argument); details in the documentation.
- -- Jerry
-
-