Explorar o código

reformatting: print_string

Max Bruckner %!s(int64=8) %!d(string=hai) anos
pai
achega
7423692586
Modificáronse 1 ficheiros con 5 adicións e 2 borrados
  1. 5 2
      cJSON.c

+ 5 - 2
cJSON.c

@@ -759,8 +759,11 @@ static char *print_string_ptr(const char *str, printbuffer *p)
     return out;
 }
 
-/* Invote print_string_ptr (which is useful) on an item. */
-static char *print_string(cJSON *item,printbuffer *p)	{return print_string_ptr(item->valuestring,p);}
+/* Invoke print_string_ptr (which is useful) on an item. */
+static char *print_string(cJSON *item, printbuffer *p)
+{
+    return print_string_ptr(item->valuestring, p);
+}
 
 /* Predeclare these prototypes. */
 static const char *parse_value(cJSON *item,const char *value,const char **ep);