Author: cazfi
Date: Fri Apr 15 06:59:18 2016
New Revision: 32404

URL: http://svn.gna.org/viewcvs/freeciv?rev=32404&view=rev
Log:
Added missing functions headers to dataio_json.c

See bug #24046

Modified:
    trunk/common/dataio.c
    trunk/common/dataio_json.c

Modified: trunk/common/dataio.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/dataio.c?rev=32404&r1=32403&r2=32404&view=diff
==============================================================================
--- trunk/common/dataio.c       (original)
+++ trunk/common/dataio.c       Fri Apr 15 06:59:18 2016
@@ -1,4 +1,4 @@
-/**********************************************************************
+/***********************************************************************
  Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -982,7 +982,7 @@
 }
 
 /**************************************************************************
- Receive vector of uint6 values.
+  Receive vector of uint16 values.
 **************************************************************************/
 bool dio_get_uint16_vec8_raw(struct data_in *din, int **values, int stop_value)
 {

Modified: trunk/common/dataio_json.c
URL: 
http://svn.gna.org/viewcvs/freeciv/trunk/common/dataio_json.c?rev=32404&r1=32403&r2=32404&view=diff
==============================================================================
--- trunk/common/dataio_json.c  (original)
+++ trunk/common/dataio_json.c  Fri Apr 15 06:59:18 2016
@@ -1,4 +1,4 @@
-/**********************************************************************
+/***********************************************************************
  Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -10,14 +10,6 @@
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.
 ***********************************************************************/
-
-/*
- * The DataIO module provides a system independent (endianess and
- * sizeof(int) independent) way to write and read data. It supports
- * multiple datas which are collected in a buffer. It provides
- * recognition of error cases like "not enough space" or "not enough
- * data".
- */
 
 #ifdef HAVE_CONFIG_H
 #include <fc_config.h>
@@ -232,7 +224,7 @@
 }
 
 /**************************************************************************
-...
+  Insert worklist information.
 **************************************************************************/
 void dio_put_worklist_json(struct json_data_out *dout,
                            const struct plocation *location,
@@ -264,7 +256,7 @@
 }
 
 /**************************************************************************
- Receive uint16 value to dest with json.
+  Receive uint16 value to dest with json.
 **************************************************************************/
 bool dio_get_uint16_json(json_t *json_packet,
                          const struct plocation *location, int *dest)
@@ -286,7 +278,7 @@
 }
 
 /**************************************************************************
- ..
+  Receive uint32 value to dest with json.
 **************************************************************************/
 bool dio_get_uint32_json(json_t *json_packet,
                          const struct plocation *location, int *dest)
@@ -308,7 +300,7 @@
 }
 
 /**************************************************************************
- ..
+  Receive tech list information.
 **************************************************************************/
 bool dio_get_tech_list_json(json_t *json_packet,
                             const struct plocation *location, int *dest)
@@ -329,7 +321,7 @@
 }
 
 /**************************************************************************
- ..
+  Receive building list information.
 **************************************************************************/
 bool dio_get_building_list_json(json_t *json_packet,
                                 const struct plocation *location, int *dest)
@@ -339,7 +331,7 @@
 }
 
 /**************************************************************************
- ..
+  Receive worklist information.
 **************************************************************************/
 bool dio_get_worklist_json(json_t *json_packet,
                            const struct plocation *location,
@@ -350,7 +342,7 @@
 }
 
 /**************************************************************************
-...
+  Receive vector of 8 bit values, terminated by stop_value.
 **************************************************************************/
 bool dio_get_uint8_vec8_json(json_t *json_packet,
                              const struct plocation *location,
@@ -361,7 +353,7 @@
 }
 
 /**************************************************************************
-...
+  Receive vector of uint16 values.
 **************************************************************************/
 bool dio_get_uint16_vec8_json(json_t *json_packet,
                               const struct plocation *location,
@@ -459,7 +451,7 @@
 }
 
 /**************************************************************************
-...
+  Insert uint32 value.
 **************************************************************************/
 void dio_put_uint32_json(struct json_data_out *dout,
                          const struct plocation *location, int value)
@@ -468,7 +460,7 @@
 }
 
 /**************************************************************************
-...
+  Insert bool value.
 **************************************************************************/
 void dio_put_bool8_json(struct json_data_out *dout,
                         const struct plocation *location, bool value)
@@ -477,7 +469,7 @@
 }
 
 /**************************************************************************
-...
+  Insert bool value.
 **************************************************************************/
 void dio_put_bool32_json(struct json_data_out *dout,
                          const struct plocation *location, bool value)
@@ -486,7 +478,7 @@
 }
 
 /**************************************************************************
-...
+  Insert unsigned floating point value.
 **************************************************************************/
 void dio_put_ufloat_json(struct json_data_out *dout,
                          const struct plocation *location,
@@ -496,7 +488,7 @@
 }
 
 /**************************************************************************
-...
+  Insert signed floating point value.
 **************************************************************************/
 void dio_put_sfloat_json(struct json_data_out *dout,
                          const struct plocation *location,
@@ -506,7 +498,7 @@
 }
 
 /**************************************************************************
-...
+  Insert vector of uint8 values, terminated by stop_value.
 **************************************************************************/
 void dio_put_uint8_vec8_json(struct json_data_out *dout,
                              const struct plocation *location,
@@ -516,7 +508,7 @@
 }
 
 /**************************************************************************
-...
+  Insert vector of uint16 values, terminated by stop_value.
 **************************************************************************/
 void dio_put_uint16_vec8_json(struct json_data_out *dout,
                               const struct plocation *location, int *values,
@@ -526,7 +518,7 @@
 }
 
 /**************************************************************************
-  Send block of memory as byte array
+  Send block of memory as byte array.
 **************************************************************************/
 void dio_put_memory_json(struct json_data_out *dout,
                          struct plocation *location,
@@ -550,7 +542,7 @@
 }
 
 /**************************************************************************
-...
+  Insert NULL-terminated string.
 **************************************************************************/
 void dio_put_string_json(struct json_data_out *dout,
                          const struct plocation *location,
@@ -579,7 +571,7 @@
 }
 
 /**************************************************************************
-...
+  Insert tech list information.
 **************************************************************************/
 void dio_put_tech_list_json(struct json_data_out *dout,
                             const struct plocation *location,
@@ -620,7 +612,7 @@
 }
 
 /**************************************************************************
-...
+  Receive bool value.
 **************************************************************************/
 bool dio_get_bool8_json(json_t *json_packet,
                         const struct plocation *location, bool *dest)
@@ -642,7 +634,7 @@
 }
 
 /**************************************************************************
-...
+  Receive bool value.
 **************************************************************************/
 bool dio_get_bool32_json(json_t *json_packet,
                          const struct plocation *location, bool *dest)
@@ -664,7 +656,7 @@
 }
 
 /**************************************************************************
-  ...
+  Receive unsigned floating point value.
 **************************************************************************/
 bool dio_get_ufloat_json(json_t *json_packet,
                          const struct plocation *location,
@@ -682,7 +674,7 @@
 }
 
 /**************************************************************************
-  ...
+  Receive signed floating point value.
 **************************************************************************/
 bool dio_get_sfloat_json(json_t *json_packet,
                          const struct plocation *location,
@@ -700,7 +692,7 @@
 }
 
 /**************************************************************************
-...
+  Receive signed 8 bit value.
 **************************************************************************/
 bool dio_get_sint8_json(json_t *json_packet,
                         const struct plocation *location, int *dest)
@@ -722,7 +714,7 @@
 }
 
 /**************************************************************************
-...
+  Receive signed 16 bit value.
 **************************************************************************/
 bool dio_get_sint16_json(json_t *json_packet,
                          const struct plocation *location, int *dest)
@@ -744,13 +736,13 @@
 }
 
 /**************************************************************************
-  Receive block of memory as byte array
+  Receive block of memory as byte array.
 **************************************************************************/
 bool dio_get_memory_json(json_t *json_packet,
                          struct plocation *location,
                          void *dest, size_t dest_size)
 {
-   int i;
+  int i;
 
   location->sub_location = plocation_elem_new(0);
 
@@ -772,7 +764,7 @@
 }
 
 /**************************************************************************
-...
+  Receive at max max_dest_size bytes long NULL-terminated string.
 **************************************************************************/
 bool dio_get_string_json(json_t *json_packet,
                          const struct plocation *location,


_______________________________________________
Freeciv-commits mailing list
Freeciv-commits@gna.org
https://mail.gna.org/listinfo/freeciv-commits

Reply via email to