[Groonga-commit] groonga/groonga at 1f586c5 [master] doc api/overview: use EXIT_* macro status code instead of constants

Back to archive index

Hiroshi Hatake null+****@clear*****
Fri Feb 13 19:00:25 JST 2015


Hiroshi Hatake	2015-02-13 19:00:25 +0900 (Fri, 13 Feb 2015)

  New Revision: 1f586c5c35fc0d338006fd087ea9df4402ed8377
  https://github.com/groonga/groonga/commit/1f586c5c35fc0d338006fd087ea9df4402ed8377

  Merged d9d1925: Merge pull request #280 from cosmo0920/doc-reference-api-overview

  Message:
    doc api/overview: use EXIT_* macro status code instead of constants

  Modified files:
    doc/source/reference/api/overview.rst

  Modified: doc/source/reference/api/overview.rst (+2 -2)
===================================================================
--- doc/source/reference/api/overview.rst    2015-02-13 18:59:11 +0900 (4f23730)
+++ doc/source/reference/api/overview.rst    2015-02-13 19:00:25 +0900 (4bdccbf)
@@ -28,12 +28,12 @@ Here is an example that uses Groonga as full-text search library.
    /* Preparing resource will be used by libgroonga. */
    rc = grn_init();
    if (rc != GRN_SUCCESS) {
-     return 1;
+     return EXIT_FAILURE;
    }
    /* Some Groonga API calling codes... */
    /* Releasing resource used by libgroonga. */
    grn_fin();
-   return 0;
+   return EXIT_SUCCESS;
 
 Reference
 ---------
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index