diff options
author | Ali Polatel <alip@exherbo.org> | 2011-10-04 16:41:52 +0300 |
---|---|---|
committer | Ali Polatel <alip@exherbo.org> | 2011-10-04 16:43:40 +0300 |
commit | 05dddf883dd762420bb8e6b86790e68d734fd568 (patch) | |
tree | 22ca0cdc8ec2d88fabc800b7294f83a8f0c9ac3f /bindings/ruby/status.c | |
parent | 898613116db746aa0f915ae43da8aba28545203d (diff) |
ruby: be consistent with notmuch's coding style
No functional change, just indentation
Diffstat (limited to 'bindings/ruby/status.c')
-rw-r--r-- | bindings/ruby/status.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/bindings/ruby/status.c b/bindings/ruby/status.c index a2bd61a7..b11fb9fb 100644 --- a/bindings/ruby/status.c +++ b/bindings/ruby/status.c @@ -1,6 +1,6 @@ /* The Ruby interface to the notmuch mail library * - * Copyright © 2010 Ali Polatel + * Copyright © 2010, 2011 Ali Polatel * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,31 +21,31 @@ #include "defs.h" void -notmuch_rb_status_raise(notmuch_status_t status) +notmuch_rb_status_raise (notmuch_status_t status) { switch (status) { case NOTMUCH_STATUS_SUCCESS: case NOTMUCH_STATUS_DUPLICATE_MESSAGE_ID: - break; + break; case NOTMUCH_STATUS_OUT_OF_MEMORY: - rb_raise(notmuch_rb_eMemoryError, "out of memory"); + rb_raise (notmuch_rb_eMemoryError, "out of memory"); case NOTMUCH_STATUS_READ_ONLY_DATABASE: - rb_raise(notmuch_rb_eReadOnlyError, "read-only database"); + rb_raise (notmuch_rb_eReadOnlyError, "read-only database"); case NOTMUCH_STATUS_XAPIAN_EXCEPTION: - rb_raise(notmuch_rb_eXapianError, "xapian exception"); + rb_raise (notmuch_rb_eXapianError, "xapian exception"); case NOTMUCH_STATUS_FILE_ERROR: - rb_raise(notmuch_rb_eFileError, "failed to read/write file"); + rb_raise (notmuch_rb_eFileError, "failed to read/write file"); case NOTMUCH_STATUS_FILE_NOT_EMAIL: - rb_raise(notmuch_rb_eFileNotEmailError, "file not email"); + rb_raise (notmuch_rb_eFileNotEmailError, "file not email"); case NOTMUCH_STATUS_NULL_POINTER: - rb_raise(notmuch_rb_eNullPointerError, "null pointer"); + rb_raise (notmuch_rb_eNullPointerError, "null pointer"); case NOTMUCH_STATUS_TAG_TOO_LONG: - rb_raise(notmuch_rb_eTagTooLongError, "tag too long"); + rb_raise (notmuch_rb_eTagTooLongError, "tag too long"); case NOTMUCH_STATUS_UNBALANCED_FREEZE_THAW: - rb_raise(notmuch_rb_eUnbalancedFreezeThawError, "unbalanced freeze/thaw"); + rb_raise (notmuch_rb_eUnbalancedFreezeThawError, "unbalanced freeze/thaw"); case NOTMUCH_STATUS_UNBALANCED_ATOMIC: - rb_raise(notmuch_rb_eUnbalancedAtomicError, "unbalanced atomic"); + rb_raise (notmuch_rb_eUnbalancedAtomicError, "unbalanced atomic"); default: - rb_raise(notmuch_rb_eBaseError, "unknown notmuch error"); + rb_raise (notmuch_rb_eBaseError, "unknown notmuch error"); } } |