Fix for syntax errors
authorTobias Markus <tobbi@mozilla-uk.org>
Sun, 22 Mar 2015 00:05:35 +0000 (01:05 +0100)
committerTobias Markus <tobbi@mozilla-uk.org>
Sun, 22 Mar 2015 00:08:10 +0000 (01:08 +0100)
external/squirrel/patches/patch5.patch

index af869f5..ea7e207 100644 (file)
@@ -20,14 +20,14 @@ index 1b7a08f..af866a8 100644
                        sq_newclosure(v,f.f,0);\r
                        sq_setparamscheck(v,f.nparamscheck,f.typemask);\r
 -                      sq_newslot(v,-3,SQFalse);\r
-+                      if(SQ_FAILED(sq_newslot(v,-3,SQFalse))\r
++                      if(SQ_FAILED(sq_newslot(v,-3,SQFalse)))\r
 +                        {\r
 +                           throw "Failed to create new table slot for stream_method";\r
 +                        }\r
                        i++;\r
                }\r
 -              sq_newslot(v,-3,SQFalse);\r
-+              if(SQ_FAILED(sq_newslot(v,-3,SQFalse))\r
++              if(SQ_FAILED(sq_newslot(v,-3,SQFalse)))\r
 +                {\r
 +                  throw "Failed to create new table slot for stream";\r
 +                }\r
@@ -39,9 +39,9 @@ index 1b7a08f..af866a8 100644
                        i++;\r
                }\r
 -              sq_newslot(v,-3,SQFalse);\r
-+              if(SQ_FAILED(sq_newslot(v,-3,SQFalse))\r
++              if(SQ_FAILED(sq_newslot(v,-3,SQFalse)))\r
 +                {\r
-+                  throw "Failed to create new table slot"\r
++                  throw "Failed to create new table slot";\r
 +                }\r
                sq_pop(v,1);\r
                \r
@@ -51,7 +51,7 @@ index 1b7a08f..af866a8 100644
                        sq_setparamscheck(v,f.nparamscheck,f.typemask);\r
                        sq_setnativeclosurename(v,-1,f.name);\r
 -                      sq_newslot(v,-3,SQFalse);\r
-+                      if(SQ_FAILED(sq_newslot(v,-3,SQFalse))\r
++                      if(SQ_FAILED(sq_newslot(v,-3,SQFalse)))\r
 +                        {\r
 +                          throw "Failed to create new table slot for global";\r
 +                        }\r
@@ -67,9 +67,9 @@ index 40f78d7..b5359b6 100644
                sq_setparamscheck(v,systemlib_funcs[i].nparamscheck,systemlib_funcs[i].typemask);\r
                sq_setnativeclosurename(v,-1,systemlib_funcs[i].name);\r
 -              sq_newslot(v,-3,SQFalse);\r
-+              if(SQ_FAILED(sq_newslot(v,-3,SQFalse))\r
++              if(SQ_FAILED(sq_newslot(v,-3,SQFalse)))\r
 +              {\r
-+                // Could not create table slot\r
++                throw "Failed to create new table slot for systemlib_func";\r
 +              }\r
                i++;\r
        }\r