Richard Brooksby
e4cfbcc4aa
Updating scheme example to demonstrate mps_root_create_area rather than deprecated mps_root_create_table.
...
Copied from Perforce
Change: 189488
ServerID: perforce.ravenbrook.com
2016-03-01 15:11:39 +00:00
Richard Brooksby
4487895475
Detabifying code and restructuredtext files.
...
Copied from Perforce
Change: 189309
ServerID: perforce.ravenbrook.com
2016-02-18 19:58:13 +00:00
Richard Brooksby
66adbd8533
Bringing scheme example up to date with interface changes.
...
Copied from Perforce
Change: 189206
ServerID: perforce.ravenbrook.com
2016-02-15 23:39:24 +00:00
Richard Brooksby
aff58a3f60
Catch up merge from master sources.
...
Copied from Perforce
Change: 189130
ServerID: perforce.ravenbrook.com
2016-02-10 21:10:25 +00:00
Richard Brooksby
5ab8764d1c
Fixing typo thanks to < https://github.com/ravenbrook/mps/pull/4#issuecomment-43051451 >
2016-01-28 16:03:16 +00:00
Sam Skulls
cdb10c6e11
Fix typo
2016-01-28 16:01:52 +00:00
Richard Brooksby
1ac6033058
Catch-up merge from masters.
...
Copied from Perforce
Change: 188928
ServerID: perforce.ravenbrook.com
2016-01-20 11:04:09 +00:00
Gareth Rees
68edb16949
Need to pass sizeof(mps_word_t) - 1 for the mask argument to get the old behaviour.
...
Copied from Perforce
Change: 188317
ServerID: perforce.ravenbrook.com
2015-09-14 21:17:19 +01:00
Gareth Rees
08873c6c3a
Rename mps_root_create_reg_masked to mps_root_create_stack, and deprecate mps_root_create_reg, as suggested in review by nb < https://info.ravenbrook.com/mail/2015/09/09/16-18-10/0/ >.
...
Copied from Perforce
Change: 188312
ServerID: perforce.ravenbrook.com
2015-09-14 20:16:14 +01:00
Gareth Rees
a5806a0623
Don't call mps_definalize in the example scheme interpreter: it's not actually an optimization because of the inefficient implementation.
...
Copied from Perforce
Change: 187123
ServerID: perforce.ravenbrook.com
2014-10-02 13:49:28 +01:00
Gareth Rees
bd03fb5a46
Remove unused argument 'buckets' from scheme table_find. (this broke the xcode build on os x.)
...
Copied from Perforce
Change: 187116
ServerID: perforce.ravenbrook.com
2014-10-02 11:42:33 +01:00
Gareth Rees
466081d0f2
Must test a key for staleness with respect to a location dependency before setting it (not just before looking it up or deleting it).
...
Copied from Perforce
Change: 187079
ServerID: perforce.ravenbrook.com
2014-09-28 23:32:37 +01:00
Gareth Rees
864270a6f3
Bring xcode project up to date.
...
Fix signed/unsigned integer comparison warning in Scheme example.
Copied from Perforce
Change: 186629
ServerID: perforce.ravenbrook.com
2014-06-14 16:08:31 +01:00
Gareth Rees
cadf609fb8
Catch-up merge from master sources @186519 to branch/2014-05-17/chunk-tree.
...
Copied from Perforce
Change: 186520
ServerID: perforce.ravenbrook.com
2014-06-12 11:43:56 +01:00
Gareth Rees
4e1b1b4f7d
Synchronize stdout and stderr (for the benefit of windows).
...
Copied from Perforce
Change: 186519
ServerID: perforce.ravenbrook.com
2014-06-12 11:37:50 +01:00
Gareth Rees
46d9f74cea
Must fflush stderr too--it's buffered on windows!
...
Copied from Perforce
Change: 186517
ServerID: perforce.ravenbrook.com
2014-06-12 11:28:41 +01:00
Gareth Rees
14addd278e
Need to synchronize stdout and stdin for the benefit of windows.
...
Copied from Perforce
Change: 186516
ServerID: perforce.ravenbrook.com
2014-06-12 11:22:55 +01:00
Gareth Rees
95026201e0
Scheme-boehm also processes multiple files.
...
Copied from Perforce
Change: 186245
ServerID: perforce.ravenbrook.com
2014-05-22 15:38:02 +01:00
Gareth Rees
e3a2e6cf77
All versions of the scheme interpreter now take multiple files on the command line.
...
Integrate change 186243 to scheme-{advanced,malloc,boehm}.c.
Copied from Perforce
Change: 186244
ServerID: perforce.ravenbrook.com
2014-05-22 13:16:29 +01:00
Gareth Rees
027c2e329f
Add -m command-line option to the scheme example so that we can test it with different initial arena sizes.
...
Copied from Perforce
Change: 186243
ServerID: perforce.ravenbrook.com
2014-05-22 13:05:40 +01:00
Richard Brooksby
103e03d285
Catch up merge from masters to branch/2014-01-15/nailboard.
...
Copied from Perforce
Change: 185118
ServerID: perforce.ravenbrook.com
2014-04-01 11:43:47 +01:00
Gareth Rees
8c5bb6ae3c
Turn on -wunreachable-code for gcc and clang.
...
Remove unreachable code:
* No need to have different debug options or structured allocation classes for different platforms.
* Don't use STATISTIC_BEGIN, use STATISTIC_STAT.
* #ifdef away the unused code in zmess.c for testing ControlAlloc failure.
* Remove unused code from the example Scheme interpreter.
Copied from Perforce
Change: 185089
ServerID: perforce.ravenbrook.com
2014-03-30 14:26:02 +01:00
Gareth Rees
414905bd1d
Catch-up merge from master sources.
...
Copied from Perforce
Change: 184668
ServerID: perforce.ravenbrook.com
2014-03-07 14:59:57 +00:00
Gareth Rees
32d10cd02a
Make mps_args_done obsolete.
...
Copied from Perforce
Change: 184543
ServerID: perforce.ravenbrook.com
2014-02-26 12:47:27 +00:00
Gareth Rees
a4fa37129c
Another catch-up merge from the master sources to the nailboard branch.
...
Copied from Perforce
Change: 184407
ServerID: perforce.ravenbrook.com
2014-02-20 17:44:30 +00:00
Gareth Rees
22995f3191
Add missing mps_args_done.
...
Copied from Perforce
Change: 184404
ServerID: perforce.ravenbrook.com
2014-02-20 16:10:55 +00:00
Gareth Rees
2853c402e9
Catch-up merge from master sources to nailboard branch.
...
Copied from Perforce
Change: 184402
ServerID: perforce.ravenbrook.com
2014-02-20 14:48:39 +00:00
Gareth Rees
66eb84d55b
Avoid "discard qualifiers" error from xcode.
...
Copied from Perforce
Change: 184401
ServerID: perforce.ravenbrook.com
2014-02-20 14:45:10 +00:00
Gareth Rees
a2ca37ed53
Merge change 184399 (avoid warnings from xcode) from scheme.c to scheme-advanced.c.
...
Copied from Perforce
Change: 184400
ServerID: perforce.ravenbrook.com
2014-02-20 14:41:05 +00:00
Gareth Rees
d3cdc479a1
Avoid warnings from xcode when compiling scheme.c.
...
Copied from Perforce
Change: 184399
ServerID: perforce.ravenbrook.com
2014-02-20 14:38:53 +00:00
Gareth Rees
a2569454b6
Merge change 184105 (addition of const) from scheme.c to scheme-advanced.c.
...
Copied from Perforce
Change: 184397
ServerID: perforce.ravenbrook.com
2014-02-20 14:20:41 +00:00
Richard Brooksby
fa49628770
Adding const qualifier to various strings as required by xcode.
...
Copied from Perforce
Change: 184105
ServerID: perforce.ravenbrook.com
2014-01-24 15:07:33 +00:00
Gareth Rees
538b38202e
Naive nailboardisresrange implementation.
...
Show nails in AMCSegDescribe.
Use vectors rather than strings in airtest to avoid job003668.
Copied from Perforce
Change: 184069
ServerID: perforce.ravenbrook.com
2014-01-20 13:26:52 +00:00
Gareth Rees
ae39473509
Rename align_up and align macros in the scheme example as align_word and align_obj respectively.
...
Copied from Perforce
Change: 183392
ServerID: perforce.ravenbrook.com
2013-09-05 08:15:56 +01:00
Nick Barnes
54215a2392
Back out changes to master mps sources made inadvertently during a branch change.
...
Copied from Perforce
Change: 182891
ServerID: perforce.ravenbrook.com
2013-07-02 15:53:46 +01:00
Nick Barnes
fa3f8887c1
Branch for ap creation key development.
...
Copied from Perforce
Change: 182888
ServerID: perforce.ravenbrook.com
2013-07-02 14:48:25 +01:00
Gareth Rees
514d0bea39
Improvements to clarity of weak hash table implementation:
...
* TAG_SIZE was changed to TAG_COUNT in the code, so make the corresponding change in the manual.
* Avoid the "+= 2" hack: use TAG_COUNT(UNTAG_COUNT(...) + 1). Clarity is more important than speed here.
* Use obj_unused for unused hash table entries so that there can be no confusion between NULL meaning "unused" and NULL meaning "splatted by the garbage collector".
* Add references from the example code to the notes.
Copied from Perforce
Change: 182804
ServerID: perforce.ravenbrook.com
2013-06-19 12:59:49 +01:00
Richard Brooksby
117c85cce4
Adding the scheme example to the xcode project.
...
Adding a simple Scheme benchmark program to stress the MPS mildly.
Copied from Perforce
Change: 182711
ServerID: perforce.ravenbrook.com
2013-06-12 23:30:28 +01:00
Richard Brooksby
bb81f593cc
Additional merges accidentally left out of changelist 182578. oops.
...
Copied from Perforce
Change: 182580
ServerID: perforce.ravenbrook.com
2013-06-06 15:11:45 +01:00
Richard Brooksby
e181376dd0
Merging branch/2013-05-01/keyword-arguments to pick up keyword arguments for object formats.
...
Copied from Perforce
Change: 182562
ServerID: perforce.ravenbrook.com
2013-06-06 12:55:04 +01:00
Gareth Rees
4ab7baf69e
Prefer -pthread to -lpthread.
...
Copied from Perforce
Change: 182550
ServerID: perforce.ravenbrook.com
2013-06-05 17:46:51 +01:00
Gareth Rees
a01e768fea
Need to specify -std=c99 to get a declaration of vsnprintf.
...
Copied from Perforce
Change: 182548
ServerID: perforce.ravenbrook.com
2013-06-05 17:30:27 +01:00
Gareth Rees
83eb17a224
Need -lpthread when building the toy scheme interpreter.
...
Copied from Perforce
Change: 182547
ServerID: perforce.ravenbrook.com
2013-06-05 17:13:07 +01:00
Gareth Rees
a8d6ecdbac
Suppress "variable may be used uninitialized" warnings.
...
Copied from Perforce
Change: 182545
ServerID: perforce.ravenbrook.com
2013-06-05 16:44:35 +01:00
Gareth Rees
fa63d63b23
New public function mps_fmt_create_k creates an object format using the keyword argument interface.
...
Deprecate the format variant structures (mps_fmt_A_s, mps_fmt_B_s, mps_fmt_auto_header_s, mps_fmt_fixed_s) and the old interface (mps_fmt_create_A, mps_fmt_create_B, mps_fmt_create_auto_header, mps_fmt_create_fixed).
Copied from Perforce
Change: 182277
ServerID: perforce.ravenbrook.com
2013-05-28 16:10:08 +01:00
Gareth Rees
2ba7c5e08f
Document the way to safely destroy automatically managed pools.
...
Copied from Perforce
Change: 182166
ServerID: perforce.ravenbrook.com
2013-05-24 16:17:51 +01:00
Gareth Rees
8450a8d717
Files to ignore in example/scheme.
...
Copied from Perforce
Change: 182097
ServerID: perforce.ravenbrook.com
2013-05-22 22:22:34 +01:00
Gareth Rees
9e9c0e3990
Remove mps_arg from mps.h.
...
Use MPS_ARGS_BEGIN etc in the Scheme example and in the manual.
Use MPS_BEGIN and MPS_END instead of BEGIN and END.
The _FIELD macros don't need to be function-like macros.
Restore TODO comments in mps.h.
Scheme example compiles with -std=c89.
Copied from Perforce
Change: 181749
ServerID: perforce.ravenbrook.com
2013-05-13 21:01:38 +01:00
Gareth Rees
10c13b2a54
New macro mps_arg and revised macro mps_args_add mean that client programs no longer need to know which keyword argument goes in which field. revise documentation accordingly.
...
Copied from Perforce
Change: 181736
ServerID: perforce.ravenbrook.com
2013-05-12 17:21:03 +01:00
Gareth Rees
65583bfe92
Use keyword argument interface in scheme-advanced.c.
...
Copied from Perforce
Change: 181726
ServerID: perforce.ravenbrook.com
2013-05-11 19:36:20 +01:00