couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1099048 - /couchdb/trunk/src/snappy/snappy_nif.cc
Date Tue, 03 May 2011 13:21:26 GMT
Author: fdmanana
Date: Tue May  3 13:21:25 2011
New Revision: 1099048

URL: http://svn.apache.org/viewvc?rev=1099048&view=rev
Log:
Module local functions shouldn't be inside the extern "C" block

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=1099048&r1=1099047&r2=1099048&view=diff
==============================================================================
--- couchdb/trunk/src/snappy/snappy_nif.cc (original)
+++ couchdb/trunk/src/snappy/snappy_nif.cc Tue May  3 13:21:25 2011
@@ -104,9 +104,6 @@ SnappyNifSink::getBin()
 }
 
 
-BEGIN_C
-
-
 static inline ERL_NIF_TERM
 make_atom(ErlNifEnv* env, const char* name)
 {
@@ -134,6 +131,9 @@ make_error(ErlNifEnv* env, const char* m
 }
 
 
+BEGIN_C
+
+
 ERL_NIF_TERM
 snappy_compress(ErlNifEnv* env, int argc, const ERL_NIF_TERM argv[])
 {



Mime
View raw message