Commit Graph

45 Commits

Author SHA1 Message Date
40050fa249 fixed security vulnerabilty in regexp object 2020-06-12 23:58:44 +08:00
d2a6898355 Merge pull request #208 from atanasovdaniel/fmt_for_string_printf
Set format string for _string_printf
2020-03-11 17:05:57 +08:00
a2f325df73 Set format string for _string_printf 2019-12-01 11:34:59 +02:00
e92667c49c ios support 2019-11-16 08:21:16 -08:00
1b25d4acda Merge pull request #180 from iSLC/master
Implement sq_throwerrorf to allow formatted error messages.
2019-08-16 12:21:36 +08:00
8f04b266f5 Create package export file
The package export file allows CMake consumers to find Squirrel by
calling find_package(squirrel). This will create imported targets
for them to link against.

Create export files in both the build directory and the install
directory.
2019-07-29 22:13:13 -04:00
91bb6b28fd Make various improvements to the CMake scripts
Set minimum required to 3.4 across the board. Use standard
GNUInstallDirs variables instead of custom INSTALL_BIN_DIR and
INSTALL_LIB_DIR. Use generator expressions and commands instead of
variables when possible. Use Runtime, Development, and Libraries
components in the installation. Set up the layout of the build tree
to match the installation tree. Replace compiler-specific flags with
more general cross-platform settings when possible. Update COMPILE
with new configure and install instructions. Add alias targets.
2019-07-29 22:13:13 -04:00
ae49b12aa1 Move throwerrorf into the aux standard library. Implement pushstringf into the string library as well. 2019-04-24 21:36:52 +03:00
4ccc03fbac CMake: properly check for variables
Checking them for being defined would get the user intention wrong if they are
passed as -DDISABLE_STATIC=Off as that would still count as being defined. Just
check for the variable, which has the desired effect. An unset variable is
always false. Since these flags are options now the variables are always set,
so one cannot disable this features anymore otherwise.
2018-07-04 18:53:21 +02:00
cd6f608677 Merge pull request #111 from dunst0/patch-1
make the compiler configurable by CC variable
2018-06-27 12:24:38 +08:00
ab7243ca59 Merge branch 'master' of https://github.com/albertodemichelis/squirrel 2017-11-17 04:01:47 +08:00
d2de0ef10d fix in blob 2017-11-17 03:55:59 +08:00
d74bcec394 make this as well configureable to support more compilers 2017-11-14 11:31:33 +01:00
3c8d024bdb configurable makefile vars from command line
- OUT and INCZ can be set in command line
- DEFS can be set via CC_EXTRA_FLAGS
- use the vars in sqstdlib makefile
2017-06-26 22:45:09 +02:00
8471ad1aea Merge branch 'master' of https://github.com/albertodemichelis/squirrel 2017-04-23 04:01:16 +08:00
aa4afc5b14 Allow disable of CMake install() sections 2017-03-27 21:08:56 +01:00
d130dc5471 Add DISABLE_DYNAMIC to disable building shared libs for the case where you only want static libs. 2017-02-25 14:40:47 +00:00
be35cf850b -fixed _set method in userdata deelegates
-fixed some warnings
-sq_gettypetag doesn't set last error(it's treated as SQBool function but keeps a SQRESULT for backward compatibility)
2017-01-02 18:21:41 +08:00
795af921cc Never assume the format is actually a string.
The invoker should at least know that the value he specified is not of the correct type.
2016-11-16 10:47:29 +02:00
eeba56c81b Normalize whitespace.
Convert source files to Unix EOL mode, convert .bat files to DOS EOL
mode, de-tabify and strip trailing whitespace.
2016-08-19 13:40:31 +02:00
e0f0e180a3 add a printf function to the string stdlib, so we can avoid having to write print(format( all the time. it should be a little more lean than writing that function in lua yourself (can work entirely from scratchpad this way). 2016-05-12 11:48:52 -05:00
b589ea521d deterministically handle error in incomplete regexp escape sequence 2016-04-23 20:29:04 -05:00
160184d2dd Revert "add some stack-condition error checking to sqstdlib registration routines"
This reverts part of commit b9fc931752.
2016-04-22 22:29:22 -05:00
b9fc931752 add some stack-condition error checking to sqstdlib registration routines and to sqstd_dofile 2016-04-20 21:19:24 -05:00
175139968a error message fix: Unrecognozed ecoding 2016-04-14 18:28:56 -05:00
14ac45d285 Fix minor spelling mistakes 2016-04-03 17:48:40 +02:00
ba57d3b592 Add option to disable static targets 2016-03-17 12:44:03 +01:00
89b5c519af Improve Linux build 2016-03-16 00:01:16 +01:00
2592e50f83 Implement more flexible installation 2016-03-13 14:36:10 +01:00
dc4eb2ad3e Fix DLL installation with MSVC 2016-03-08 14:48:19 +01:00
d9ce07f065 Merge branch master 2016-03-08 13:59:33 +01:00
3090721fc6 solved annoying clang warning 2016-03-07 23:57:01 +08:00
2fb3522470 Various improvements 2016-03-06 19:43:57 +01:00
6dee69057e Silence all -Wunused-parameter warnings. 2016-03-06 16:15:13 +01:00
bf2c28b0ce Silence all -Wmissing-field-initializer warnings. 2016-03-06 16:04:32 +01:00
026671b3d5 Silence some pedantic compilation warnings. 2016-03-06 15:49:46 +01:00
b115b84dd1 escape() fix for different SQChar sizes 2016-03-06 22:00:17 +08:00
737ea798a8 added \u and \U escape sequence for UTF8,UTF16 or UCS4 characters
the escape character \x is based on sizeof(SQChar)
2016-03-05 19:29:14 +08:00
ec36322140 Improve const-correctness.
This avoids some pedantic compiler warnings and also removes any
non-shared data from the squirrel core.

Before:

  size --totals sqstdlib/*.o squirrel/*.o
     text    data     bss     dec     hex filename
   261270    3776       0  265046   40b56 (TOTALS)

After:

  size --totals sqstdlib/*.o squirrel/*.o
     text    data     bss     dec     hex filename
   265046       0       0  265046   40b56 (TOTALS)
2016-02-22 22:15:31 +01:00
0378c7016f Normalize whitespace.
Convert files to Unix EOL mode, de-tabify and strip trailing whitespace.
2016-02-15 20:51:20 +01:00
0568675561 switch to CMake build system 2016-02-02 23:25:37 +01:00
00f7a65aae Dont allow regexping off the end of a string 2016-01-24 01:15:08 +08:00
85e82ea746 Remove set of unused variables.
Add a new matching rule \m that behaves similar to lua %b, it matches a balanced open and close characters ex:
\m() <- will match a balanced pair of ( and )
\m{} <- will match a balanced pair of { and }
See lua %b for more info.
Also include a nut file as example.
2016-01-18 20:32:38 +00:00
ff7704fa46 Remove double call to an already saved value. 2016-01-18 18:16:56 +00:00
85dfe4b676 first commit 2015-12-22 03:14:21 +08:00