Normalize whitespace.
Strip trailing whitespace, de-tabify and ensure that each file ends with a newline.
This commit is contained in:
parent
9dd92a7d49
commit
00b4d3abd1
2
COMPILE
2
COMPILE
@ -83,4 +83,4 @@ DOCUMENTATION GENERATION
|
|||||||
To be able to compile the documentation, make sure that you have Python
|
To be able to compile the documentation, make sure that you have Python
|
||||||
installed and the packages sphinx and sphinx_rtd_theme. Browse into doc/
|
installed and the packages sphinx and sphinx_rtd_theme. Browse into doc/
|
||||||
and use either the Makefile for GCC-based platforms or make.bat for
|
and use either the Makefile for GCC-based platforms or make.bat for
|
||||||
Windows platforms.
|
Windows platforms.
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
version: 0.0.{build}
|
version: 0.0.{build}
|
||||||
|
|
||||||
platform:
|
platform:
|
||||||
- x86
|
- x86
|
||||||
- x64
|
- x64
|
||||||
|
|
||||||
configuration:
|
configuration:
|
||||||
- Debug
|
- Debug
|
||||||
- Release
|
- Release
|
||||||
|
|
||||||
|
@ -29,4 +29,4 @@ serialize (read) a closure and pushes it on top of the stack, the source is user
|
|||||||
:returns: a SQRESULT
|
:returns: a SQRESULT
|
||||||
:remarks: closures with free variables cannot be serialized
|
:remarks: closures with free variables cannot be serialized
|
||||||
|
|
||||||
serializes(writes) the closure on top of the stack, the destination is user defined through a write callback.
|
serializes(writes) the closure on top of the stack, the destination is user defined through a write callback.
|
||||||
|
@ -76,4 +76,4 @@ enable/disable the error callback notification of handled exceptions.
|
|||||||
:param SQCOMPILERERROR f: A pointer to the error handler function
|
:param SQCOMPILERERROR f: A pointer to the error handler function
|
||||||
:remarks: if the parameter f is NULL no function will be called when a compiler error occurs. The compiler error handler is shared between friend VMs.
|
:remarks: if the parameter f is NULL no function will be called when a compiler error occurs. The compiler error handler is shared between friend VMs.
|
||||||
|
|
||||||
sets the compiler error handler function
|
sets the compiler error handler function
|
||||||
|
@ -69,4 +69,4 @@ sets the native debug hook. When a native hook is set it overrides any previousl
|
|||||||
:param SQStackInfos * si: pointer to the SQStackInfos structure that will store the stack informations
|
:param SQStackInfos * si: pointer to the SQStackInfos structure that will store the stack informations
|
||||||
:returns: a SQRESULT.
|
:returns: a SQRESULT.
|
||||||
|
|
||||||
retrieve the calls stack informations of a ceratain level in the calls stack.
|
retrieve the calls stack informations of a ceratain level in the calls stack.
|
||||||
|
@ -24,4 +24,4 @@ runs the garbage collector and returns the number of reference cycles found (and
|
|||||||
:param HSQUIRRELVM v: the target VM
|
:param HSQUIRRELVM v: the target VM
|
||||||
:remarks: this api only works with garbage collector builds (NO_GARBAGE_COLLECTOR is not defined)
|
:remarks: this api only works with garbage collector builds (NO_GARBAGE_COLLECTOR is not defined)
|
||||||
|
|
||||||
runs the garbage collector and pushes an array in the stack containing all unreachable object found. If no unreachable object is found, null is pushed instead. This function is meant to help debug reference cycles.
|
runs the garbage collector and pushes an array in the stack containing all unreachable object found. If no unreachable object is found, null is pushed instead. This function is meant to help debug reference cycles.
|
||||||
|
@ -448,4 +448,4 @@ pops a value from the stack and sets it as a free variable of the closure at the
|
|||||||
:returns: a SQRESULT
|
:returns: a SQRESULT
|
||||||
:remarks: if the object at idx position is one of (integer, float, bool, null), the object itself is pushed instead of a weak ref.
|
:remarks: if the object at idx position is one of (integer, float, bool, null), the object itself is pushed instead of a weak ref.
|
||||||
|
|
||||||
pushes a weak reference to the object at position idx in the stack.
|
pushes a weak reference to the object at position idx in the stack.
|
||||||
|
@ -338,4 +338,4 @@ Suspends the execution of the specified vm.
|
|||||||
:param SQBool throwerror: if true, the vm will thow an exception as soon as is resumed. the exception payload must be set beforehand invoking sq_thowerror().
|
:param SQBool throwerror: if true, the vm will thow an exception as soon as is resumed. the exception payload must be set beforehand invoking sq_thowerror().
|
||||||
:returns: an HRESULT.
|
:returns: an HRESULT.
|
||||||
|
|
||||||
wake up the execution a previously suspended virtual machine
|
wake up the execution a previously suspended virtual machine
|
||||||
|
@ -26,4 +26,4 @@ All declarations needed for embedding the language in an application are in the
|
|||||||
embedding/userdata_and_userpointers.rst
|
embedding/userdata_and_userpointers.rst
|
||||||
embedding/the_registry_table.rst
|
embedding/the_registry_table.rst
|
||||||
embedding/references_from_c.rst
|
embedding/references_from_c.rst
|
||||||
embedding/debug_interface.rst
|
embedding/debug_interface.rst
|
||||||
|
@ -31,4 +31,4 @@ THE SOFTWARE.
|
|||||||
introduction.rst
|
introduction.rst
|
||||||
language.rst
|
language.rst
|
||||||
embedding_squirrel.rst
|
embedding_squirrel.rst
|
||||||
api_reference.rst
|
api_reference.rst
|
||||||
|
@ -20,4 +20,4 @@
|
|||||||
language/weak_references.rst
|
language/weak_references.rst
|
||||||
language/delegation.rst
|
language/delegation.rst
|
||||||
language/metamethods.rst
|
language/metamethods.rst
|
||||||
language/builtin_functions.rst
|
language/builtin_functions.rst
|
||||||
|
@ -371,4 +371,4 @@ Creates a new array.::
|
|||||||
|
|
||||||
Arrays can be initialized with values during the construction::
|
Arrays can be initialized with values during the construction::
|
||||||
|
|
||||||
a <- [1,"string!",[],{}] //creates an array with 4 elements
|
a <- [1,"string!",[],{}] //creates an array with 4 elements
|
||||||
|
@ -28,4 +28,4 @@ C API
|
|||||||
|
|
||||||
prints the call stack and stack contents. the function
|
prints the call stack and stack contents. the function
|
||||||
uses the print function set through(:ref:`sq_setprintfunc <sq_setprintfunc>`) to output
|
uses the print function set through(:ref:`sq_setprintfunc <sq_setprintfunc>`) to output
|
||||||
the stack dump.
|
the stack dump.
|
||||||
|
@ -210,4 +210,4 @@ C API
|
|||||||
:param SQInteger size: the size of the blob payload that has to be created
|
:param SQInteger size: the size of the blob payload that has to be created
|
||||||
:returns: a pointer to the newly created blob payload
|
:returns: a pointer to the newly created blob payload
|
||||||
|
|
||||||
creates a blob with the given payload size and pushes it in the stack.
|
creates a blob with the given payload size and pushes it in the stack.
|
||||||
|
@ -79,4 +79,4 @@ C API
|
|||||||
:returns: an SQRESULT
|
:returns: an SQRESULT
|
||||||
:remarks: The function aspects a table on top of the stack where to register the global library functions.
|
:remarks: The function aspects a table on top of the stack where to register the global library functions.
|
||||||
|
|
||||||
initialize and register the system library in the given VM.
|
initialize and register the system library in the given VM.
|
||||||
|
@ -776,8 +776,8 @@ SQRESULT sq_getobjtypetag(const HSQOBJECT *o,SQUserPointer * typetag)
|
|||||||
SQRESULT sq_gettypetag(HSQUIRRELVM v,SQInteger idx,SQUserPointer *typetag)
|
SQRESULT sq_gettypetag(HSQUIRRELVM v,SQInteger idx,SQUserPointer *typetag)
|
||||||
{
|
{
|
||||||
SQObjectPtr &o = stack_get(v,idx);
|
SQObjectPtr &o = stack_get(v,idx);
|
||||||
if (SQ_FAILED(sq_getobjtypetag(&o, typetag)))
|
if (SQ_FAILED(sq_getobjtypetag(&o, typetag)))
|
||||||
return SQ_ERROR;// this is not an error it should be a bool but would break backward compatibility
|
return SQ_ERROR;// this is not an error it should be a bool but would break backward compatibility
|
||||||
return SQ_OK;
|
return SQ_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -466,7 +466,7 @@ public:
|
|||||||
INVOKE_EXP(f);
|
INVOKE_EXP(f);
|
||||||
SQInteger op1 = _fs->PopTarget();SQInteger op2 = _fs->PopTarget();
|
SQInteger op1 = _fs->PopTarget();SQInteger op2 = _fs->PopTarget();
|
||||||
_fs->AddInstruction(op, _fs->PushTarget(), op1, op2, op3);
|
_fs->AddInstruction(op, _fs->PushTarget(), op1, op2, op3);
|
||||||
_es.etype = EXPR;
|
_es.etype = EXPR;
|
||||||
}
|
}
|
||||||
void LogicalOrExp()
|
void LogicalOrExp()
|
||||||
{
|
{
|
||||||
@ -483,7 +483,7 @@ public:
|
|||||||
if(trg != second_exp) _fs->AddInstruction(_OP_MOVE, trg, second_exp);
|
if(trg != second_exp) _fs->AddInstruction(_OP_MOVE, trg, second_exp);
|
||||||
_fs->SnoozeOpt();
|
_fs->SnoozeOpt();
|
||||||
_fs->SetIntructionParam(jpos, 1, (_fs->GetCurrentPos() - jpos));
|
_fs->SetIntructionParam(jpos, 1, (_fs->GetCurrentPos() - jpos));
|
||||||
_es.etype = EXPR;
|
_es.etype = EXPR;
|
||||||
break;
|
break;
|
||||||
}else return;
|
}else return;
|
||||||
}
|
}
|
||||||
@ -503,7 +503,7 @@ public:
|
|||||||
if(trg != second_exp) _fs->AddInstruction(_OP_MOVE, trg, second_exp);
|
if(trg != second_exp) _fs->AddInstruction(_OP_MOVE, trg, second_exp);
|
||||||
_fs->SnoozeOpt();
|
_fs->SnoozeOpt();
|
||||||
_fs->SetIntructionParam(jpos, 1, (_fs->GetCurrentPos() - jpos));
|
_fs->SetIntructionParam(jpos, 1, (_fs->GetCurrentPos() - jpos));
|
||||||
_es.etype = EXPR;
|
_es.etype = EXPR;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -726,13 +726,13 @@ exception_restore:
|
|||||||
if (type(t) == OT_CLOSURE
|
if (type(t) == OT_CLOSURE
|
||||||
&& (!_closure(t)->_function->_bgenerator)){
|
&& (!_closure(t)->_function->_bgenerator)){
|
||||||
SQObjectPtr clo = t;
|
SQObjectPtr clo = t;
|
||||||
SQInteger last_top = _top;
|
SQInteger last_top = _top;
|
||||||
if(_openouters) CloseOuters(&(_stack._vals[_stackbase]));
|
if(_openouters) CloseOuters(&(_stack._vals[_stackbase]));
|
||||||
for (SQInteger i = 0; i < arg3; i++) STK(i) = STK(arg2 + i);
|
for (SQInteger i = 0; i < arg3; i++) STK(i) = STK(arg2 + i);
|
||||||
_GUARD(StartCall(_closure(clo), ci->_target, arg3, _stackbase, true));
|
_GUARD(StartCall(_closure(clo), ci->_target, arg3, _stackbase, true));
|
||||||
if (last_top >= _top) {
|
if (last_top >= _top) {
|
||||||
_top = last_top;
|
_top = last_top;
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -1334,7 +1334,7 @@ bool SQVM::Set(const SQObjectPtr &self,const SQObjectPtr &key,const SQObjectPtr
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
case OT_USERDATA: break; // must fall back
|
case OT_USERDATA: break; // must fall back
|
||||||
default:
|
default:
|
||||||
Raise_Error(_SC("trying to set '%s'"),GetTypeName(self));
|
Raise_Error(_SC("trying to set '%s'"),GetTypeName(self));
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user