]> gitweb.factorcode.org Git - factor.git/log
factor.git
8 years agoFix comments to be ! not #!.
John Benediktsson [Tue, 8 Sep 2015 23:15:10 +0000 (16:15 -0700)]
Fix comments to be ! not #!.

8 years agoimages.loader: use accessors in tests.
John Benediktsson [Sun, 6 Sep 2015 15:23:17 +0000 (08:23 -0700)]
images.loader: use accessors in tests.

8 years agoimages.loader.gdiplus: fix for the call to GdipBitmapLockBits
Björn Lindqvist [Sun, 6 Sep 2015 13:15:01 +0000 (15:15 +0200)]
images.loader.gdiplus: fix for the call to GdipBitmapLockBits

GdipBitmapLockBits might trigger gc so the GpRect struct must be copied
to stable stack memory so that the collector doesn't move it.

8 years agobootstrap.image.tests: total 20 -> 18
Björn Lindqvist [Thu, 3 Sep 2015 11:18:26 +0000 (13:18 +0200)]
bootstrap.image.tests: total 20 -> 18

8 years agopeg: some cleanup.
John Benediktsson [Wed, 2 Sep 2015 20:12:14 +0000 (13:12 -0700)]
peg: some cleanup.

8 years agoVM: remove RT_EXCEPTION_HANDLER reference 1466/head
Björn Lindqvist [Wed, 2 Sep 2015 19:52:48 +0000 (21:52 +0200)]
VM: remove RT_EXCEPTION_HANDLER reference

8 years agoVM: for consistency, it is easier to put all functions in the exports file
Björn Lindqvist [Wed, 2 Sep 2015 13:04:21 +0000 (15:04 +0200)]
VM: for consistency, it is easier to put all functions in the exports file

8 years agoVM: always use undecorated names when loading ffi functions
Björn Lindqvist [Tue, 1 Sep 2015 12:40:32 +0000 (14:40 +0200)]
VM: always use undecorated names when loading ffi functions

For win32, Factor tries four different function names when loading
stdcall and fastcall functions, in case decorated names are used in the
dll. It seems to not be necessary because a dll meant for 3rd party use
will always export undecorated
names (http://blogs.msdn.com/b/oldnewthing/archive/2004/01/12/57833.aspx).

8 years agoVM: callback_entry_point() and update() can be removed
Björn Lindqvist [Mon, 31 Aug 2015 00:10:05 +0000 (02:10 +0200)]
VM: callback_entry_point() and update() can be removed

8 years agocompiler.cfg.intrinsics.misc: use the vm-special-object-offset word
Björn Lindqvist [Mon, 31 Aug 2015 00:08:01 +0000 (02:08 +0200)]
compiler.cfg.intrinsics.misc: use the vm-special-object-offset word

8 years agoVM: give the exception handling special object a real name
Björn Lindqvist [Sun, 30 Aug 2015 10:44:33 +0000 (12:44 +0200)]
VM: give the exception handling special object a real name

8 years agoVM: get rid of the odd RT_EXCEPTION_HANDLER relocation
Björn Lindqvist [Sun, 30 Aug 2015 10:21:20 +0000 (12:21 +0200)]
VM: get rid of the odd RT_EXCEPTION_HANDLER relocation

The address to the win32 relocation handler can be stored in a special
object and be accessed by jit-install-seh. Doing it that way is better
because you can remove a lot of special code related to that relocation
type.

8 years agoVM: clear commented out code
Björn Lindqvist [Sun, 30 Aug 2015 10:15:22 +0000 (12:15 +0200)]
VM: clear commented out code

8 years agocompiler.constants: remove a bunch of constants that are unused
Björn Lindqvist [Sat, 29 Aug 2015 21:49:36 +0000 (23:49 +0200)]
compiler.constants: remove a bunch of constants that are unused

(or only used by the defunkt arm backend)

8 years agoDocs: reorg of the compiler.constants docs a little
Björn Lindqvist [Sat, 29 Aug 2015 21:41:17 +0000 (23:41 +0200)]
Docs: reorg of the compiler.constants docs a little

8 years agoVM: nicer way of initializing those special objects that are aliens
Björn Lindqvist [Sat, 29 Aug 2015 21:09:01 +0000 (23:09 +0200)]
VM: nicer way of initializing those special objects that are aliens

8 years agoVM: the ffi-signal-handler and ffi-leaf-signal-handler primitives are unused
Björn Lindqvist [Sat, 29 Aug 2015 16:29:06 +0000 (18:29 +0200)]
VM: the ffi-signal-handler and ffi-leaf-signal-handler primitives are unused

8 years agopeg: fix some old docs that referred to "p1".
John Benediktsson [Wed, 2 Sep 2015 17:34:59 +0000 (10:34 -0700)]
peg: fix some old docs that referred to "p1".

8 years agoformatting: fix docs for padding and use a better example 1465/head
Jon Harper [Mon, 24 Aug 2015 20:40:39 +0000 (22:40 +0200)]
formatting: fix docs for padding and use a better example

Make the padding number coherent between the example and the docs.
Also bump it from 3 to 10 because [[3.14 "%'#5f" printf]] is "3.140000"
because the default precision is 6.

8 years agopeg.ebnf: support escaped double quote in a string
Jon Harper [Mon, 24 Aug 2015 21:41:02 +0000 (23:41 +0200)]
peg.ebnf: support escaped double quote in a string

8 years agovocabs.metadata: wrap test in a with-manifest to ensure there's a manifest. Fixes...
Doug Coleman [Fri, 28 Aug 2015 05:27:54 +0000 (22:27 -0700)]
vocabs.metadata: wrap test in a with-manifest to ensure there's a manifest. Fixes #1463.

8 years agovocabs.metadata: Fix test so it stops trying to load the wrong platform vocabulary...
Doug Coleman [Fri, 28 Aug 2015 01:51:40 +0000 (18:51 -0700)]
vocabs.metadata: Fix test so it stops trying to load the wrong platform vocabulary forever. Fixes #1463.

8 years agowindows.kernel32: add more bindings
Doug Coleman [Thu, 27 Aug 2015 18:29:26 +0000 (11:29 -0700)]
windows.kernel32: add more bindings

8 years agoVM: better way to set signal_resumable 1460/head
Björn Lindqvist [Wed, 26 Aug 2015 18:15:42 +0000 (20:15 +0200)]
VM: better way to set signal_resumable

8 years agoVM: fix jit-signal-handler-prolog/epilog to account for the home space
Björn Lindqvist [Wed, 26 Aug 2015 16:17:33 +0000 (18:17 +0200)]
VM: fix jit-signal-handler-prolog/epilog to account for the home space

Windows 64bit abi requires callers to reserve 32 bytes of home space in
the stack frame which the callee is free to clobber. Previous versions
of VS didn't compile code to take advantage of the home space so it
worked fined. VS2015 however, is using the home space which causes
registers and flags that were supposed to be saved to be
overwritten. The fix is to put a little extra empty space at the bottom
of the stack frame.

8 years agoVM: instead of enqueue_safepoint() just call set_safepoint_guard() directly
Björn Lindqvist [Wed, 26 Aug 2015 14:56:55 +0000 (16:56 +0200)]
VM: instead of enqueue_safepoint() just call set_safepoint_guard() directly

8 years agoVM: refactoring, new function get_thread_pc() and simpler logic in exception_handler()
Björn Lindqvist [Wed, 26 Aug 2015 10:00:11 +0000 (12:00 +0200)]
VM: refactoring, new function get_thread_pc() and simpler logic in exception_handler()

8 years agoVM: signal_fault_pc probably should be set here...
Björn Lindqvist [Wed, 26 Aug 2015 09:58:39 +0000 (11:58 +0200)]
VM: signal_fault_pc probably should be set here...

8 years agoVM: LEAF_FRAME_SIZE is 16 bytes on all platforms so we can simplify it
Björn Lindqvist [Mon, 24 Aug 2015 20:44:30 +0000 (22:44 +0200)]
VM: LEAF_FRAME_SIZE is 16 bytes on all platforms so we can simplify it

8 years agofactor.sh: pass CC and CXX to make script.
Doug Coleman [Wed, 26 Aug 2015 04:58:42 +0000 (04:58 +0000)]
factor.sh: pass CC and CXX to make script.

8 years agofactor.sh: add g++ to deps-apt-get. Add all() function to make sure we have both...
Doug Coleman [Wed, 26 Aug 2015 04:11:19 +0000 (04:11 +0000)]
factor.sh: add g++ to deps-apt-get. Add all() function to make sure we have both gcc and g++ (since they install separately). Add any() function to tell which of the commands it finds. Fix bug with wget/curl where the function was not meant to accept multiple arguments.

8 years agoui.gestures: update action gesture docs, thanks @jonenst!
John Benediktsson [Mon, 24 Aug 2015 17:27:00 +0000 (10:27 -0700)]
ui.gestures: update action gesture docs, thanks @jonenst!

8 years agolocals.parser: change docs for with-lambda-scope.
John Benediktsson [Mon, 24 Aug 2015 17:21:35 +0000 (10:21 -0700)]
locals.parser: change docs for with-lambda-scope.

8 years agoVM: merge memory_protection_error() with memory_signal_handler_impl()
Björn Lindqvist [Mon, 24 Aug 2015 07:47:36 +0000 (09:47 +0200)]
VM: merge memory_protection_error() with memory_signal_handler_impl()

8 years agoVM: new function set_safepoint_guard to replace the functions (un)guard_safepoint
Björn Lindqvist [Mon, 24 Aug 2015 06:58:03 +0000 (08:58 +0200)]
VM: new function set_safepoint_guard to replace the functions (un)guard_safepoint

8 years agoVM: new function set_memory_locked(true/false)
Björn Lindqvist [Mon, 24 Aug 2015 06:47:36 +0000 (08:47 +0200)]
VM: new function set_memory_locked(true/false)

it wraps the mprotect/VirtualProtect platform differences and makes it
so you can unify some windows/unix code path forks

8 years agoio.files: command line params is in the system's native encoding
Björn Lindqvist [Sat, 22 Aug 2015 16:22:28 +0000 (18:22 +0200)]
io.files: command line params is in the system's native encoding

8 years agoVM: make the debug output a little prettier
Björn Lindqvist [Fri, 21 Aug 2015 05:42:03 +0000 (07:42 +0200)]
VM: make the debug output a little prettier

8 years agoVM: the windows_image_path method is unused
Björn Lindqvist [Fri, 21 Aug 2015 05:23:05 +0000 (07:23 +0200)]
VM: the windows_image_path method is unused

8 years agowords: cleaning up word-props
Doug Coleman [Sun, 23 Aug 2015 20:48:20 +0000 (13:48 -0700)]
words: cleaning up word-props

8 years agoclasses.parser: add a create-class word.
Doug Coleman [Sun, 23 Aug 2015 20:32:24 +0000 (13:32 -0700)]
classes.parser: add a create-class word.

8 years agofactor.sh: Prefer clang to gcc and stop special-casing mac.
Doug Coleman [Mon, 24 Aug 2015 05:39:00 +0000 (22:39 -0700)]
factor.sh: Prefer clang to gcc and stop special-casing mac.
Add deps-dnf command to install all Fedora packages.
Add full-report command to see what's installed.

8 years agovocabs.metadata: add some tests.
John Benediktsson [Mon, 24 Aug 2015 01:43:36 +0000 (18:43 -0700)]
vocabs.metadata: add some tests.

8 years agovocabs.metadata: fix for error refactoring.
John Benediktsson [Mon, 24 Aug 2015 01:37:34 +0000 (18:37 -0700)]
vocabs.metadata: fix for error refactoring.

8 years agoVM: merge the compute_dlsym_toc_address() with the
Björn Lindqvist [Tue, 18 Aug 2015 07:47:11 +0000 (09:47 +0200)]
VM: merge the compute_dlsym_toc_address() with the
compute_dlsym_address() method

it makes the code slightly more cluttered but you get rid of a lot of
special casing for the ppc platform

8 years agoVM: make allot_alien() and ffi_dlsym() use cell instead of void*
Björn Lindqvist [Tue, 18 Aug 2015 06:18:41 +0000 (08:18 +0200)]
VM: make allot_alien() and ffi_dlsym() use cell instead of void*

this way we get rid of a bunch of superfluous casts

8 years agoVM: gc required here because we are iterating all objects
Björn Lindqvist [Tue, 18 Aug 2015 05:58:44 +0000 (07:58 +0200)]
VM: gc required here because we are iterating all objects

8 years agoVM: new iteration method each_object_each_slot()
Björn Lindqvist [Tue, 18 Aug 2015 05:55:36 +0000 (07:55 +0200)]
VM: new iteration method each_object_each_slot()

used by find_data_references() and dump_edges() instead of the functor structs

8 years agoVM: removing the get_datastack/retainstack/callstack primitives
Björn Lindqvist [Mon, 17 Aug 2015 09:37:24 +0000 (11:37 +0200)]
VM: removing the get_datastack/retainstack/callstack primitives

they can all be implemented using the
datastack/retainstack/callstack-for primitives and the less primitives
the better!

8 years agoui.baseline-alignment: Don't divide f by 2. Also, can't put ``0 or`` after
Doug Coleman [Wed, 19 Aug 2015 22:20:45 +0000 (17:20 -0500)]
ui.baseline-alignment: Don't divide f by 2. Also, can't put ``0 or`` after
``max-cap-height`` because it breaks something else.

8 years agoui.backend.cocoa.views: Don't throw an error on weird mouse buttons. Fixes #1453.
Doug Coleman [Wed, 19 Aug 2015 06:22:55 +0000 (23:22 -0700)]
ui.backend.cocoa.views: Don't throw an error on weird mouse buttons. Fixes #1453.

8 years agomore cleanup.
John Benediktsson [Tue, 18 Aug 2015 03:48:48 +0000 (20:48 -0700)]
more cleanup.

8 years agominor cleanup.
John Benediktsson [Tue, 18 Aug 2015 03:32:28 +0000 (20:32 -0700)]
minor cleanup.

8 years agostrings.parser: finish removing triple-strings.
John Benediktsson [Tue, 18 Aug 2015 02:49:12 +0000 (19:49 -0700)]
strings.parser: finish removing triple-strings.

parse-string => parse-short-string (on the same line)
parse-multiline-string-until => parse-full-string

8 years agofactor.cmd: git pull from http doesn't update my local master to remote's
Doug Coleman [Mon, 17 Aug 2015 18:23:11 +0000 (13:23 -0500)]
factor.cmd: git pull from http doesn't update my local master to remote's
master. using git:// instead.

8 years agoslides: make it work on windows (no gradients).
John Benediktsson [Mon, 17 Aug 2015 16:43:54 +0000 (09:43 -0700)]
slides: make it work on windows (no gradients).

8 years agoui.gadgets.editors: make it easier to set and get default-text.
John Benediktsson [Sun, 16 Aug 2015 21:29:21 +0000 (14:29 -0700)]
ui.gadgets.editors: make it easier to set and get default-text.

8 years agoui.tools.browser: use default-text to make search box prettier.
John Benediktsson [Sun, 16 Aug 2015 20:45:29 +0000 (13:45 -0700)]
ui.tools.browser: use default-text to make search box prettier.

8 years agoui.gadgets.editors: allow action-fields to have a default text.
John Benediktsson [Sun, 16 Aug 2015 20:45:16 +0000 (13:45 -0700)]
ui.gadgets.editors: allow action-fields to have a default text.

8 years agoui.tools.browser: better to remove page-color than change it.
John Benediktsson [Sun, 16 Aug 2015 19:58:38 +0000 (12:58 -0700)]
ui.tools.browser: better to remove page-color than change it.

8 years agohelp.stylesheet: add back page-color and override in ui.tools.browser.
John Benediktsson [Sun, 16 Aug 2015 19:54:56 +0000 (12:54 -0700)]
help.stylesheet: add back page-color and override in ui.tools.browser.

8 years agoprettyprint: fix for -> rename.
John Benediktsson [Sun, 16 Aug 2015 19:39:08 +0000 (12:39 -0700)]
prettyprint: fix for -> rename.

8 years agohelp: fix some html navigation styles.
John Benediktsson [Sun, 16 Aug 2015 18:38:38 +0000 (11:38 -0700)]
help: fix some html navigation styles.

8 years agohelp: make the default print prev/next links but then modify ui.tools.browser to...
John Benediktsson [Sun, 16 Aug 2015 18:32:54 +0000 (11:32 -0700)]
help: make the default print prev/next links but then modify ui.tools.browser to do what it used to do.

8 years agohelp.html: fix navigation links at top.
John Benediktsson [Sun, 16 Aug 2015 18:11:11 +0000 (11:11 -0700)]
help.html: fix navigation links at top.

8 years agoprettyprint: change -> to => for newparser and -> cocoa syntax. Alternatives are...
Doug Coleman [Sun, 16 Aug 2015 17:57:40 +0000 (10:57 -0700)]
prettyprint: change -> to => for newparser and -> cocoa syntax. Alternatives are possible.

8 years agoui.gadgets: fix help-lint warnings.
John Benediktsson [Sun, 16 Aug 2015 17:46:28 +0000 (10:46 -0700)]
ui.gadgets: fix help-lint warnings.

8 years agoui.gadgets: fix some tests.
John Benediktsson [Sun, 16 Aug 2015 17:41:16 +0000 (10:41 -0700)]
ui.gadgets: fix some tests.

8 years agoui.gadgets: move some buttons-tests to toolbar-tests.
John Benediktsson [Sun, 16 Aug 2015 17:33:52 +0000 (10:33 -0700)]
ui.gadgets: move some buttons-tests to toolbar-tests.

8 years agoui.tools.browser: remove spacer for right now...
John Benediktsson [Sun, 16 Aug 2015 17:22:11 +0000 (10:22 -0700)]
ui.tools.browser: remove spacer for right now...

...until we have the text-within-empty-label thing fixed it gives
us a little more space to type into.

8 years agogopher-ui: use ui.gadgets.toolbar.
John Benediktsson [Sun, 16 Aug 2015 15:12:37 +0000 (08:12 -0700)]
gopher-ui: use ui.gadgets.toolbar.

8 years agoui.gadgets.labeled: separate title-bar-interior with a comment why.
John Benediktsson [Sun, 16 Aug 2015 15:04:58 +0000 (08:04 -0700)]
ui.gadgets.labeled: separate title-bar-interior with a comment why.

8 years agoui.gadgets.labeled: fixed USING
nicolas-p [Sun, 16 Aug 2015 10:44:14 +0000 (12:44 +0200)]
ui.gadgets.labeled: fixed USING

8 years agoui.gadgets.theme.light: colour changes
nicolas-p [Sun, 16 Aug 2015 09:14:48 +0000 (11:14 +0200)]
ui.gadgets.theme.light: colour changes

8 years agoui.gadgets.labeled: flat colour on windows because of the gradient bug
nicolas-p [Sun, 16 Aug 2015 09:14:24 +0000 (11:14 +0200)]
ui.gadgets.labeled: flat colour on windows because of the gradient bug

8 years agoui.tools.walker: improved status text
nicolas-p [Sun, 16 Aug 2015 09:09:04 +0000 (11:09 +0200)]
ui.tools.walker: improved status text

8 years agohelp: fixed USING
nicolas-p [Sun, 16 Aug 2015 09:01:32 +0000 (11:01 +0200)]
help: fixed USING

8 years agoui.tools.browser: navigation fix
nicolas-p [Fri, 7 Aug 2015 16:36:11 +0000 (18:36 +0200)]
ui.tools.browser: navigation fix

8 years agoui.gadgets.color: changed error colour
nicolas-p [Fri, 7 Aug 2015 15:42:14 +0000 (17:42 +0200)]
ui.gadgets.color: changed error colour

Reverted a previous unintentional change

8 years agoui.theme.light: using HEXCOLOR
nicolas-p [Fri, 7 Aug 2015 15:29:10 +0000 (17:29 +0200)]
ui.theme.light: using HEXCOLOR

8 years agoRefactored prev/next buttons code
nicolas-p [Thu, 6 Aug 2015 22:05:48 +0000 (00:05 +0200)]
Refactored prev/next buttons code

8 years agohelp: Added arrows in prev/next links
nicolas-p [Thu, 30 Jul 2015 20:58:00 +0000 (22:58 +0200)]
help: Added arrows in prev/next links

8 years agoui.gadgets.scrollers: removed 1-px gap
nicolas-p [Thu, 30 Jul 2015 17:48:11 +0000 (19:48 +0200)]
ui.gadgets.scrollers: removed 1-px gap

8 years agoui.gadgets.colors moved to ui.gadgets.theme
nicolas-p [Thu, 30 Jul 2015 17:43:32 +0000 (19:43 +0200)]
ui.gadgets.colors moved to ui.gadgets.theme

8 years agoFixed USING in slots and deploy
nicolas-p [Wed, 29 Jul 2015 15:31:19 +0000 (17:31 +0200)]
Fixed USING in slots and deploy

8 years agoMoved toolbar docs
nicolas-p [Wed, 29 Jul 2015 15:30:48 +0000 (17:30 +0200)]
Moved toolbar docs

8 years agoNew buttons
nicolas-p [Sun, 26 Jul 2015 20:45:23 +0000 (22:45 +0200)]
New buttons

8 years agoToolbar button pressed background
nicolas-p [Sun, 26 Jul 2015 16:55:59 +0000 (18:55 +0200)]
Toolbar button pressed background

8 years agoui.gadgets.colors: Several colour changes
nicolas-p [Sun, 26 Jul 2015 13:33:37 +0000 (15:33 +0200)]
ui.gadgets.colors: Several colour changes

8 years agoFixed alignment issue in toolbars
nicolas-p [Sun, 26 Jul 2015 08:40:18 +0000 (10:40 +0200)]
Fixed alignment issue in toolbars

8 years agoFixed USING:
nicolas-p [Sun, 26 Jul 2015 08:38:33 +0000 (10:38 +0200)]
Fixed USING:

8 years agoRed/orange/green thread status in Walker
nicolas-p [Sun, 26 Jul 2015 07:39:18 +0000 (09:39 +0200)]
Red/orange/green thread status in Walker

John did most of the work

8 years agoSimplified toolbar code
nicolas-p [Sat, 25 Jul 2015 18:10:26 +0000 (20:10 +0200)]
Simplified toolbar code

8 years agoSmall change in roll button colour
nicolas-p [Sat, 25 Jul 2015 14:46:22 +0000 (16:46 +0200)]
Small change in roll button colour

8 years agoOther small adjustment in browser toolbar
nicolas-p [Sat, 25 Jul 2015 14:31:49 +0000 (16:31 +0200)]
Other small adjustment in browser toolbar

8 years agoSmall adjustments in browser toolbar
nicolas-p [Sat, 25 Jul 2015 13:10:04 +0000 (15:10 +0200)]
Small adjustments in browser toolbar

8 years agoRevert previous colour change
nicolas-p [Sat, 25 Jul 2015 13:05:53 +0000 (15:05 +0200)]
Revert previous colour change

Changed my mind

8 years agoImproved contents table in Inspector
nicolas-p [Sat, 25 Jul 2015 09:53:00 +0000 (11:53 +0200)]
Improved contents table in Inspector

8 years agoColour changes
nicolas-p [Sat, 25 Jul 2015 09:14:04 +0000 (11:14 +0200)]
Colour changes

8 years agoFixed compatibility issue with labeled gadget
nicolas-p [Sat, 25 Jul 2015 07:39:46 +0000 (09:39 +0200)]
Fixed compatibility issue with labeled gadget