GNOME Bugzilla – Bug 566979
scan C library headers
Last modified: 2010-07-05 21:09:42 UTC
symbol-db can apparently scan header files from any package with a pkg-config definition. Unfortunately, the standard C library doesn't have a pkg-config package, and so symbol-db can't autocomplete symbols such as "printf" or "strlen". We should scan the standard C header files; I think it would be reasonable to do this automatically for any project.
+1
what I may suggest is to let user decide which directory to parse for headers. This won't be done automatically so user should specify directories. He could then associate a name to the 'custom-package'. There cannot be a 'generic' way of operating here because *nix systems are quite different. Can this be acceptable?
Yes - I think it would be great it this were a general capability, not just limited to the C standard library; the user should be able to specify directories to parse. But I still think we should parse standard library headers automatically if at all possible, without the user having to set this up manually. Perhaps we could just automatically scan all files in /usr/include (but not its subdirectories); this would get all the standard headers on most systems.
I'm thinking to a widget as Picasa has (just the first example that came into my mind). If you open Picasa 3 and go to Tools -> Folder Manager you can see on the left a tree with checkboxes. It would be really great if you could have it in gtk. But I think I never saw one around. Maybe you did? Another option would be to let user browse the filesystem, pick a directory and add a name for the new package. In addition a check box [Recurse subdirectory] will manage the subdirectories or not.
bug planned for 2.28 cycle.
*** This bug has been marked as a duplicate of bug 623633 ***