aboutsummaryrefslogtreecommitdiffstats
path: root/code/qcommon
diff options
context:
space:
mode:
authortma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-29 00:23:10 +0000
committertma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-10-29 00:23:10 +0000
commitcb4c62edf0edd59de1e98755557c46a61ecb6224 (patch)
tree3605464930997258071b15b53b2da8c38ba82e45 /code/qcommon
parent16e8eab042e8cecb439050923c2a56269fe856eb (diff)
downloadioquake3-aero-cb4c62edf0edd59de1e98755557c46a61ecb6224.tar.gz
ioquake3-aero-cb4c62edf0edd59de1e98755557c46a61ecb6224.zip
* Deleted code/unix/vm_x86.c - wtf was that about anyway?
* Removed HAVE_VM_NATIVE * Removed DLL_ONLY * Replace HAVE_VM_COMPILED with NO_VM_COMPILED -- this means the JIT compiler should be enabled on the OS X and VC builds now * Remove the remainder of the freetype building stuff git-svn-id: svn://svn.icculus.org/quake3/trunk@194 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/qcommon')
-rw-r--r--code/qcommon/vm.c23
-rw-r--r--code/qcommon/vm_x86.c4
2 files changed, 3 insertions, 24 deletions
diff --git a/code/qcommon/vm.c b/code/qcommon/vm.c
index 6c26d00..504e43c 100644
--- a/code/qcommon/vm.c
+++ b/code/qcommon/vm.c
@@ -543,7 +543,6 @@ vm_t *VM_Create( const char *module, long (*systemCalls)(long *),
Q_strncpyz( vm->name, module, sizeof( vm->name ) );
vm->systemCall = systemCalls;
-#if defined(HAVE_VM_NATIVE)
// never allow dll loading with a demo
if ( interpret == VMI_NATIVE ) {
if ( Cvar_VariableValue( "fs_restrict" ) ) {
@@ -562,12 +561,6 @@ vm_t *VM_Create( const char *module, long (*systemCalls)(long *),
Com_Printf( "Failed to load dll, looking for qvm.\n" );
interpret = VMI_COMPILED;
}
-#else
- if ( interpret == VMI_NATIVE ) {
- Com_Printf("Architecture doesn't support native dll's, using qvm\n");
- interpret = VMI_COMPILED;
- }
-#endif
// load the image
if( !( header = VM_LoadQVM( vm, qtrue ) ) ) {
@@ -581,7 +574,7 @@ vm_t *VM_Create( const char *module, long (*systemCalls)(long *),
// copy or compile the instructions
vm->codeLength = header->codeLength;
-#if !defined(HAVE_VM_COMPILED)
+#ifdef NO_VM_COMPILED
if(interpret >= VMI_COMPILED) {
Com_Printf("Architecture doesn't have a bytecode compiler, using interpreter\n");
interpret = VMI_BYTECODE;
@@ -747,7 +740,7 @@ long QDECL VM_Call( vm_t *vm, long callnum, ... ) {
args[12], args[13], args[14], args[15]);
} else {
#ifdef __i386__ // i386 calling convention doesn't need conversion
-#if defined(HAVE_VM_COMPILED)
+#ifndef NO_VM_COMPILED
if ( vm->compiled )
r = VM_CallCompiled( vm, (int*)&callnum );
else
@@ -766,7 +759,7 @@ long QDECL VM_Call( vm_t *vm, long callnum, ... ) {
a.args[i] = va_arg(ap, long);
}
va_end(ap);
-#if defined(HAVE_VM_COMPILED)
+#ifndef NO_VM_COMPILED
if ( vm->compiled )
r = VM_CallCompiled( vm, &a.callnum );
else
@@ -894,13 +887,3 @@ void VM_LogSyscalls( int *args ) {
fprintf(f, "%i: %li (%i) = %i %i %i %i\n", callnum, (long)(args - (int *)currentVM->dataBase),
args[0], args[1], args[2], args[3], args[4] );
}
-
-
-
-#ifdef DLL_ONLY // bk010215 - for DLL_ONLY dedicated servers/builds w/o VM
-int VM_CallCompiled( vm_t *vm, int *args ) {
- return(0);
-}
-
-void VM_Compile( vm_t *vm, vmHeader_t *header ) {}
-#endif // DLL_ONLY
diff --git a/code/qcommon/vm_x86.c b/code/qcommon/vm_x86.c
index 63b3e1b..91bb923 100644
--- a/code/qcommon/vm_x86.c
+++ b/code/qcommon/vm_x86.c
@@ -1106,7 +1106,6 @@ VM_CallCompiled
This function is called directly by the generated code
==============
*/
-#ifndef DLL_ONLY // bk010215 - for DLL_ONLY dedicated servers/builds w/o VM
int VM_CallCompiled( vm_t *vm, int *args ) {
int stack[1024];
int programCounter;
@@ -1206,6 +1205,3 @@ int VM_CallCompiled( vm_t *vm, int *args ) {
return *(int *)opStack;
}
-#endif // !DLL_ONLY
-
-