Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

Journal of rafael (2125)

Friday June 11, 2004
07:26 AM

glibc hell

[ #19196 ]
Recently, in the glibc headers, some inline functions appeared. For example, on my system, sys/sysmacros.h contains the following stuff: (glibc 2.3.3)

__extension__ extern __inline unsigned int
gnu_dev_major (unsigned long long int __dev) __THROW
{
  return ((__dev >> 8) & 0xfff) | ((unsigned int) (__dev >> 32) & ~0xfff);
}

# define major(dev) gnu_dev_major (dev)

Of course, h2ph doesn't grok this at all. And things breaks. That's why I added a ugly hack to h2ph to try to parse the __inline functions that mostly look like C macros (change #22925 to bleadperl.) The old caveat applies more than ever : It's only intended as a rough tool. You may need to dicker with the files produced. (from the h2ph(1) manpage, section BUGS.)

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.