Commit Graph
964 Commits
Author SHA1 Message Date
André Althaus 33151c64d2 Fix memory leak for compiler constants
The ownership for constants is not transfered to the new function so the
constant buffer must be cleared when the compiler is finished.
2015-06-03 21:47:16 +02:00
André Althaus 0add2195f3 realloc is not a valid implementation for the wren reallocation function
The behavior of realloc for size == 0 is implementation defined.
It can return a non NULL pointer which must not be dereferenced but nether
the less must be freed. When calling the wren reallocation function with
size == 0 the memory pointed to ptr must be freed and NULL returned.
2015-06-02 20:57:41 +02:00
Bob Nystrom d66556b713 Add API tests for returning null or numbers. 2015-05-24 10:04:24 -07:00
Bob Nystrom 6c135e9941 Show number of expectations in test output. 2015-05-24 09:45:52 -07:00
Bob Nystrom bbbc85cb66 Merge pull request #273 from munificent/api-test
Add infrastructure to test embedding API.
2015-05-24 09:29:25 -07:00
Bob Nystrom 7084d6bfd5 Add infrastructure to test embedding API. 2015-05-24 09:23:30 -07:00
Bob Nystrom 852c837435 Merge pull request #268 from zeckalpha/test-example
Run examples as tests. Would have prevented #266
2015-05-23 08:32:33 -07:00
Kyle Marek-Spartz 5ad94fb4da Add ignored to walk() in test.py to clean up list of test dirs. 2015-05-21 09:17:40 -05:00
Kyle Marek-Spartz fc7612c843 Run examples as tests. Would have prevented #266 2015-05-20 10:10:40 -05:00
Bob Nystrom a114f34a2a Remove outdated set example. Fix #266. 2015-05-20 07:07:47 -07:00
Bob Nystrom 16d5c4441c Merge branch 'master' of https://github.com/munificent/wren 2015-05-19 07:00:57 -07:00
Bob Nystrom 3be0a396c4 Remove unneeded line from Makefile. 2015-05-19 07:00:44 -07:00
Bob Nystrom 9ccefc6af3 Merge pull request #262 from lluchs/syntax-example
Add syntax example file
2015-05-19 06:58:12 -07:00
Bob Nystrom e861b86563 Revert 40897f3348.
It leaks memory in the case of runtime errors.
2015-05-19 06:50:17 -07:00
Bob Nystrom be5a42dc22 Add function to grow a buffer by more than one element. 2015-05-05 06:54:13 -07:00
Bob Nystrom 40897f3348 Don't stackoverflow on recursive lists and maps. Fix #3. 2015-05-03 11:13:05 -07:00
Bob Nystrom 3f06553f7f Allow fibers as map keys. 2015-05-03 11:12:17 -07:00
Bob Nystrom fcf4197139 Add Object.same(_,_) to access built-in equality even for classes that may override ==.
Had to add a new metaclass for Object since it now has its own static method so we
can't just use Class as its metaclass. (We don't want *every* class to have a same(_,_)
static method.)
2015-05-01 07:55:28 -07:00
Bob Nystrom a907c143c8 Test referring to lowercase class name inside class.
Fix #251.
2015-04-25 10:47:55 -07:00
Bob Nystrom 47d0ba951f Merge pull request #261 from EvanHahn/patch-1
Add Evan Hahn to AUTHORS
2015-04-25 09:34:57 -07:00
Evan Hahn abdb2727e9 Add Evan Hahn to AUTHORS 2015-04-25 11:19:55 -05:00
Luchs f132f59649 Add syntax example file 2015-04-25 18:10:17 +02:00
Bob Nystrom 1c5a2b03c1 Copy edit a bit. 2015-04-25 08:48:06 -07:00
Bob Nystrom e0ceb87975 Merge branch '257-community' of git://github.com/EvanHahn/wren into EvanHahn-257-community 2015-04-25 08:39:43 -07:00
Bob Nystrom 30ccadd896 Merge branch 'master' of https://github.com/munificent/wren 2015-04-25 08:39:04 -07:00
Bob Nystrom bead9a3406 Output amalgamation into build/. 2015-04-25 08:38:45 -07:00
Evan Hahn f0d1b73fa3 Add a Community page
Closes #257.
2015-04-23 17:46:18 -05:00
Bob Nystrom f07e38f40a Merge branch 'amalgamation' of git://github.com/lluchs/wren into lluchs-amalgamation 2015-04-23 07:27:32 -07:00
Bob Nystrom 4147ef2500 Merge pull request #259 from minirop/import-keyword
added missing "import" keyword
2015-04-22 07:46:13 -07:00
Bob Nystrom 7c1ede0a3d Merge branch 'master' of https://github.com/munificent/wren 2015-04-22 07:45:39 -07:00
Bob Nystrom bfce24151e Tweak docs. 2015-04-22 07:45:20 -07:00
Bob Nystrom fea844382f Merge branch 'doc-todos' of git://github.com/gsmaverick/wren into gsmaverick-doc-todos 2015-04-22 07:22:42 -07:00
Bob Nystrom 9f30400b7d Merge pull request #258 from patriciomacadden/fix-typo
fix typo: orde => order
2015-04-22 07:21:13 -07:00
Bob Nystrom 732dd18019 Merge pull request #256 from bjorn/toList_docs
Some documentation updates
2015-04-22 07:19:00 -07:00
minirop 701e97510a added missing "import" keyword 2015-04-19 23:13:40 +02:00
Gavin Schulz c3497ee840 Code review changes. 2015-04-19 13:32:15 -07:00
Patricio Mac Adden 512500be17 fix typo: orde => order 2015-04-17 23:13:36 -03:00
Luchs 796639e371 Fix amalgamation to work with X Macro files 2015-04-16 14:45:22 +02:00
Luchs bc7bf2a09f Print LICENSE on top of the amalgamation 2015-04-16 14:45:22 +02:00
Luchs c44be6418b Add comments for file start/end 2015-04-16 14:45:22 +02:00
Luchs 9bcf31e14d Add amalgamation generation script 2015-04-16 14:45:22 +02:00
Luchs 4dad9cd688 Make builtin statics unambigous 2015-04-16 14:45:22 +02:00
Luchs 8d90333ebc #undef some macros which are redefined elsewhere 2015-04-16 14:44:41 +02:00
Luchs fdf459b1a5 Make callFunction() unique 2015-04-16 13:01:54 +02:00
Thorbjørn Lindeijer d59031d614 Some documentation updates
Some Sequence.list references remained after it was renamed to
Sequence.toList.
2015-04-06 17:21:32 +02:00
Bob Nystrom e4f3072460 Merge branch 'master' of https://github.com/munificent/wren 2015-04-06 06:53:59 -07:00
Bob Nystrom ef06eed680 Minor clean-ups. 2015-04-06 06:53:53 -07:00
Bob Nystrom 94f7993bd2 Merge pull request #255 from patriciomacadden/add-myself-to-authors
Add myself to AUTHORS
2015-04-06 06:45:11 -07:00
Patricio Mac Adden 6d2cbcf3b6 Add myself to AUTHORS 2015-04-05 19:52:12 -03:00
Gavin Schulz d0bebbd380 Add docs for fiber.call. 2015-04-04 16:50:40 -07:00