couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1099030 - /couchdb/trunk/src/snappy/snappy_nif.cc
Date Tue, 03 May 2011 11:57:29 GMT
Author: fdmanana
Date: Tue May  3 11:57:28 2011
New Revision: 1099030

URL: http://svn.apache.org/viewvc?rev=1099030&view=rev
Log:
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.


Modified:
    couchdb/trunk/src/snappy/snappy_nif.cc

Modified: couchdb/trunk/src/snappy/snappy_nif.cc
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/snappy/snappy_nif.cc?rev=1099030&r1=1099029&r2=1099030&view=diff
==============================================================================
--- couchdb/trunk/src/snappy/snappy_nif.cc (original)
+++ couchdb/trunk/src/snappy/snappy_nif.cc Tue May  3 11:57:28 2011
@@ -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* na
 }
 
 
-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 mes
 }
 
 
-ERL_NIF_TERM
+static inline ERL_NIF_TERM
 make_error(ErlNifEnv* env, const char* mesg)
 {
     ERL_NIF_TERM error = make_atom(env, "error");



Mime
View raw message