home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / vmsnet / internal / 1600 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.0 KB

  1. 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
  2. From: gleason@mwk.uucp
  3. Newsgroups: vmsnet.internals
  4. Subject: Locking down a structure in C
  5. Message-ID: <1992Nov16.112330.1199@mwk.uucp>
  6. Date: 16 Nov 92 11:23:30 CST
  7. Organization: M. W. Kellogg, Houston TX
  8. Lines: 37
  9.  
  10.  
  11.   Here's another Open VMS Alpha AXP internals C question...
  12.  
  13.   I'm converting some MACRO to C, and am changing  $DEFINI type
  14. blocks of code to  structures...and some of these need locking down, eg. 
  15.  
  16.     $DEFINI    psb
  17.  
  18. $DEF    zzz$l_zeep    .blkl    1    
  19. $DEF    zzz$l_zap    .blkl    1
  20. $DEF    zzz$l_zip    .blkl    1
  21. $DEF     zzz$k_len 
  22.  
  23. $DEFEND    psb
  24.  
  25. psbdat:    .blkb    zzz$k_len
  26. range:    .long    zzzdat
  27.     .long    zzzdat + zzz$k_len
  28.  
  29.     $lkwset_s    inadr = range
  30.  
  31.  
  32.   Now, I'm trying to use a structure...
  33.  
  34.     static struct
  35.         {
  36.         int l_zeep
  37.         int l_zap
  38.         int l_zip
  39.         } zzz ;
  40.  
  41.   What would be the "best" way to "calculate" the address of the ends of
  42.   structures to place in a range array for calling sys$lkwset?
  43.  
  44. Lee K. Gleason N5ZMR
  45. Control-G Consultants
  46. gleason@mwk.uucp
  47.