You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2014/02/12 07:23:16 UTC

[06/15] snappy commit: updated refs/heads/import-master to 64cd135

Added missing static qualifier, and inline hint, to internal functions

g++ 4.4.5 with -Winline says that only make_error is not inlined since calls to it
are unlikely.



git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1099030 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/couchdb-snappy/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-snappy/commit/7a8e80cd
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-snappy/tree/7a8e80cd
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-snappy/diff/7a8e80cd

Branch: refs/heads/import-master
Commit: 7a8e80cd48c6be0dbbb03773011ca3a3c413c64c
Parents: 64f9f0c
Author: Filipe David Borba Manana <fd...@apache.org>
Authored: Tue May 3 11:57:28 2011 +0000
Committer: Filipe David Borba Manana <fd...@apache.org>
Committed: Tue May 3 11:57:28 2011 +0000

----------------------------------------------------------------------
 snappy_nif.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-snappy/blob/7a8e80cd/snappy_nif.cc
----------------------------------------------------------------------
diff --git a/snappy_nif.cc b/snappy_nif.cc
index 76409c8..ba9e909 100644
--- a/snappy_nif.cc
+++ b/snappy_nif.cc
@@ -107,7 +107,7 @@ SnappyNifSink::getBin()
 BEGIN_C
 
 
-ERL_NIF_TERM
+static inline ERL_NIF_TERM
 make_atom(ErlNifEnv* env, const char* name)
 {
     ERL_NIF_TERM ret;
@@ -118,7 +118,7 @@ make_atom(ErlNifEnv* env, const char* name)
 }
 
 
-ERL_NIF_TERM
+static inline ERL_NIF_TERM
 make_ok(ErlNifEnv* env, ERL_NIF_TERM mesg)
 {
     ERL_NIF_TERM ok = make_atom(env, "ok");
@@ -126,7 +126,7 @@ make_ok(ErlNifEnv* env, ERL_NIF_TERM mesg)
 }
 
 
-ERL_NIF_TERM
+static inline ERL_NIF_TERM
 make_error(ErlNifEnv* env, const char* mesg)
 {
     ERL_NIF_TERM error = make_atom(env, "error");