]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
rename VM_hash to VM_crc16, and the extension to DP_QC_CRC16. That way, it is specifi...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 19 Jan 2008 08:26:00 +0000 (08:26 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 19 Jan 2008 08:26:00 +0000 (08:26 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7980 d7cf8633-e32d-0410-b094-e92efae38249

clvm_cmds.c
mvm_cmds.c
prvm_cmds.c
prvm_cmds.h
svvm_cmds.c

index 1de807cbc9dc6d0cc88ee4812fd0ee3ccceab449..aec8cbee452d0aa553f6321d8ab4bd97d0eca6d5 100644 (file)
@@ -3399,7 +3399,7 @@ VM_gecko_keyevent,                                // #490 float gecko_keyevent( string name, float key, floa
 VM_gecko_movemouse,                            // #491 void gecko_mousemove( string name, float x, float y )
 VM_gecko_resize,                                       // #492 void gecko_resize( string name, float w, float h )
 VM_gecko_get_texture_extent,   // #493 vector gecko_get_texture_extent( string name )
-NULL,                                                  // #494
+VM_crc16,                                              // #494 float(float caseinsensitive, string s, ...) crc16 = #494 (DP_QC_CRC16)
 NULL,                                                  // #495
 NULL,                                                  // #496
 NULL,                                                  // #497
index 71e59ab20e1e72918542a0bda2d678decf1540b7..be46b03bb98d3d41a7afc1e3690c7183bf8de9a9 100644 (file)
@@ -23,6 +23,8 @@ char *vm_m_extensions =
 // FIXME: rename this extension maybe? [12/5/2007 Black]
 "DP_GECKO_SUPPORT "
 "DP_QC_RENDER_SCENE"
+"DP_QC_STRINGBUFFERS "
+"DP_QC_CRC16 "
 ;
 
 /*
@@ -1223,16 +1225,16 @@ NULL,                                                                   // #436
 NULL,                                                                  // #437
 NULL,                                                                  // #438
 NULL,                                                                  // #439
-NULL,                                                                  // #440
-NULL,                                                                  // #441
-NULL,                                                                  // #442
-NULL,                                                                  // #443
-NULL,                                                                  // #444
-NULL,                                                                  // #445
-NULL,                                                                  // #446
-NULL,                                                                  // #447
-NULL,                                                                  // #448
-NULL,                                                                  // #449
+VM_buf_create,                                 // #440 float() buf_create (DP_QC_STRINGBUFFERS)
+VM_buf_del,                                            // #441 void(float bufhandle) buf_del (DP_QC_STRINGBUFFERS)
+VM_buf_getsize,                                        // #442 float(float bufhandle) buf_getsize (DP_QC_STRINGBUFFERS)
+VM_buf_copy,                                   // #443 void(float bufhandle_from, float bufhandle_to) buf_copy (DP_QC_STRINGBUFFERS)
+VM_buf_sort,                                   // #444 void(float bufhandle, float sortpower, float backward) buf_sort (DP_QC_STRINGBUFFERS)
+VM_buf_implode,                                        // #445 string(float bufhandle, string glue) buf_implode (DP_QC_STRINGBUFFERS)
+VM_bufstr_get,                                 // #446 string(float bufhandle, float string_index) bufstr_get (DP_QC_STRINGBUFFERS)
+VM_bufstr_set,                                 // #447 void(float bufhandle, float string_index, string str) bufstr_set (DP_QC_STRINGBUFFERS)
+VM_bufstr_add,                                 // #448 float(float bufhandle, string str, float order) bufstr_add (DP_QC_STRINGBUFFERS)
+VM_bufstr_free,                                        // #449 void(float bufhandle, float string_index) bufstr_free (DP_QC_STRINGBUFFERS)
 NULL,                                                                  // #450
 VM_iscachedpic,                                        // #451 draw functions...
 VM_precache_pic,                                       // #452
@@ -1277,7 +1279,7 @@ VM_gecko_keyevent,                                // #490 float gecko_keyevent( string name, float key, floa
 VM_gecko_movemouse,                            // #491 void gecko_mousemove( string name, float x, float y )
 VM_gecko_resize,                                       // #492 void gecko_resize( string name, float w, float h )
 VM_gecko_get_texture_extent,   // #493 vector gecko_get_texture_extent( string name )
-NULL,                                                                  // #494
+VM_crc16,                                              // #494 float(float caseinsensitive, string s, ...) crc16 = #494 (DP_QC_CRC16)
 NULL,                                                                  // #495
 NULL,                                                                  // #496
 NULL,                                                                  // #497
index c3292266cbe6f135ad567251d1bfee600b53a483..a5c944c732d0ba88d9f34a8d9c9986258eff8a01 100644 (file)
@@ -4453,8 +4453,8 @@ void VM_strncasecmp (void)
        }
 }
 
-// #487 float(float caseinsensitive, string s, ...) hash
-void VM_hash(void)
+// #494 float(float caseinsensitive, string s, ...) crc16
+void VM_crc16(void)
 {
        float insensitive;
        static char s[VM_STRINGTEMP_LENGTH];
index 33eedb555e2fa561e3ab138dfd69a286ae481ea8..f09e57b51b513aa7de7d1e287c5558ac33c55814 100644 (file)
@@ -404,7 +404,7 @@ void VM_wasfreed (void);
 void VM_strreplace (void);
 void VM_strireplace (void);
 
-void VM_hash(void);
+void VM_crc16(void);
 
 void VM_SetTraceGlobals(const trace_t *trace);
 
index 74e0e4785c207fff21a9aa8a52527a84b594cb20..65953bda51cdecb8bcec0332f2b67c817a3fa182 100644 (file)
@@ -147,6 +147,7 @@ char *vm_sv_extensions =
 "FTE_STRINGS "
 "DP_CON_BESTWEAPON "
 "DP_QC_STRREPLACE "
+"DP_QC_CRC16 "
 ;
 
 /*
@@ -3296,14 +3297,14 @@ VM_SV_pointsound,                               // #483 void(vector origin, string sample, float volume, fl
 VM_strreplace,                                 // #484 string(string search, string replace, string subject) strreplace (DP_QC_STRREPLACE)
 VM_strireplace,                                        // #485 string(string search, string replace, string subject) strireplace (DP_QC_STRREPLACE)
 VM_SV_getsurfacepointattribute,// #486 vector(entity e, float s, float n, float a) getsurfacepointattribute = #486;
-VM_hash,                                               // #487 float(float caseinsensitive, string s, ...) hash = #487;
+NULL,                                                  // #487
 NULL,                                                  // #488
 NULL,                                                  // #489
 NULL,                                                  // #490
 NULL,                                                  // #491
 NULL,                                                  // #492
 NULL,                                                  // #493
-NULL,                                                  // #494
+VM_crc16,                                              // #494 float(float caseinsensitive, string s, ...) crc16 = #494 (DP_QC_CRC16)
 NULL,                                                  // #495
 NULL,                                                  // #496
 NULL,                                                  // #497