mirror of https://github.com/OpenTTD/OpenTTD
(svn r17283) -Cleanup [Squirrel]: remove a few unneeded changes to squirrel code
parent
c46c0a7c86
commit
b9536e933f
|
@ -20,3 +20,4 @@ if(ARGS.len()!=0) {
|
|||
}
|
||||
print("n="+n+"\n");
|
||||
print("Ack(3,"+ n+ "):"+ Ack(3, n));
|
||||
|
||||
|
|
|
@ -558,12 +558,12 @@ SQRex *sqstd_rex_compile(const SQChar *pattern,const SQChar **error)
|
|||
#endif
|
||||
exp->_matches = (SQRexMatch *) sq_malloc(exp->_nsubexpr * sizeof(SQRexMatch));
|
||||
memset(exp->_matches,0,exp->_nsubexpr * sizeof(SQRexMatch));
|
||||
return exp;
|
||||
}
|
||||
catch (...) {
|
||||
sqstd_rex_free(exp);
|
||||
return NULL;
|
||||
}
|
||||
return exp;
|
||||
}
|
||||
|
||||
void sqstd_rex_free(SQRex *exp)
|
||||
|
|
|
@ -834,7 +834,7 @@ SQRESULT sq_getdelegate(HSQUIRRELVM v,SQInteger idx)
|
|||
}
|
||||
v->Push(SQObjectPtr(_delegable(self)->_delegate));
|
||||
break;
|
||||
default: return sq_throwerror(v,_SC("wrong type"));
|
||||
default: return sq_throwerror(v,_SC("wrong type")); break;
|
||||
}
|
||||
return SQ_OK;
|
||||
|
||||
|
|
Loading…
Reference in New Issue