Björn Lindqvist
ddc5ece757
alien.*: frontend varargs support! #1677
...
alien-invoke gets an extra parameter indicating if the call uses varargs
or not. In 99.9% of the cases, the parameter should be f, but is t if
varargs are indicated. E.g
: do-printf ( fmt d -- st ) int f "printf" { c-string double } t alien-invoke ;
2016-08-10 21:34:37 +02:00
John Benediktsson
ceb75057da
change ERROR: words from throw-foo back to foo.
2015-08-13 16:13:05 -07:00
Doug Coleman
b6be8685c3
basis: ERROR: changes.
2015-08-13 03:20:39 -07:00
Doug Coleman
6e60c811ac
core: Rename create to create-word, create-in to create-word-in.
2015-06-08 12:47:35 -07:00
John Benediktsson
4a13633e5d
cocoa: cleanup usings.
2014-12-13 16:25:48 -08:00
John Benediktsson
88ec7ef7de
cocoa.messages: name sender-stubs by signature since they are cached that way.
2013-04-26 16:56:53 -07:00
John Benediktsson
bf83eaccfc
cocoa: maybe this is cleaner...
2013-03-30 13:44:11 -07:00
John Benediktsson
d94977ac0c
cocoa.messages: fix for deploy problem.
2013-03-30 13:05:04 -07:00
John Benediktsson
d1ae334046
ui.backend.cocoa.views: more robust respondsToSelector: (thanks @jckarter).
2013-03-29 20:34:24 -07:00
John Benediktsson
fe952b2f8e
cocoa.messages: add super-sender for completeness.
2013-03-29 14:45:41 -07:00
John Benediktsson
fe1bfe173b
ui.backend.cocoa.views: simplify and add os version check.
2013-03-29 14:29:41 -07:00
John Benediktsson
886cf4df07
cocoa.messages: some support for runtime message sending.
2013-03-29 14:18:57 -07:00
John Benediktsson
64822a7a30
cocoa.messages: use ERROR:.
2013-03-29 14:18:57 -07:00
Doug Coleman
8012f60829
cococa.messages: Rename selector.
2013-03-23 16:54:55 -07:00
Doug Coleman
e435a7aa59
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
80e1c8e3f2
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
John Benediktsson
4f42c72012
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
Philipp Brüschweiler
d2530a4365
Merge remote branch 'origin/native-image-loader' into gtk-image-loader
2010-07-17 11:26:45 +02:00
Slava Pestov
446ee6896d
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
e433b16b42
cocoa.messages: return cocoa char* values as void* instead of c-string
2010-06-27 12:42:14 -07:00
Slava Pestov
70a99e1cdb
Updating code to use with-out-parameters
2010-05-23 03:07:47 -04:00
Slava Pestov
0cde5c8fb5
Eliminate compiler.alien
2010-05-11 23:24:47 -04:00
Slava Pestov
2b68f56c89
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
Slava Pestov
fa6c8117aa
cocoa.messages: cleanup
2010-02-24 20:18:48 +13:00
Joe Groff
4cfa1a6c77
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
1b508b9c37
cocoa.messages: fix
2010-02-22 13:17:46 +13:00
Slava Pestov
0da6f78088
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
df4fb4a3ee
Removing integers-as-sequences
2010-01-15 07:15:33 +13:00
Slava Pestov
0612bc6177
Factor source files should not be executable
2009-11-21 17:50:43 -06:00
Doug Coleman
cc194416f9
Merge branch 'master' into startup
...
Conflicts:
core/bootstrap/primitives.factor
vm/run.hpp
2009-11-15 02:52:50 -06:00
Joe Groff
cc5f9ff98a
update cocoa bridge to use c-type words
2009-10-21 18:17:29 -05:00
Doug Coleman
6b6e56a179
change add-init-hook to add-startup-hook, new add-shutdown-hook word
2009-10-19 22:17:02 -04:00
Slava Pestov
7f2e2b1777
Specialized array overhaul
...
- Replace hand-written specialized-arrays.* subvocabularies with new system; instead of USE:ing specialized-arrays.T, do SPECIALIZED-ARRAY: T
- Ditto for specialized-vectors; use SPECIALIZED-VECTOR:
- io.mmap.functor: removed entirely, use <mapped-array> instead
- struct-arrays and struct-vectors have been removed because specialized arrays and vectors subsume them entirely
2009-09-09 22:33:34 -05:00
Slava Pestov
a054ec3d64
specialized-arrays.direct is no more; instead, every specialized-array.<foo> vocabulary has a <direct-T-array> constructor
2009-09-04 22:01:55 -05:00
Joe Groff
3ea364bc80
suppress "no such C type" warnings from cocoa for "?" and private apple types
2009-08-31 18:10:35 -05:00
Joe Groff
2eff554273
update cocoa and core-foundation stuff to use classes.struct and boxed malloc-arrays
2009-08-29 12:22:55 -05:00
Doug Coleman
3f3d57032b
Delete empty unit tests files, remove 1- and 1+, reorder IN: lines in a lot of places, minor refactoring
2009-08-13 19:21:44 -05:00
Slava Pestov
a0eb60906d
Fix even more usings
2009-05-16 10:45:17 -05:00
Slava Pestov
9de34ab3cd
Fix deployment of UI apps and implement various tricks to make deployed images smaller
2009-05-10 21:33:13 -05:00
Slava Pestov
919f544d64
cocoa.messages: cleanup
2009-03-23 19:25:17 -05:00
Slava Pestov
be4fb1e7d9
Move call( and execute( to core
2009-03-16 20:11:36 -05:00
Slava Pestov
ce1bc1d6ed
Fixing conflicts from stack checker changes
2009-02-24 01:21:10 -06:00
Slava Pestov
fb84b8dd6a
Merge branch 'master' into new_ui
2009-02-10 16:53:09 -06:00
Slava Pestov
9060905983
Fix bootstrap
2009-02-10 16:52:27 -06:00
Slava Pestov
ab386d01aa
Merge branch 'master' into new_ui
2009-02-10 16:23:14 -06:00
Slava Pestov
07caee3405
Update some existing code to use initialize
2009-02-10 16:16:12 -06:00
Slava Pestov
3045777f02
Fix conflict
2009-02-09 00:34:00 -06:00
Daniel Ehrenberg
b65b88364c
Updating lots of things to use call( -- )
2009-02-08 22:12:11 -06:00
Slava Pestov
dd9cf39467
Fix conflict in libc
2009-02-06 05:10:41 -06:00
Slava Pestov
d6aa376ed0
Removing now-redundant underlying>> calls
2009-02-06 04:37:28 -06:00