John Benediktsson
e654e4afd9
Using "same?" in more places.
2012-07-21 10:22:44 -07:00
John Benediktsson
7104c2d7b9
using the new H{ } make.
2012-07-19 09:50:09 -07:00
Doug Coleman
9c954c305d
cocoa.plists: Remove duplicate using.
2012-06-22 13:47:17 -07:00
John Benediktsson
7f89878537
cocoa.plists: import cocoa to fix bootstrap issue.
2012-04-16 12:06:42 -07:00
Joe Groff
eee483654a
use radix literals
2011-11-23 19:03:40 -08:00
Doug Coleman
c5c8c3b516
cocoa.messages: Apply mrjbq's patch to show the name of the cooca function in sender stubs. rename 'method' in stack effects to 'signature' since we are passing an array with the return value and arguments, not the method.
2011-11-21 16:38:16 -08:00
John Benediktsson
f2741b34a4
Eliminate duplicate syntax for stack effects "(" no longer drops and is identical to the old "((", which is now removed.
2011-10-18 13:19:39 -07:00
Doug Coleman
300138eb4d
Refactor the lexer/parser to expose friendlier words for scanning tokens. The preferred top-level words now throw an exception on EOF.
...
CREATE -> scan-new
CREATE-CLASS -> scan-new-class
CREATE-WORD -> scan-new-word
CREATE-GENERIC -> scan-new-generic
scan -> (scan-token)
scan-token now throws on eof
(scan-word) returns word/number/f
scan-word now throws on eof
scan-word-name expects a non-number
Fixes #183 .
Fixes #209 .
2011-09-29 11:28:28 -07:00
John Benediktsson
0e3d598e69
specialized-arrays: performed some cleanup.
...
Specifically,
• Created >c-array to be replacement for >T-array.
• Created cast-array to be generic replacement for all T-array-cast words.
• Created c-array@ to be generic replacement for T-array@ words.
• Replaced usages of <T-array> with T <c-array>
• Replaced usages of <direct-T-array> with T <c-direct-array>
• Replaced usages of >T-array with T >c-array
• Replaced usages of T-array-cast with T cast-array
• Replaced usages of malloc-T-array with T malloc-array.
• Removed malloc-T-array.
• Removed T-array-cast.
• Removed T-array@.
• Removed >T-array.
I also added (but didn't change any code to use):
• T c-array-type, returns T-array
• T c-array?, returns T-array?
• c-array{ T ... }, returns T-array{ ... }
Bootstraps just find on Mac OS X. Also `load-all test-all` works for me.
2011-09-26 11:37:51 -07:00
Joe Groff
fe856c3f71
cocoa.runtime: remove bindings to obsolete objc runtime functions
2011-09-11 16:45:44 -07:00
Slava Pestov
9e8d98a3c7
cocoa.subclassing: sometimes, compiled Cocoa method bodies would not be updated when words were redefined. Fixes #66
2011-08-28 22:56:58 -07:00
Slava Pestov
afc3681fd1
cocoa: clean up tests
2011-08-28 22:20:39 -07:00
Slava Pestov
653efed15f
cocoa.plists: fix for recent change to cocoa binding: char* returns are now treated like void* and not like c-string
2011-08-28 22:19:50 -07:00
Joe Groff
3757210244
Merge remote-tracking branch 'Blei/gtk-image-loader'
...
Conflicts:
basis/alien/enums/enums-tests.factor
basis/alien/enums/enums.factor
basis/alien/parser/parser.factor
basis/gdk/pixbuf/ffi/ffi.factor
basis/glib/ffi/ffi.factor
basis/tools/deploy/shaker/shaker.factor
basis/ui/backend/gtk/gtk.factor
basis/windows/nt/nt.factor
2011-08-27 14:07:18 -07:00
John Benediktsson
248b0df6fc
Spelling fixes to documentation.
2011-08-26 16:20:31 -07:00
Slava Pestov
2474fb5dac
Update code for brave new world where alien.parser doesn't special-case void, and instead looks it up like any other word
2010-08-15 02:32:13 -07:00
Slava Pestov
7d792778f5
FFI rewrite part 7: compile callback bodies with the optimizing compiler
2010-07-28 00:49:26 -04:00
Philipp Brüschweiler
d328935498
Merge remote branch 'origin/native-image-loader' into gtk-image-loader
2010-07-17 11:26:45 +02:00
Slava Pestov
cf6b910c9f
alien.data: remove second quotation parameter from with-out-parameters, now all values are copied properly and calling 'clone' on structs in this quotation is not necessary
2010-07-16 17:32:05 -04:00
Joe Groff
6422a85faa
Merge branch 'master' of http://factorcode.org/git/factor into native-image-loader
2010-07-07 13:09:41 -07:00
Slava Pestov
b0cfc34b3a
cocoa.subclassing: cleaner CLASS: syntax; ui.backend.cocoa: ignore events delivered after window closed to fix FEP (reported by Doug Coleman)
2010-07-06 19:02:52 -04:00
Slava Pestov
736530766e
cocoa.subclassing: new METHOD: syntax cleans up class definitions
2010-07-06 17:59:35 -04:00
Slava Pestov
69d0a3ce9b
Remove Cocoa exception handling support since it no longer works
2010-07-06 17:48:37 -04:00
Slava Pestov
8bbb0c3dbe
Remove cocoa.callbacks since nothing uses it
2010-07-06 17:45:50 -04:00
Joe Groff
0e1763ac8b
cocoa.messages: return cocoa char* values as void* instead of c-string
2010-06-27 12:42:14 -07:00
Joe Groff
9689079c7e
new vocab images.cocoa: load image objects using native cocoa api
2010-06-27 12:29:21 -07:00
Slava Pestov
5d9993d46f
Updating code to use with-out-parameters
2010-05-23 03:07:47 -04:00
Slava Pestov
5a102c717d
Eliminate compiler.alien
2010-05-11 23:24:47 -04:00
Erik Charlebois
d44e470416
Remove ENUM: f and replace uses with CONSTANTs.
...
Fix bootstrap and load-all errors from enum classes.
2010-04-19 20:08:40 -07:00
Joe Groff
5aecd92c37
C-ENUM: -> ENUM:
2010-04-19 20:07:16 -07:00
Slava Pestov
7d34ede7e3
Merge branch 'master' of git://github.com/erikcharlebois/factor
2010-04-10 18:01:19 -07:00
Erik Charlebois
5e79d5ccfb
Forget to save some files for enum change
2010-04-10 00:12:59 -07:00
Joe Groff
ca9614e746
Merge branch 'master' into abi-symbols
2010-04-01 15:28:36 -07:00
Joe Groff
d951be1832
"cdecl" -> cdecl
2010-03-31 19:20:35 -07:00
Slava Pestov
64cbe8b80b
Document (free), move it out of libc.private and mention it in the "c-strings" help article (reported by Blei)
2010-03-30 17:32:51 -04:00
Joe Groff
d4a0a69eb1
generalize stack effects so we can bootstrap with the stricter stack effect checking
2010-03-08 23:38:10 -08:00
Joe Groff
21a98a0797
Merge branch 'master' of git://factorcode.org/git/factor
2010-02-23 23:53:51 -08:00
Slava Pestov
16cfa13cae
cocoa.messages: cleanup
2010-02-24 20:18:48 +13:00
Joe Groff
9186c3c682
ui: add a "system-alert" hook that can raise a system modal dialog without involving any potentially stripped gadget, io, or debugger code
2010-02-23 19:28:57 -08:00
Joe Groff
96ab4492d2
rename current string-mangling "char*" to "c-string". char* is now just a boring old pointer to char
2010-02-23 11:42:02 -08:00
Slava Pestov
f5723e5e3a
cocoa.messages: fix
2010-02-22 13:17:46 +13:00
Slava Pestov
6f5f68b923
cocoa.messages: if a class cannot be found, IMPORT: no longer fails at parse time. Instead, there will be a runtime error when the class word is executed
2010-02-21 22:27:32 +13:00
Slava Pestov
3944277d04
Fix load errors exposed by platforms.txt change
2010-02-20 13:31:09 +13:00
Slava Pestov
0aad3e6e12
vocabs.metadata: replace unportable tag with a platforms.txt file for more fine-grained control. Rename unportable tag to untested for remaining cases
2010-02-20 13:30:49 +13:00
Slava Pestov
2d57c9d815
Clean up some tags
2010-02-17 00:12:55 +13:00
Slava Pestov
0cbf9c9b50
Move compile-call and related words only meant to be used for debugging to compiler.test
2010-01-23 00:39:56 +13:00
Slava Pestov
880fb747fc
Removing integers-as-sequences
2010-01-15 07:15:33 +13:00
Slava Pestov
790674cf89
Rename kernel.private:getenv/setenv to special-object/set-special-object to mirror recent renaming on the VM side
2010-01-13 18:08:18 +13:00
Slava Pestov
08b6ebc7fa
Factor source files should not be executable
2009-11-21 17:50:43 -06:00
Doug Coleman
3323072613
Merge branch 'master' into startup
...
Conflicts:
core/bootstrap/primitives.factor
vm/run.hpp
2009-11-15 02:52:50 -06:00