SF.net SVN: geany:[4368] trunk

ntrel at users.sourceforge.net ntrel at xxxxx
Mon Oct 26 15:16:04 UTC 2009


Revision: 4368
          http://geany.svn.sourceforge.net/geany/?rev=4368&view=rev
Author:   ntrel
Date:     2009-10-26 15:16:04 +0000 (Mon, 26 Oct 2009)

Log Message:
-----------
Add 'Doc-comments' plugin API subsection.

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/HACKING

Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2009-10-26 14:59:47 UTC (rev 4367)
+++ trunk/ChangeLog	2009-10-26 15:16:04 UTC (rev 4368)
@@ -11,6 +11,8 @@
  * src/build.c, src/build.h:
    Move function doc-comments to build.c so they stay in sync. Note:
    these functions are still not in the API.
+ * HACKING:
+   Add 'Doc-comments' plugin API subsection.
 
 
 2009-10-25  Enrico Tröger  <enrico(dot)troeger(at)uvena(dot)de>

Modified: trunk/HACKING
===================================================================
--- trunk/HACKING	2009-10-26 14:59:47 UTC (rev 4367)
+++ trunk/HACKING	2009-10-26 15:16:04 UTC (rev 4368)
@@ -66,8 +66,8 @@
 See the top of each ``src/*.c`` file for a brief description of what
 it's for.
 
-Keeping the plugin ABI stable
------------------------------
+Plugin API code
+---------------
 Please be aware that anything with a doc-comment (a comment with an
 extra asterix: ``/**``) is something in the plugin API. Things like
 enums and structs can usually still be appended to, ensuring that all
@@ -80,13 +80,15 @@
     structs by plugins, not just for accessing struct members through
     a pointer.
 
+Keeping the plugin ABI stable
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 Before the 1.0 release series, the ABI can change when necessary, and
 even the API can change. An ABI change just means that all plugins will
 not load and they must be rebuilt. An API change means that some plugins
 might not build correctly.
 
 If you're reordering or changing existing elements of structs that are
-used as part of the plugin API, you should increment GEANY_ABI_VERSION
+used as part of the plugin API, you must increment GEANY_ABI_VERSION
 in plugindata.h. This is usually not needed if you're just appending
 fields to structs. The GEANY_API_VERSION value should be incremented
 for any changes to the plugin API, including appending elements.
@@ -102,6 +104,14 @@
 * Don't add any array fields to structs in case we want to change the
   array size later.
 
+Doc-comments
+^^^^^^^^^^^^
+* The @file tag can go in the source .c file, but use the .h header name so
+  it appears normally in the generated documentation. See ui_utils.c for an
+  example.
+* Function doc-comments should always go in the source file, not the
+  header, so they can be updated if/when the implementation changes.
+
 Glade
 -----
 Use the code generation features of Glade instead of editing interface.c


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the Commits mailing list