Author: cazfi
Date: Wed Feb 17 12:28:39 2016
New Revision: 31954

URL: http://svn.gna.org/viewcvs/freeciv?rev=31954&view=rev
Log:
Replaced "fragement" in comments with "fragment"

Modified:
    branches/S2_5/common/generate_packets.py

Modified: branches/S2_5/common/generate_packets.py
URL: 
http://svn.gna.org/viewcvs/freeciv/branches/S2_5/common/generate_packets.py?rev=31954&r1=31953&r2=31954&view=diff
==============================================================================
--- branches/S2_5/common/generate_packets.py    (original)
+++ branches/S2_5/common/generate_packets.py    Wed Feb 17 12:28:39 2016
@@ -296,7 +296,7 @@
       }
     }'''%self.get_dict(vars())
 
-    # Returns a code fragement which updates the bit of the this field
+    # Returns a code fragment which updates the bit of the this field
     # in the "fields" bitvector. The bit is either a "content-differs"
     # bit or (for bools which gets folded in the header) the actual
     # value of the bool.
@@ -323,7 +323,7 @@
 
 '''%(cmp,i)
 
-    # Returns a code fragement which will put this field if the
+    # Returns a code fragment which will put this field if the
     # content has changed. Does nothing for bools-in-header.    
     def get_put_wrapper(self,packet,i):
         if fold_bool_into_header and self.struct_type=="bool" and \
@@ -421,7 +421,7 @@
       dio_put_uint8(&dout, 255);
     } '''%self.get_dict(vars())
 
-    # Returns a code fragement which will get the field if the
+    # Returns a code fragment which will get the field if the
     # "fields" bitvector says so.
     def get_get_wrapper(self,packet,i):
         get=self.get_get()
@@ -663,7 +663,7 @@
         result.update(vars)
         return result
 
-    # Returns a code fragement which contains the declarations of the
+    # Returns a code fragment which contains the declarations of the
     # statistical counters of this packet.
     def get_stats(self):
         names=map(lambda x:'"'+x.name+'"',self.other_fields)
@@ -676,13 +676,13 @@
 
 '''%self.get_dict(vars())
 
-    # Returns a code fragement which declares the packet specific
+    # Returns a code fragment which declares the packet specific
     # bitvector. Each bit in this bitvector represents one non-key
     # field.    
     def get_bitvector(self):
         return "BV_DEFINE(%(name)s_fields, %(bits)d);\n\n"%self.__dict__
 
-    # Returns a code fragement which is the packet specific part of
+    # Returns a code fragment which is the packet specific part of
     # the delta_stats_report() function.
     def get_report_part(self):
         return '''
@@ -701,7 +701,7 @@
   }
 '''%self.__dict__
 
-    # Returns a code fragement which is the packet specific part of
+    # Returns a code fragment which is the packet specific part of
     # the delta_stats_reset() function.
     def get_reset_part(self):
         return '''
@@ -711,7 +711,7 @@
          sizeof(stats_%(name)s_counters));
 '''%self.__dict__
 
-    # Returns a code fragement which is the implementation of the hash
+    # Returns a code fragment which is the implementation of the hash
     # function. The hash function is using all key fields.
     def get_hash(self):
         if len(self.key_fields)==0:
@@ -736,7 +736,7 @@
             extro="}\n\n"
             return intro+body+extro
 
-    # Returns a code fragement which is the implementation of the cmp
+    # Returns a code fragment which is the implementation of the cmp
     # function. The cmp function is using all key fields. The cmp
     # function is used for the hash table.    
     def get_cmp(self):
@@ -757,7 +757,7 @@
             extro="}\n\n"
             return intro+body+extro
 
-    # Returns a code fragement which is the implementation of the send
+    # Returns a code fragment which is the implementation of the send
     # function. This is one of the two real functions. So it is rather
     # complex to create.
     def get_send(self):
@@ -906,7 +906,7 @@
 
         return intro+body
 
-    # Returns a code fragement which is the implementation of the receive
+    # Returns a code fragment which is the implementation of the receive
     # function. This is one of the two real functions. So it is rather
     # complex to create.
     def get_receive(self):
@@ -1173,7 +1173,7 @@
             
self.variants.append(Variant(poscaps,negcaps,"%s_%d"%(self.name,no),fields,self,no))
 
 
-    # Returns a code fragement which contains the struct for this packet.
+    # Returns a code fragment which contains the struct for this packet.
     def get_struct(self):
         intro="struct %(name)s {\n"%self.__dict__
         extro="};\n\n"
@@ -1186,7 +1186,7 @@
         return intro+body+extro
     # '''
 
-    # Returns a code fragement which represents the prototypes of the
+    # Returns a code fragment which represents the prototypes of the
     # send and receive functions for the header file.
     def get_prototypes(self):
         result=(self.receive_prototype+";\n"+
@@ -1347,7 +1347,7 @@
         result=result+self.get_ensure_valid_variant()
         return result
 
-    # Returns a code fragement which is the implementation of the
+    # Returns a code fragment which is the implementation of the
     # lsend function.
     def get_lsend(self):
         if not self.want_lsend: return ""
@@ -1360,7 +1360,7 @@
 
 '''%self.__dict__
 
-    # Returns a code fragement which is the implementation of the
+    # Returns a code fragment which is the implementation of the
     # dsend function.
     def get_dsend(self):
         if not self.want_dsend: return ""
@@ -1376,7 +1376,7 @@
 
 '''%self.get_dict(vars())
 
-    # Returns a code fragement which is the implementation of the
+    # Returns a code fragment which is the implementation of the
     # dlsend function.
     def get_dlsend(self):
         if not (self.want_lsend and self.want_dsend): return ""
@@ -1392,7 +1392,7 @@
 
 '''%self.get_dict(vars())
 
-# Returns a code fragement which is the implementation of the
+# Returns a code fragment which is the implementation of the
 # delta_stats_report() function.
 def get_report(packets):
     if not generate_stats: return 'void delta_stats_report(void) {}\n\n'
@@ -1409,7 +1409,7 @@
         body=body+p.get_report_part()
     return intro+body+extro
 
-# Returns a code fragement which is the implementation of the
+# Returns a code fragment which is the implementation of the
 # delta_stats_reset() function.
 def get_reset(packets):
     if not generate_stats: return 'void delta_stats_reset(void) {}\n\n'
@@ -1423,7 +1423,7 @@
         body=body+p.get_reset_part()
     return intro+body+extro
 
-# Returns a code fragement which is the implementation of the
+# Returns a code fragment which is the implementation of the
 # get_packet_from_connection_helper() function. This function is a big
 # switch case construct which calls the appropriate packet specific
 # receive function.
@@ -1446,7 +1446,7 @@
 '''
     return intro+body+extro
 
-# Returns a code fragement which is the implementation of the
+# Returns a code fragment which is the implementation of the
 # packet_name() function.
 def get_packet_name(packets):
     intro='''const char *packet_name(enum packet_type type)
@@ -1465,7 +1465,7 @@
 '''
     return intro+body+extro
 
-# Returns a code fragement which is the implementation of the
+# Returns a code fragment which is the implementation of the
 # packet_has_game_info_flag() function.
 def get_packet_has_game_info_flag(packets):
     intro='''bool packet_has_game_info_flag(enum packet_type type)
@@ -1488,7 +1488,7 @@
 '''
     return intro+body+extro
 
-# Returns a code fragement which is the declartion of
+# Returns a code fragment which is the declartion of
 # "enum packet_type".
 def get_enum_packet(packets):
     intro="enum packet_type {\n"


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

Reply via email to