Skip to content

Commit

Permalink
app_sqlang: typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dilyanpalauzov authored and miconda committed Mar 30, 2023
1 parent 909e339 commit fe06f13
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions src/modules/app_sqlang/app_sqlang_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ static int ki_app_sqlang_dostring(sip_msg_t *msg, str *script)
}
if(!sqlang_sr_initialized())
{
LM_ERR("sqlang env not intitialized");
LM_ERR("sqlang env not initialized");
return -1;
}
memcpy(_sqlang_buf_stack[0], script->s, script->len);
Expand Down Expand Up @@ -245,7 +245,7 @@ static int ki_app_sqlang_dofile(sip_msg_t *msg, str *script)
}
if(!sqlang_sr_initialized())
{
LM_ERR("sqlang env not intitialized");
LM_ERR("sqlang env not initialized");
return -1;
}
memcpy(_sqlang_buf_stack[0], script->s, script->len);
Expand Down Expand Up @@ -278,7 +278,7 @@ static int ki_app_sqlang_runstring(sip_msg_t *msg, str *script)
}
if(!sqlang_sr_initialized())
{
LM_ERR("sqlang env not intitialized");
LM_ERR("sqlang env not initialized");
return -1;
}
memcpy(_sqlang_buf_stack[0], script->s, script->len);
Expand Down Expand Up @@ -309,7 +309,7 @@ static int w_app_sqlang_run(struct sip_msg *msg, char *func, char *p1, char *p2,
str s;
if(!sqlang_sr_initialized())
{
LM_ERR("sqlang env not intitialized");
LM_ERR("sqlang env not initialized");
return -1;
}
if(fixup_get_svalue(msg, (gparam_p)func, &s)<0)
Expand Down
2 changes: 1 addition & 1 deletion src/modules/app_sqlang/doc/app_sqlang_admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
Set the path to the SQLang file to be loaded at startup. Then you
can use sqlang_run(function, params) to execute a function from the
script at runtime. If you use it for KEMI configuration,
then it has to include the requited functions.
then it has to include the required functions.
</para>
<para>
<emphasis>
Expand Down
2 changes: 1 addition & 1 deletion src/modules/app_sqlang/squirrel/sqstdlib/sqstdrex.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ static const SQChar *sqstd_rex_matchnode(SQRex* exp,SQRexNode *node,const SQChar
case OP_MB:
{
SQInteger cb = node->left; //char that opens a balanced expression
if(*str != cb) return NULL; // string doesnt start with open char
if(*str != cb) return NULL; // string doesn't start with open char
SQInteger ce = node->right; //char that closes a balanced expression
SQInteger cont = 1;
const SQChar *streol = exp->_eol;
Expand Down
6 changes: 3 additions & 3 deletions src/modules/app_sqlang/squirrel/squirrel/sqvm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1027,7 +1027,7 @@ bool SQVM::Execute(SQObjectPtr &closure, SQInteger nargs, SQInteger stackbase,SQ
traps -= ci->_etraps;
if(sarg1 != MAX_FUNC_STACKSIZE) _Swap(STK(arg1),temp_reg);//STK(arg1) = temp_reg;
}
else { Raise_Error(_SC("trying to yield a '%s',only genenerator can be yielded"), GetTypeName(ci->_generator)); SQ_THROW();}
else { Raise_Error(_SC("trying to yield a '%s', only generator can be yielded"), GetTypeName(ci->_generator)); SQ_THROW();}
if(Return(arg0, arg1, temp_reg)){
assert(traps == 0);
outres = temp_reg;
Expand All @@ -1037,7 +1037,7 @@ bool SQVM::Execute(SQObjectPtr &closure, SQInteger nargs, SQInteger stackbase,SQ
}
continue;
case _OP_RESUME:
if(sq_type(STK(arg1)) != OT_GENERATOR){ Raise_Error(_SC("trying to resume a '%s',only genenerator can be resumed"), GetTypeName(STK(arg1))); SQ_THROW();}
if(sq_type(STK(arg1)) != OT_GENERATOR){ Raise_Error(_SC("trying to resume a '%s', only generator can be resumed"), GetTypeName(STK(arg1))); SQ_THROW();}
_GUARD(_generator(STK(arg1))->Resume(this, TARGET));
traps += ci->_etraps;
continue;
Expand Down Expand Up @@ -1409,7 +1409,7 @@ SQInteger SQVM::FallBackSet(const SQObjectPtr &self,const SQObjectPtr &key,const
if(_table(self)->_delegate) {
if(Set(_table(self)->_delegate,key,val,DONT_FALL_BACK)) return FALLBACK_OK;
}
//keps on going
//keeps on going
case OT_INSTANCE:
case OT_USERDATA:{
SQObjectPtr closure;
Expand Down

0 comments on commit fe06f13

Please sign in to comment.