home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / bit / listserv / ibmmain / 2579 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  1.3 KB

  1. Path: sparky!uunet!stanford.edu!bu.edu!olivea!sgigate!sgiblab!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!nigel.msen.com!emory!europa.asd.contel.com!paladin.american.edu!auvm!UCLAMVS.BITNET!CSYSMAS
  2. From: CSYSMAS@UCLAMVS.BITNET (Michael Stein)
  3. Newsgroups: bit.listserv.ibm-main
  4. Subject: Pascal record formats? (pgm wanted)
  5. Message-ID: <IBM-MAIN%92110519001481@RICEVM1.RICE.EDU>
  6. Date: 6 Nov 92 00:58:00 GMT
  7. Sender: IBM Mainframe Discussion list <IBM-MAIN@RICEVM1.BITNET>
  8. Lines: 23
  9. Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
  10.  
  11. Anyone have anything like this?  Or any suggestions?
  12.  
  13. I need to determine the storage layout of some pascal records
  14. (structures).  For each field I need:
  15.  
  16.  - offset to the start of the field
  17.  - the length of the field
  18.  - the base type of this field
  19.  - the name of the field
  20.  
  21. If the field is a record then I need the sub-fields listed too
  22. (as well as sub-sub fields etc).
  23.  
  24. I picture a program which reads the pascal source and prints
  25. the above information for each record encountered.
  26.  
  27. I probably need source to such a program if it isn't designed for
  28. IBM's VS/Pascal.  I assuming that it will take a small amount of
  29. altering to match my system as far as extentions and/or storage
  30. layout for basic types.
  31.  
  32. I'd prefer this in C, but pascal is ok (or PL/1? or assembler?
  33. or ...)
  34.