To: Perl-Users@fuggles.acc.Virginia.EDU From: tchrist@convex.COM (Tom Christiansen) Subject: Re: pstruct -- a C structure formatter; AKA c2ph, a C to perl header translator Date: 28 Jul 91 23:07:45 GMT Reply-To: tchrist@convex.COM (Tom Christiansen) It occurs to me that I'd much rather have the utmp format defintion come out this way: A8 A8 A16 i than this way: c32 i Becayse I want to talk about $foo[&ut'ut_name] as one string, which happens to be 8 chars lone. And likewise, the sys/acct.h struct acct defintion on my machine works better this way: A10 x2 i7 S2 i q i2 c A5 x2 f than this way: c10 x2 i7 S2 i q i2 c6 x2 f (PS: the 'q' format is a long long, or integer*8, format.) Because the ac_comm should be one thing, and because ac_flag and ac_unused (the 'c A5') part, should be two things, not 6. I've also taught it to grok the continuation lines gcc puts in the stabs, and I broke down and added the internal fieldnames (like ut_line) hidden away in the package. I'm going to put this out on convex.com:/pub/perl/programs/c2ph [130.168.1.1] for anonymous FTP, rather than posting context diffs here. If you can't FTP, drop me a note. --tom