Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Documentation

    GDOC

    Download button

    Downloads: 1,132  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    16 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Simon Josefsson | More programs
    GPL / FREE
    September 27th, 2006, 13:36 GMT
    ROOT / Documentation

     Read user reviews (0)  Refer to a friend  Subscribe

    GDOC description

    GDOC is a C Documentation Tool.

    GDOC is a C Documentation Tool.

    Here are some key features of "GDOC":

    · Keeps software and manual in sync.
    · Improves source code readability by having extensive comments available directly.
    · Improves manual as developers will more likely update the comments when they change source code.
    · Support several output formats, such as Texinfo, MAN, DocBook, Doxygen, GTK-DOC tools, LaTeX, HTML.
    · Only perl is required, and only for the developers (end-users do not need to have perl installed).

    Then start to comment your source code. See the comments in 'gdoc' for the full story, but here is an example:

    /**
    * stringprep_utf8_to_locale:
    * @str: input zero terminated string.
    *
    * Convert string encoded in UTF-8 into the locale's character set by
    * using stringprep_convert().
    *
    * Return value: Returns newly allocated zero-terminated string which
    * is @str transcoded into the locale's character set.
    **/
    char *
    stringprep_utf8_to_locale (const char *str)
    {
    return stringprep_convert (str, stringprep_locale_charset (), "UTF-8");
    }

    You can then extract Man pages, Texinfo fragments, etc, using 'gdoc' as follows:

    $ gdoc -texinfo file.c
    @deftypefun {char *} {stringprep_utf8_to_locale} (const char * @var{str})
    @var{str}: input zero terminated string.

    Convert string encoded in UTF-8 into the locale's character set by

    using @code{stringprep_convert()}.

    @strong{Return value:} Returns newly allocated zero-terminated string which
    is @code{str} transcoded into the locale's character set.
    @end deftypefun

    $

    To simplify generating Texinfo fragments or Man pages for your entire project -- which might contain many files, each contain many functions, that would result in lots of boring Makefile rules to keep track of -- I use a Automake 'include' file to simplify matters.

    What's New in This Release:

    · added -texinfo, -listfunc
    · man page revamp
    · various improvements



    Product's homepage

      


    TAGS:

    C Documentation | Documentation Tool | C information | GDOC | C | Documentation

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM