diff options
| author | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-05-23 16:42:02 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <carlos@cmartin.tk> | 2012-05-23 16:42:02 +0200 |
| commit | 902bfd31f476b4c7edc8e23cb57689dcbf26949e (patch) | |
| tree | f783874af4462588e94368bd3701525bbd50f837 /CONVENTIONS | |
| parent | 8bf10dbab23c84aaccc4847afe0fc4b6968dbe9d (diff) | |
| download | libgit2-902bfd31f476b4c7edc8e23cb57689dcbf26949e.tar.gz | |
CONVENTIONS: Update error code names
Diffstat (limited to 'CONVENTIONS')
| -rw-r--r-- | CONVENTIONS | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/CONVENTIONS b/CONVENTIONS index 575cdc563..f082d8e6c 100644 --- a/CONVENTIONS +++ b/CONVENTIONS @@ -49,7 +49,7 @@ Functions should prefer to return a 'int' to indicate success or failure and supply any output through the first argument (or first few arguments if multiple outputs are supplied). -int status codes are 0 for GIT_SUCCESS and < 0 for an error. +int status codes are 0 for GIT_OK and < 0 for an error. This permits common POSIX result testing: ---- @@ -58,7 +58,7 @@ This permits common POSIX result testing: ---- Functions returning a pointer may return NULL instead of an int -if there is only one type of failure (ENOMEM). +if there is only one type of failure (GIT_ENOMEM). Functions returning a pointer may also return NULL if the common case needed by the application is strictly success/failure and a |
