From: divverent Date: Sat, 19 Jan 2008 08:26:00 +0000 (+0000) Subject: rename VM_hash to VM_crc16, and the extension to DP_QC_CRC16. That way, it is specifi... X-Git-Tag: xonotic-v0.1.0preview~2528 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=3145bd58acc381118dbb40744a1794d51036f3b8;p=xonotic%2Fdarkplaces.git rename VM_hash to VM_crc16, and the extension to DP_QC_CRC16. That way, it is specified that it has to be this specific hash function. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7980 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/clvm_cmds.c b/clvm_cmds.c index 1de807cb..aec8cbee 100644 --- a/clvm_cmds.c +++ b/clvm_cmds.c @@ -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 diff --git a/mvm_cmds.c b/mvm_cmds.c index 71e59ab2..be46b03b 100644 --- a/mvm_cmds.c +++ b/mvm_cmds.c @@ -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 diff --git a/prvm_cmds.c b/prvm_cmds.c index c3292266..a5c944c7 100644 --- a/prvm_cmds.c +++ b/prvm_cmds.c @@ -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]; diff --git a/prvm_cmds.h b/prvm_cmds.h index 33eedb55..f09e57b5 100644 --- a/prvm_cmds.h +++ b/prvm_cmds.h @@ -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); diff --git a/svvm_cmds.c b/svvm_cmds.c index 74e0e478..65953bda 100644 --- a/svvm_cmds.c +++ b/svvm_cmds.c @@ -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