Remove misplaced squirrel_coverity patch
authorTobias Markus <tobbi@mozilla-uk.org>
Sat, 7 Mar 2015 13:13:56 +0000 (14:13 +0100)
committerTobias Markus <tobbi@mozilla-uk.org>
Sat, 7 Mar 2015 13:13:56 +0000 (14:13 +0100)
squirrel_coverity.patch [deleted file]

diff --git a/squirrel_coverity.patch b/squirrel_coverity.patch
deleted file mode 100644 (file)
index 60112e2..0000000
+++ /dev/null
@@ -1,106 +0,0 @@
-diff --git a/external/squirrel/sqstdlib/sqstdstring.cpp b/external/squirrel/sqstdlib/sqstdstring.cpp
-index 33316fa..a213135 100644
---- a/external/squirrel/sqstdlib/sqstdstring.cpp
-+++ b/external/squirrel/sqstdlib/sqstdstring.cpp
-@@ -116,6 +116,7 @@ SQRESULT sqstd_format(HSQUIRRELVM v,SQInteger nformatstringidx,SQInteger *outlen
-                               fmt[fpos++] = _SC('\0');\r
-                               }\r
- #endif\r
-+                break;\r
-                       case 'c':\r
-                               if(SQ_FAILED(sq_getinteger(v,nparam,&ti))) \r
-                                       return sq_throwerror(v,_SC("integer expected for the specified format"));\r
-diff --git a/external/squirrel/squirrel/sqfuncstate.cpp b/external/squirrel/squirrel/sqfuncstate.cpp
-index aff80e5..1667815 100644
---- a/external/squirrel/squirrel/sqfuncstate.cpp
-+++ b/external/squirrel/squirrel/sqfuncstate.cpp
-@@ -460,6 +460,7 @@ void SQFuncState::AddInstruction(SQInstruction &i)
-                               pi._arg1 = i._arg1;\r
-                               return;\r
-                       }\r
-+            break;\r
-               case _OP_SET:\r
-               case _OP_NEWSLOT:\r
-                       if(i._arg0 == i._arg3) {\r
-diff --git a/external/squirrel/squirrel/sqlexer.cpp b/external/squirrel/squirrel/sqlexer.cpp
-index 547835b..f4d4d04 100644
---- a/external/squirrel/squirrel/sqlexer.cpp
-+++ b/external/squirrel/squirrel/sqlexer.cpp
-@@ -18,7 +18,24 @@
- #define TERMINATE_BUFFER() {_longstr.push_back(_SC('\0'));}\r
- #define ADD_KEYWORD(key,id) _keywords->NewSlot( SQString::Create(ss, _SC(#key)) ,SQInteger(id))\r
\r
--SQLexer::SQLexer(){}\r
-+SQLexer::SQLexer() :\r
-+  _curtoken(0),\r
-+  _keywords(NULL),\r
-+  _reached_eof(false),\r
-+  _prevtoken(0),\r
-+  _currentline(0),\r
-+  _lasttokenline(0),\r
-+  _currentcolumn(0),\r
-+  _svalue(NULL),\r
-+  _nvalue(0),\r
-+  _fvalue(0.0),\r
-+  _readf(NULL),\r
-+  _up(NULL),\r
-+  _currdata('\0'),\r
-+  _sharedstate(NULL),\r
-+  _errfunc(NULL),\r
-+  _errtarget(NULL)\r
-+{}\r
- SQLexer::~SQLexer()\r
- {\r
-       _keywords->Release();\r
-@@ -192,6 +209,7 @@ SQInteger SQLexer::Lex()
-                       NEXT();\r
-                       if (CUR_CHAR != _SC('=')){ RETURN_TOKEN('!')}\r
-                       else { NEXT(); RETURN_TOKEN(TK_NE); }\r
-+            break;\r
-               case _SC('@'): {\r
-                       SQInteger stype;\r
-                       NEXT();\r
-@@ -203,6 +221,7 @@ SQInteger SQLexer::Lex()
-                       }\r
-                       Error(_SC("error parsing the string"));\r
-                                          }\r
-+            break;\r
-               case _SC('"'):\r
-               case _SC('\''): {\r
-                       SQInteger stype;\r
-@@ -211,6 +230,7 @@ SQInteger SQLexer::Lex()
-                       }\r
-                       Error(_SC("error parsing the string"));\r
-                       }\r
-+            break;\r
-               case _SC('{'): case _SC('}'): case _SC('('): case _SC(')'): case _SC('['): case _SC(']'):\r
-               case _SC(';'): case _SC(','): case _SC('?'): case _SC('^'): case _SC('~'):\r
-                       {SQInteger ret = CUR_CHAR;\r
-diff --git a/external/squirrel/squirrel/sqvm.cpp b/external/squirrel/squirrel/sqvm.cpp
-index de0927f..e941231 100644
---- a/external/squirrel/squirrel/sqvm.cpp
-+++ b/external/squirrel/squirrel/sqvm.cpp
-@@ -306,6 +306,7 @@ bool SQVM::ToString(const SQObjectPtr &o,SQObjectPtr &res)
-                               }\r
-                       }\r
-               }\r
-+        break;\r
-       default:\r
-               scsprintf(_sp(rsl(sizeof(void*)+20)),_SC("(%s : 0x%p)"),GetTypeName(o),(void*)_rawval(o));\r
-       }\r
-@@ -561,6 +562,7 @@ bool SQVM::FOREACH_OP(SQObjectPtr &o1,SQObjectPtr &o2,SQObjectPtr
-                       _generator(o1)->Resume(this, o3);\r
-                       _FINISH(0);\r
-               }\r
-+        break;\r
-       default: \r
-               Raise_Error(_SC("cannot iterate %s"), GetTypeName(o1));\r
-       }\r
-@@ -724,6 +726,7 @@ exception_restore:
-                                       continue;\r
-                               }\r
-                                                         }\r
-+                break;\r
-                       case _OP_CALL: {\r
-                                       SQObjectPtr clo = STK(arg1);\r
-                                       switch (type(clo)) {\r