ValveSoftware / halflife

Half-Life 1 engine based games
Other
3.7k stars 624 forks source link

Why you desided use uint32 for functions? #1608

Open mittorn opened 9 years ago

mittorn commented 9 years ago

Is there any limitations that prevent to use (void *)?

tschumann commented 9 years ago

For which functions specifically?

mittorn commented 9 years ago

https://github.com/ValveSoftware/halflife/blob/master/dlls/util.cpp#L1974

mittorn commented 9 years ago

It does not compile on 64bit platforms

JoelTroch commented 9 years ago

@mittorn That doesn't really matter because the engine is 32 bits, there are no 64 bits build.

mittorn commented 9 years ago

You are wrong.

  1. There is other engines
  2. There is 64 bit engine, but limited to server
  3. Counter-Strike has 64bit server build
$ file .steam/root/SteamApps/common/Half-Life/engine_amd64.so 
.steam/root/SteamApps/common/Half-Life/engine_amd64.so: ELF 64-bit LSB shared object, x86-64, 
$ file .steam/root/SteamApps/common/Half-Life/cstrike/dlls/cs_amd64.so 
.steam/root/SteamApps/common/Half-Life/cstrike/dlls/cs_amd64.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
tschumann commented 8 years ago

This might be relevant: http://hlcoders.valvesoftware.narkive.com/7H9gzyZm/engine-interface-changes