Skip to content

Commit

Permalink
Squashed 'extlibs/squirrel/' changes from c52b25d..f92bc29
Browse files Browse the repository at this point in the history
f92bc29 fixed version number in doc
3129237 changed copyright year
27a7f4b Merge branch 'master' of https://github.com/albertodemichelis/squirrel
23a0620 check max member count in class
4683c56 checks for max member count for classes
1bd49c2 fix in new bind env
a0d8bde changed version in README
420ff42 updated readme and Co.
8d57d60 sq_getinstanceup adds throwerror parameter
e3519a3 3.2 in header
d1f5475 some doc updates and fixes
d7c9103 Merge branch 'newbindenv'
8700954 inline bindenv
cf05167 Merge pull request #228 from GaijinEntertainment/fix-temp-sqobjectptr
b4f600e Fix creating unnecessary temporary object with refcount
a217216 Merge pull request #209 from atanasovdaniel/split
9111578 Merge pull request #222 from GMScribe/master
06b394a Fixed global swap2() providing incorrect results
40050fa fixed security vulnerabilty in regexp object
0c5d01a Merge branch 'master' of https://github.com/albertodemichelis/squirrel
7dd0153 added security fix in array.sort() when cmp function resizes the array
19442ab Merge pull request #201 from atanasovdaniel/err_on_badcall
d2a6898 Merge pull request #208 from atanasovdaniel/fmt_for_string_printf
76fa893 Merge pull request #211 from rajkosto/master
34412db Merge pull request #213 from RobLoach/patch-1
a25d431 Merge pull request #204 from jet082/master
03341c7 docs: Add FreeBSD to supported platforms
5219039 Fix build when SQUSEDOUBLE is defined
0a59e99 Add optional argument 'skipempty' to split function
a2f325d Set format string for _string_printf
98aef14 Merge pull request #206 from linuxmaniac/vseva/fix_205
7a973ad fix compilation warning
e92667c ios support
62f2d4a Raise error if called object is not callable
9dcf74f Merge pull request #149 from VasiliyRyabtsev/null-to-string
2aa00f4 Merge pull request #198 from nikolas/patch-4
31611a8 Spelling fix in sqcompiler error
e26f40b Merge pull request #191 from nikolas/patch-3
cbfbb60 SQVM::dumpstack: fix WEAKREF typo
1b25d4a Merge pull request #180 from iSLC/master
260412d Merge pull request #188 from nikolas/remove-unnecessary-assignments
e9b990b Merge pull request #189 from nikolas/patch-1
d75133e Merge pull request #190 from nikolas/patch-2
10b828c Fix typo in error message: delagate -> delegate
186e722 Fix docs typo: trough -> through
89ecaa6 sqfuncstate: Remove some unnecessary assignments
3b83758 Merge pull request #187 from kyleedwardsny/cmake-improvements
8f04b26 Create package export file
91bb6b2 Make various improvements to the CMake scripts
ae49b12 Move throwerrorf into the aux standard library. Implement pushstringf into the string library as well.
235fcd9 The number returned by vsnprintf contains the actual number of characters. If the message was smaller than the estimated size. It would've created a string with garbage after the null character.
bc126fd The `f` was not included in the function name. Copy>paste mistake.
454e35f Implement sq_throwerrorf to allow formatted error messages.
51137b8 fix free variables in generators
a120da4 fixed 0.0 and -0.0 comparison
ca2c74b removed unused extension from sphinx config
6bf9ab5 added table.keys() and table.values()
46f8cd6 added post call initializer syntax
a1cbf6e Merge branch 'master' of https://github.com/albertodemichelis/squirrel
8e27deb change in HISTORY
780e9c9 Merge pull request #167 from VasiliyRyabtsev/feature/reduce-initializer
9bc87ae Merge pull request #168 from VasiliyRyabtsev/feature/map-apply-extra
8e5b1e7 Allow additional parameters in array.map()/array.apply() handler
04cf1c2 Add optional initializer to array.reduce()
3c216b0 Merge pull request #163 from atanasovdaniel/doc_ignore
377c381 Ignore only doc/build folder
8888dc1 Merge pull request #160 from iSLC/master
969ca8e Refactor sq_call to get rid of dead code.
960c5da Remove unnecessary return.
68d7c7f Merge pull request oomek#1 from albertodemichelis/master
387451d Merge pull request #138 from atanasovdaniel/read_type
d794bb6 Print null as 'null', not as '(null : 0x00000000)'
ce08d63 Merge pull request #145 from VasiliyRyabtsev/master
92442f0 Merge pull request #146 from VasiliyRyabtsev/signed-args-count
665b5b1 Make params count type signed in sq_getclosureinfo()
0a5cc81 Make params count type signed in sq_getclosureinfo()
436f033 Fix typo in method names (Intruction -> Instruction)
d523a46 Merge pull request #144 from DerDakon/cmake-vars
7369288 CMake: properly set default build type
4ccc03f CMake: properly check for variables
1eaaa4b Merge pull request #143 from trofi/master
ad5411d CMakeLists.txt: explicitly declare LONG_OUTPUT_NAMES and DISABLE_STATIC
c323ecc Merge pull request #139 from todace/more_details_in_call_script
cd6f608 Merge pull request #111 from dunst0/patch-1
02b773b Merge pull request #141 from todace/easy_chaining
f4665e1 now container modification methods return object itself in all cases
b2e0767 more details in script errors on call apis
22640a1 Make 'read' parameter of SafeRead and CheckTag of type SQREADFUNC
dda695e Merge pull request #137 from PallHaraldsson/patch-1
4a8ed6a Typo e.g. "it's"
453a966 Merge pull request #119 from VasiliyRyabtsev/feature/table-filter
0be2beb Merge pull request #121 from VasiliyRyabtsev/feature/assert-message
c10a777 Add optional message text parameter for assert()
938655a Merge pull request #120 from VasiliyRyabtsev/fix/array-resize
497c8f9 Raise error for negative size in array_resize()
ee38035 Implement table.filter() default delegate in base library
249a26e Merge pull request #117 from breakin/fix/documentation-bugs
7d589eb Fix some small bugs in the documentation examples.
b00cd02 Merge pull request #114 from breakin/fix/doc-references_from_c
5460758 some doc on sq_tailcall
3835c65 some sq_type were missing
ab7243c Merge branch 'master' of https://github.com/albertodemichelis/squirrel
b89da87 fixed free variables not boxing for loop counter when a break is used
effd225 fixed \u in lexer
d2de0ef fix in blob
3c2de4b added sq_tailcall()
5c737b0 Fix errors in documentation source code
7fe2a71 Merge pull request #112 from breakin/fix/sq_newmember_pop
2fa5378 Merge pull request #113 from breakin/fix/sq_newclass_doc
26a655a Clarify that sq_newclass pushes the new class in the stack.
74cca2d Fix a bug where sq_newmember and sq_rawnewmember did not pop their arguments.
d74bcec make this as well configureable to support more compilers
6ececc2 make the compiler configurable by CC variable
a7df1b4 Merge pull request #105 from zeromus/master
31738a5 use sq_type (which already existed in the public API) instead of the identical sqtype (which was introduced by commit a3a78eec2050162c4912a5208f92b27f658976d8)
a0857ae Merge pull request #97 from miconda/master
7e72756 Merge pull request #99 from dut-lang/copyright2017
a3a78ee Merge pull request #100 from zeromus/master
57ca6c1 rename `type` macro to `sqtype`
40e994b update Copyright year 2016 to 2017
3c8d024 configurable makefile vars from command line
2186a3f Merge pull request #95 from kainjow/patch-1
5dcf698 Merge pull request #94 from mfxmfx/normalize-whitespace
304be42 Fix typo
00b4d3a Normalize whitespace.
9dd92a7 Merge pull request oomek#87 from paulsapps/ci_builds
4df9f90 Merge pull request #88 from paulsapps/fix_85
8471ad1 Merge branch 'master' of https://github.com/albertodemichelis/squirrel
a0e46fc improved stack cleanup for tailcalls
14cbc7b minor fixed assertion in compiler
c62aacd Fix gcc warning by setting the C lang version
d159bef Enable travisci and appveyor for auto building of pull requests
0bf296d Merge pull request oomek#86 from paulsapps/sq_disable_installer
5743cd5 Merge pull request oomek#84 from paulsapps/msvc_warnings
76c6716 Disable noisy MSVC warning that will never be fixed
aa4afc5 Allow disable of CMake install() sections
5b3bfb2 Merge pull request oomek#79 from paulsapps/master
6186e02 Merge pull request oomek#80 from jansol/submodule-fix
bdcb7cc Fix building as a git submodule.
d130dc5 Add DISABLE_DYNAMIC to disable building shared libs for the case where you only want static libs.
be35cf8 -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)
05dbbc1 Merge pull request oomek#77 from iSLC/master
795af92 Never assume the format is actually a string.
fae1cab Merge pull request oomek#73 from mfxmfx/fix-unused-arg-macro
cfd4df6 Merge pull request oomek#70 from dut-lang/issue_69
c7a0707 Merge pull request oomek#72 from mfxmfx/normalize-whitespace
701a0e4 Fix the SQ_UNUSED_ARG() macro so that is works with current gcc version.
eeba56c Normalize whitespace.
48842f0 fixing indentation error and return object delegate cycle
f3bb11e fixed typo, file indentation
36c308b Fixed code style, remove the warning from gcc issue oomek#69
bd43d37 minor documentation fixes
3019ac3 fixed VC issue with VC
5e4bceb fixed VC issue with SQ_UNUSED_ARG
17124aa Merge branch 'master' of https://github.com/albertodemichelis/squirrel
2ad9683 added rawcall
d1d28aa Merge pull request oomek#66 from msakuta/master
15e2c23 Minor spelling fix
7629853 Merge pull request oomek#65 from zeromus/master
e618271 add mechanism for configuring squirrel by #including _SQ_CONFIG_INCLUDE, if it exists
d81f7e1 fix typo in sq_writeclosure error message
7aadf19 Merge pull request oomek#63 from zeromus/master
f7cf119 Merge pull request oomek#61 from zeromus/getinteger-from-bool
a96a2f3 Merge pull request oomek#62 from allenluce/doc1
90cd4bc Documentation cleanup, part one.
ba338b1 remove spurious 'previdx' from _tostring metamethod docs
87deb68 rewrite docs for 'this' argument passing. I found some of the finer points to be confusing (I was led to believe indexing a function off an object would bindenv the object to it, but it doesnt). So I changed the language to 'immediately indexed' and then tried to elaborate that.
457f3b2 docs fix... all the builtin_functions for `function` were mislabeled as `array`?
98b5cc4 support sq_getinteger() for bools (returns SQFalse or SQTrue in the SQInteger). Useful for format("%d",mybool)
7290b1f docs & error message tidy
26ef4c4 Merge pull request oomek#54 from Dwachs/no_warning_unused
2d509d3 Merge pull request oomek#57 from zeromus/master
3b217e7 fix getstackinfos docs
3c4098d small docs fixes. small typo fixes in sqapi.cpp error messages
997c7ae Update sqapi.cpp
2e346b5 FIX: no warnings on unused arguments on non-gnu compilers
09c4e7a fix docs for 'unsigned right shift operator' to reference >>> instead of <<< ! also minor tidying in same file
4f20c88 Merge pull request oomek#47 from zeromus/printf
f441f7f small fix in sq_getstringandsize
8ca8026 Merge pull request oomek#45 from zeromus/pstring
9004743 docs for sq_getstringandssize
0961039 change sq_getpstring to sq_getstringandsize
7c0550b printf docs and other small docs tidies
e0f0e18 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).
656c6a0 add SQPString and sq_getpstring() - an easy way to retrieve strings along with their size, to avoid useless strlens later. it's named PString to suggest that it's like a pascal-style PSTring, prefixed with the length--that's basically what it is.
16ab1fd Merge branch 'master' of https://github.com/albertodemichelis/squirrel
2aef08d fixed fallback set removed some cruft
f87cd11 Merge pull request oomek#43 from zeromus/master
7bb5dd4 move TARGET and STK to sqvm.cpp instead of SQ to reduce probability of collisions in case inner headers are included
5b50a56 docs fixes and formatting
8242f5a Merge pull request oomek#40 from iSLC/master
692d495 Remove empty statement.
70afcee Merge pull request oomek#39 from zeromus/master
301db64 docs typo fixes
b589ea5 deterministically handle error in incomplete regexp escape sequence
35ab252 Merge pull request oomek#38 from zeromus/master
160184d Revert "add some stack-condition error checking to sqstdlib registration routines"
b9fc931 add some stack-condition error checking to sqstdlib registration routines and to sqstd_dofile
72135d9 SQStream should have a virtual dtor, to shut up warnings and probably for some good reason but i dont know
7305257 tidy sq_setreleasehook and sq_getreleasehook
e347779 fix various typos and incompletely apply very lightweight formatting normalization (continued)
4125aa5 Merge pull request oomek#37 from appetizermaker/master
ed23d14 Fix small mistake on sqlexer.cpp
8fb371b Merge pull request oomek#35 from zeromus/master
78b44c8 add a note to push a dummy value for sq_call when constructing an instance. this just cost me a lot of time!
b35c9e8 fix various typos and incompletely apply very lightweight formatting normalization; clarify sq_getbyhandle applies to class or instance
f8f229f Merge pull request oomek#33 from zeromus/master
1751399 error message fix: Unrecognozed ecoding
c44d568 docs typo fix: ivoked&ecoding
a70a135 clarify sq_getmemberhandle - it only works on classes. not sure what vice-versa meant
4fddb87 tidy metamethods general docs
4305796 fix metamethod _get documentation from _get(idx,val) to _get(idx)
953d9e9 fix typo in error messages: "stack overflow, cannot resize stack while in  a metamethod"
2f6419f clarify sq_cmp
9218082 defferentieate -> differentiate
d02fa17 small typo and grammar fixes
98bb798 Merge pull request oomek#32 from Eiyeron/gitignore
7233a7c Added a gitignore to hide the build/doc folders.
9f4407d Merge pull request oomek#31 from Eiyeron/upstream_docfix
d9d0ebb Small mistyping fixes
558a4f4 Small format fix
d2e93dc Added some infos on how to build the documentation.
6db0aa2 Merge pull request oomek#30 from FabianWolff/master
14ac45d Fix minor spelling mistakes

git-subtree-dir: extlibs/squirrel
git-subtree-split: f92bc298784ceea459b12e2de33bdff672bfeb83
  • Loading branch information
substring committed Apr 30, 2023
1 parent 983f3dc commit c82531c
Show file tree
Hide file tree
Showing 90 changed files with 1,949 additions and 1,208 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Folders created at compilation
bin/
lib/

# Folders created at documentation generation
doc/build/
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
language: cpp
compiler:
- gcc
- clang

# Travis VMs are 64-bit but we compile both for 32 and 64 bit. To enable the
# 32-bit builds to work, we need gcc-multilib.
addons:
apt:
packages:
- gcc-multilib
- g++-multilib

# Enable container-based builds.
sudo: false

script: mkdir build && cd build && cmake .. && make -j2
139 changes: 90 additions & 49 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,68 +1,109 @@
if(MSVC)
cmake_minimum_required(VERSION 3.4)
else()
cmake_minimum_required(VERSION 2.8)
endif()

set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}" CACHE PATH "")
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "")

project(squirrel C CXX)
cmake_minimum_required(VERSION 3.4)
project(squirrel VERSION 3.1 LANGUAGES C CXX)

include_directories(${CMAKE_SOURCE_DIR}/include)
option(DISABLE_STATIC "Avoid building/installing static libraries.")
option(LONG_OUTPUT_NAMES "Use longer names for binaries and libraries: squirrel3 (not sq).")

if(CMAKE_COMPILER_IS_GNUCXX)
set(SQ_FLAGS -fno-exceptions -fno-strict-aliasing -Wall -Wextra -pedantic -Wcast-qual)
if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release")
endif ()

if(CMAKE_BUILD_TYPE STREQUAL "Release")
set(SQ_FLAGS ${SQ_FLAGS} -O3)
elseif(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
set(SQ_FLAGS ${SQ_FLAGS} -O3 -g)
elseif(CMAKE_BUILD_TYPE STREQUAL "MinSizeRel")
set(SQ_FLAGS ${SQ_FLAGS} -Os)
elseif(CMAKE_BUILD_TYPE STREQUAL "Debug")
set(SQ_FLAGS ${SQ_FLAGS} -pg -pie -gstabs -g3 -Og)
endif()
include(GNUInstallDirs)

if(CMAKE_VERSION VERSION_GREATER 3)
add_compile_options(${SQ_FLAGS})
else()
add_definitions(${SQ_FLAGS})
endif()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_BINDIR}")
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}")
set(CMAKE_CXX_STANDARD 11)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-rtti -std=c++0x")
if(CMAKE_COMPILER_IS_GNUCXX)
add_compile_options(
"$<$<COMPILE_LANGUAGE:CXX>:-fno-rtti;-fno-exceptions>"
-fno-strict-aliasing
-Wall
-Wextra
-pedantic
-Wcast-qual
"$<$<CONFIG:Release>:-O3>"
"$<$<CONFIG:RelWithDebInfo>:-O3;-g>"
"$<$<CONFIG:MinSizeRel>:-Os>"
"$<$<CONFIG:Debug>:-pg;-pie;-gstabs;-g3;-Og>"
)
elseif(MSVC)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
endif()

add_subdirectory(squirrel)
add_subdirectory(sqstdlib)
add_subdirectory(sq)

if(CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions(-D_SQ64)
set(tgts)
if(NOT DISABLE_DYNAMIC)
list(APPEND tgts squirrel sqstdlib sq)
endif()
if(NOT DISABLE_STATIC)
list(APPEND tgts squirrel_static sqstdlib_static sq_static)
endif()
foreach(t ${tgts})
target_compile_definitions(${t} PUBLIC -D_SQ64)
endforeach()
endif()

if(NOT DEFINED INSTALL_BIN_DIR)
set(INSTALL_BIN_DIR bin)
if(NOT DISABLE_DYNAMIC)
set_target_properties(squirrel sqstdlib PROPERTIES SOVERSION 0 VERSION 0.0.0)
endif()

if(NOT DEFINED INSTALL_LIB_DIR)
set(INSTALL_LIB_DIR lib)
if(NOT SQ_DISABLE_INSTALLER AND NOT SQ_DISABLE_HEADER_INSTALLER)
install(FILES
include/sqconfig.h
include/squirrel.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
COMPONENT Development
)
install(FILES
include/sqstdaux.h
include/sqstdblob.h
include/sqstdio.h
include/sqstdmath.h
include/sqstdstring.h
include/sqstdsystem.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
COMPONENT Development
)
endif()

add_subdirectory(squirrel)
add_subdirectory(sqstdlib)
add_subdirectory(sq)
include(CMakePackageConfigHelpers)

if(NOT WIN32)
set_target_properties(squirrel sqstdlib PROPERTIES SOVERSION 0 VERSION 0.0.0)
endif()
write_basic_package_version_file(
"${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/cmake/squirrel/squirrel-config-version.cmake"
VERSION "${squirrel_VERSION}"
COMPATIBILITY AnyNewerVersion
)

configure_package_config_file(
"${CMAKE_CURRENT_SOURCE_DIR}/squirrel-config.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/cmake/squirrel/squirrel-config.cmake"
INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/squirrel"
)

export(EXPORT squirrel
NAMESPACE squirrel::
FILE "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/cmake/squirrel/squirrel-targets.cmake"
)

if(NOT SQ_DISABLE_INSTALLER AND NOT SQ_DISABLE_CMAKE_INSTALLER)
install(FILES
"${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/cmake/squirrel/squirrel-config-version.cmake"
"${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_INSTALL_LIBDIR}/cmake/squirrel/squirrel-config.cmake"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/squirrel"
COMPONENT Development
)

if(DEFINED INSTALL_INC_DIR)
set(SQ_PUB_HEADERS include/sqconfig.h
include/sqstdaux.h
include/sqstdblob.h
include/sqstdio.h
include/sqstdmath.h
include/sqstdstring.h
include/sqstdsystem.h
include/squirrel.h)
install(FILES ${SQ_PUB_HEADERS} DESTINATION ${INSTALL_INC_DIR})
install(EXPORT squirrel
NAMESPACE squirrel::
DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/squirrel"
FILE "squirrel-targets.cmake"
COMPONENT Development
)
endif()
27 changes: 17 additions & 10 deletions COMPILE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Squirrel 3.1 stable
Squirrel 3.2 stable
--------------------------------------------------------
What is in this distribution?

Expand Down Expand Up @@ -38,23 +38,23 @@ under Linux, type something like
$ make install
$ cd ..; rm -r build

The default installation directory will be the top source directory,
i. e. the binaries will go into bin/ and the libraries into lib/. You
can change this behavior by calling CMake like this:
The default installation directory will be /usr/local on Unix platforms,
and C:/Program Files/squirrel on Windows. The binaries will go into bin/
and the libraries into lib/. You can change this behavior by calling CMake like
this:

$ cmake .. -DCMAKE_INSTALL_PREFIX=/some/path/on/your/system

With the INSTALL_BIN_DIR and INSTALL_LIB_DIR options, the directories
With the CMAKE_INSTALL_BINDIR and CMAKE_INSTALL_LIBDIR options, the directories
the binaries & libraries will go in (relative to CMAKE_INSTALL_PREFIX)
can be specified. For instance,

$ cmake .. -DINSTALL_LIB_DIR=lib64
$ cmake .. -DCMAKE_INSTALL_LIBDIR=lib64

will install the libraries into a 'lib64' subdirectory in the top
source directory. If INSTALL_INC_DIR is set, the public header files
will be installed into the directory the value of INSTALL_INC_DIR
points to. There is no default directory - if you want only the
binaries and no headers, just don't specify INSTALL_INC_DIR, and no
source directory. The public header files will be installed into the directory
the value of CMAKE_INSTALL_INCLUDEDIR points to. If you want only the
binaries and no headers, just set -DSQ_DISABLE_HEADER_INSTALLER=ON, and no
header files will be installed.

Under Windows, it is probably easiest to use the CMake GUI interface,
Expand All @@ -77,3 +77,10 @@ for 64 bits systems
VISUAL C++ USERS
.........................................................
Open squirrel.dsw from the root project directory and build(dho!)

DOCUMENTATION GENERATION
.........................................................
To be able to compile the documentation, make sure that you have Python
installed and the packages sphinx and sphinx_rtd_theme. Browse into doc/
and use either the Makefile for GCC-based platforms or make.bat for
Windows platforms.
2 changes: 1 addition & 1 deletion COPYRIGHT
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (c) 2003-2016 Alberto Demichelis
Copyright (c) 2003-2022 Alberto Demichelis

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 21 additions & 0 deletions HISTORY
Original file line number Diff line number Diff line change
@@ -1,3 +1,24 @@
***version 3.2 stable***
-added new inline bind env syntax for closures
-added sq_tailcall
-added rawcall keyword
-added post call initializer syntax
-added table.keys() and table.values()
-added table.filter()
-added skipempty in split()
-additional parameters in array.map() and array.apply()
-additional optional initializer in array.reduce()
-added sqstd_pushstringf and sqstd_throwerrorf
-closure.call() is now a "native tailcall" and the invoked function can now be suspended
-fixed sq_newmember and sq_rawnewmember properly pop parameters
-fixed capturing free variable on for loop counter before a break statement
-fixed \u in lexer
-various bugfixes
-sq_gettypetag doesn't set last error(it's treated as SQBool function but keeps a SQRESULT for backward compatibility)
-fixed _set method in userdata delegates
-fixed some warnings

***2016-03-27 ***
***version 3.1 stable***
-added slice range for tolower and toupper
-added startswith() and endswith() in string lib
Expand Down
5 changes: 3 additions & 2 deletions README
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
The programming language SQUIRREL 3.1 stable
The programming language SQUIRREL 3.2 stable

--------------------------------------------------
This project has successfully been compiled and run on
* Windows (x86 and amd64)
* Linux (x86, amd64 and ARM)
* Illumos (x86 and amd64)
* FreeBSD (x86 and ARM)

The following compilers have been confirmed to be working:
MS Visual C++ 6.0 (all on x86 and amd64)
7.0 |
7.1 v
8.0
9.0
10.0
10.0
12.0 ---
MinGW gcc 3.2 (mingw special 20020817-1)
Cygnus gcc 3.2
Expand Down
28 changes: 28 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: 0.0.{build}

platform:
- x86
- x64

configuration:
- Debug
- Release

clone_folder: c:\sq

before_build:
- mkdir build
- cd build
- call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" %platform%
- echo %platform%
- if %platform%==X64 (cmake .. -G "Visual Studio 14 2015 Win64")
- if %platform%==x86 (cmake .. -G "Visual Studio 14 2015")

build_script:
- cmake --build . --config %configuration% -- /logger:"C:\Program Files\AppVeyor\BuildAgent\Appveyor.MSBuildLogger.dll"

artifacts:
- path: build\*\%configuration%\*.exe
- path: build\*\%configuration%\*.dll

test: off
Loading

0 comments on commit c82531c

Please sign in to comment.