News for hackers. Stuff that matters.
Re:Apple's Module proposal to replace headers for C-based la... by acomjean on Monday November 26, 2012 @01:00PM (#4833033)
I thought one of the points of headers system was you could use the code without having to slog through all the source.

Thinking about my trips to /usr/include, those headers weren't that useful for coding with but you could get constants and function names at least.

Re:Apple's Module proposal to replace headers for C-based la... by Too on Monday November 26, 2012 @02:31PM (#4833503)
C# together with visual studio solves this in an amazing way. You can browse .NET DLL-files as if they were source files, with only public members being visible and without the function bodies. Good for finding function names and constants.

I can't believe nobody else is using the same system, using "go to definition" on a library function is just as natural as using it on one of your own functions. Only difference is in the second case you see the actual code of the function instead of just the function header.

(Replace .NET DLL-files with these new "modules" to make this applicable to C)

Ps. even if you do have the source, in most editors you can collapse the code to hide everything so you don't have to "slog through all the source".

Re:Apple's Module proposal to replace headers for C-based la... by richy_rich on Monday November 26, 2012 @04:17PM (#4834065)
Most (all?) Java IDEs do this as does XCode ( Obj-C) and probably many other things. This isn't the point here though...
Re:Apple's Module proposal to replace headers for C-based la... by Evbn on Tuesday November 27, 2012 @11:12PM (#4840990)
But Eclipse does stupid stuff like disabling Ctrl-Ffull text search when viewing a .class file, even though text method names are plainly visible.