home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!stanford.edu!agate!spool.mu.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!menudo.uh.edu!lobster!buster!mwk.uucp!gleason
- From: gleason@mwk.uucp
- Newsgroups: vmsnet.internals
- Subject: Locking down a structure in C
- Message-ID: <1992Nov16.112330.1199@mwk.uucp>
- Date: 16 Nov 92 11:23:30 CST
- Organization: M. W. Kellogg, Houston TX
- Lines: 37
-
-
- Here's another Open VMS Alpha AXP internals C question...
-
- I'm converting some MACRO to C, and am changing $DEFINI type
- blocks of code to structures...and some of these need locking down, eg.
-
- $DEFINI psb
-
- $DEF zzz$l_zeep .blkl 1
- $DEF zzz$l_zap .blkl 1
- $DEF zzz$l_zip .blkl 1
- $DEF zzz$k_len
-
- $DEFEND psb
-
- psbdat: .blkb zzz$k_len
- range: .long zzzdat
- .long zzzdat + zzz$k_len
-
- $lkwset_s inadr = range
-
-
- Now, I'm trying to use a structure...
-
- static struct
- {
- int l_zeep
- int l_zap
- int l_zip
- } zzz ;
-
- What would be the "best" way to "calculate" the address of the ends of
- structures to place in a range array for calling sys$lkwset?
-
- Lee K. Gleason N5ZMR
- Control-G Consultants
- gleason@mwk.uucp
-