Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

CDRIVER-154 Appending empty string key with bson_append_element

pedantic comments
  • Loading branch information...
commit 247c7cebfe475f20ce49be59b4b88b6ff7c47206 1 parent 6b661c1
@gjmurakami-10gen gjmurakami-10gen authored
View
2  docs/source/sphinx/source/bson.rst
@@ -41,7 +41,7 @@ To demonstrate, let's create a BSON object corresponding to the simple JSON obje
bson_append_int( b, "count", 1001 );
bson_finish( b );
- // BSON object now ready for use
+ /* BSON object now ready for use */
bson_destroy( b );
View
2  docs/source/sphinx/source/tutorial.rst
@@ -111,7 +111,7 @@ then you add seed nodes, and finally you connect. Here's an example:
status = mongo_replset_connect( conn );
if( status != MONGO_OK ) {
- // Check conn->err for error code.
+ /* Check conn->err for error code. */
}
mongo_destroy( conn );
View
4 src/bson.c
@@ -242,11 +242,11 @@ MONGO_EXPORT void bson_print_raw( const char *data , int depth ) {
break;
case BSON_CODEWSCOPE:
bson_printf( "BSON_CODE_W_SCOPE: %s", bson_iterator_code( &i ) );
- /* bson_init( &scope ); // review - stepped on by bson_iterator_code_scope? */
+ /* bson_init( &scope ); */ /* review - stepped on by bson_iterator_code_scope? */
bson_iterator_code_scope( &i, &scope );
bson_printf( "\n\t SCOPE: " );
bson_print( &scope );
- /* bson_destroy( &scope ); // review - causes free error */
+ /* bson_destroy( &scope ); */ /* review - causes free error */
break;
case BSON_INT:
bson_printf( "%d" , bson_iterator_int( &i ) );
View
4 src/env_standard.c
@@ -22,8 +22,8 @@
#ifdef _WIN32
#ifdef _MSC_VER
- #include <ws2tcpip.h> // send,recv,socklen_t etc
- #include <wspiapi.h> // addrinfo
+ #include <ws2tcpip.h> /* send,recv,socklen_t etc */
+ #include <wspiapi.h> /* addrinfo */
#else
#include <windows.h>
#include <winsock.h>
View
6 src/env_win32.c
@@ -21,10 +21,10 @@
#include <string.h>
#ifdef _MSC_VER
-#include <ws2tcpip.h> // send,recv,socklen_t etc
-#include <wspiapi.h> // addrinfo
+#include <ws2tcpip.h> /* send,recv,socklen_t etc */
+#include <wspiapi.h> /* addrinfo */
#else
-#include <ws2tcpip.h> // send,recv,socklen_t etc
+#include <ws2tcpip.h> /* send,recv,socklen_t etc */
#include <winsock2.h>
typedef int socklen_t;
#endif
View
8 test/bson_test.c
@@ -244,17 +244,17 @@ int test_bson_generic( void ) {
bson_finish( bsrc );
ASSERT( bsrc->err == BSON_VALID );
bson_init( b );
- bson_append_double( b, "", 3.14 ); // test empty name (in general)
+ bson_append_double( b, "", 3.14 ); /* test empty name (in general) */
bson_iterator_init( &it, bsrc );
ASSERT( bson_iterator_more( &it ) );
ASSERT( bson_iterator_next( &it ) == BSON_DOUBLE );
ASSERT( bson_iterator_type( &it ) == BSON_DOUBLE );
bson_append_element( b, "d", &it );
- bson_append_element( b, 0, &it ); // test null
- bson_append_element( b, "", &it ); // test empty name
+ bson_append_element( b, 0, &it ); /* test null */
+ bson_append_element( b, "", &it ); /* test empty name */
bson_finish( b );
ASSERT( b->err == BSON_VALID );
- //bson_print( b );
+ /* bson_print( b ); */
bson_iterator_init( &it, b );
ASSERT( bson_iterator_more( &it ) );
ASSERT( bson_iterator_next( &it ) == BSON_DOUBLE );
View
2  test/cpptest.cpp
@@ -4,7 +4,7 @@
#include <cstring>
#include <cstdio>
-// this is just a simple test to make sure everything works when compiled with a c++ compiler
+/* this is just a simple test to make sure everything works when compiled with a c++ compiler */
using namespace std;
View
4 test/env_win32_test.c
@@ -9,8 +9,8 @@
#include <stdlib.h>
#ifdef _MSC_VER
-#include <ws2tcpip.h> // send,recv,socklen_t etc
-#include <wspiapi.h> // addrinfo
+#include <ws2tcpip.h> /* send,recv,socklen_t etc */
+#include <wspiapi.h> /* addrinfo */
#else
#include <windows.h>
#include <winsock.h>
Please sign in to comment.
Something went wrong with that request. Please try again.