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