home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / emacs / help / 3793 < prev    next >
Encoding:
Text File  |  1992-08-20  |  983 b   |  39 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!darwin.sura.net!mlb.semi.harris.com!controls.ccd.harris.com!abz
  3. From: abz@controls.ccd.harris.com (Andrew B. Ziffer)
  4. Subject: emacs hex mappings
  5. Message-ID: <1992Aug20.180617.11222@ccd.harris.com>
  6. Originator: abz@rs2
  7. Sender: abz@controls (Andrew B. Ziffer)
  8. Organization: Harris Controls
  9. Date: Thu, 20 Aug 1992 18:06:17 GMT
  10. Lines: 27
  11.  
  12.  
  13.  
  14. Has any one ever tried to map an ascii file through C structures using a defined
  15. emacs function? 
  16.  
  17. The problem is I have large ascii files made up of one structure with 1..n
  18. entries of the structure.  I want to somehow define a routine in emacs that will
  19. map the ascii file to the structure so the end result will be something like
  20. this:
  21.  
  22. var[1].point = 1.23
  23. var[1].head = 3.45
  24. var[2].point = 5.67
  25. var[3].head = 6.79
  26. .
  27. .
  28. .
  29. .
  30. and so on
  31.  
  32. It should be able to map any structure as long as it has access to the .h.
  33.  
  34. Is this too complicated for emacs?
  35.  
  36.  
  37. Andrew
  38. abz@ccd.harris.com
  39.