Commit Graph

82 Commits (630c4d326f44d69e8964a0969bf5440aff2eacbc)

Author SHA1 Message Date
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 66147f27b4 extra: use throw-foo for ERROR: change 2015-08-13 01:56:32 -07:00
Doug Coleman 6f6007570a factor: Fix rename issues. 2015-07-19 19:56:16 -07:00
Doug Coleman 0176591527 factor: actual patch to remove ; from all c/fortran functions 2015-07-19 16:25:30 -07:00
Doug Coleman 2c257f399c factor: Rename MACRO: and MACRO: to have quot as the output in stack effects. 2015-07-18 22:16:11 -07:00
Doug Coleman 892c62e1dc factor: second stab at [ ] [ ] unit-test -> { } [ ] unit-test 2015-07-03 09:39:59 -07:00
Doug Coleman 59f3b1ea57 Revert "factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool!"
Needs a bit more work.

This reverts commit 7e54cc2824.
2015-07-02 13:47:06 -07:00
Doug Coleman 7e54cc2824 factor: rename [ ] [ ] unit-test -> { } [ ] unit-test using a refactoring tool! 2015-07-02 11:36:08 -07:00
Doug Coleman 999aa7c897 factor: clean up spaces in -tests files 2015-07-02 10:34:01 -07:00
Doug Coleman e3cb325040 factor: clean up whitespace in -docs files 2015-07-02 10:31:22 -07:00
Doug Coleman 352e5de16a core, basis, extra: Remove DOS line endings from files.
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
John Benediktsson b366a06c41 use reject instead of [ ... not ] filter. 2015-05-12 18:50:34 -07:00
John Benediktsson 45c5213a5b alien.cxx.demangle.libstdcxx: fix using list. 2014-11-21 06:57:43 -08:00
John Benediktsson 115511038d libc: removing &(free) and |(free) destructors which aren't really used. 2014-11-20 19:51:10 -08:00
Doug Coleman f9ea61bf91 basis/extra: Update last usages of <sliced-groups> to <groups>. 2013-03-23 12:08:18 -07:00
John Benediktsson 36efd95d12 alien.fortran: add a bad-fortran-abi object
Use this to represent an invalid Fortran library ABI with information about how to fix it.
Modified from patch by Joe Groff.
2012-06-20 17:16:50 -07:00
Doug Coleman 3c29b4c131 math.blas, alien.fortran: Back from beyond the grave. 2012-05-04 09:05:43 -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
Slava Pestov 75560699ea Move <ref>, deref and little-endian? from alien.c-types to alien.data, remove <c-object> 2010-12-25 16:55:36 -08:00
Doug Coleman 1f57dc326e Remove many uses of <int> and *int etc 2010-10-25 12:49:12 -05:00
Joe Groff f3f5bbfb58 new vocab alien.handles: generate integer handles to allow references to Factor objects to be passed through the FFI 2010-06-15 15:33:30 -07:00
Slava Pestov a8098e3182 specialized-arrays: rename byte-array>T-array to T-array-cast, and make it work with anything that responds to >c-ptr / byte-length 2010-05-18 23:09:34 -04:00
Joe Groff 0f028feb22 get symbols out of a dylib and map the C++ ones to their demangled names 2010-04-14 15:52:46 -07:00
Joe Groff b7307c2dd6 foundation for abi-generic demangling 2010-04-14 15:51:32 -07:00
Joe Groff 4f2fd501e4 source file for testing c++ stuff 2010-04-14 15:46:23 -07:00
Joe Groff 4f91d1fede alien.cxx.demangle.libstdcxx: better to use libstdc++ linked into VM 2010-04-14 15:11:59 -07:00
Joe Groff dcf68af105 new vocab alien.cxx.demangle.libstdcxx: name demangling for gnu abi 2010-04-14 13:16:04 -07:00
Slava Pestov 50d68c1b10 Fix input-classes of /i and mod, and add some regression tests with various reductions of the original test-case from the terrain demo 2010-01-14 18:15:51 +13:00
Joe Groff ac5d3d5652 remove SIMDS: 2009-11-26 11:15:46 -08:00
Doug Coleman 7ce4b746e5 parsed -> suffix!, add append! 2009-10-28 13:38:27 -05:00
Joe Groff 3f1b664b74 break off a "sequences.generalizations" vocab for neach, nmap, and mnmap 2009-10-22 13:31:03 -05:00
Joe Groff 21b289e836 tweak parse-c-type so data-map can parse non-c-types 2009-10-16 16:10:09 -05:00
Joe Groff a0c6af5603 let data-map take factor sequences as inputs 2009-10-16 15:29:57 -05:00
Joe Groff eb92a45152 prune dead definitions from alien.data.map 2009-10-16 12:42:57 -05:00
Joe Groff 7830082154 change data-map( ) syntax to work with c-type[symbolic-constant] types 2009-10-16 12:28:08 -05:00
Joe Groff 80151dc146 tweak alien.data.map to work around limitation in using locals in macro expansions 2009-10-15 19:36:19 -05:00
Joe Groff ac54569777 add tests that data-map compiles given a fried quot 2009-10-15 15:04:01 -05:00
Joe Groff e35614e805 renovate data-map to take any number of inputs/outputs 2009-10-14 21:50:06 -05:00
Joe Groff a67961736b data-map general-purpose binary mapping combinator 2009-10-13 22:45:17 -05:00
Joe Groff 2cf0f3e5d3 move alien.inline, alien.cxx, alien.marshall to unmaintained; nuke alien.structs 2009-09-26 20:37:42 -05:00
Joe Groff 076ab42dc3 move some allocation words that don't really have much to do with c types out of alien.c-types into a new alien.data vocab 2009-09-17 22:36:05 -05:00
Joe Groff d9c6230f43 fix more alien.inline tests 2009-09-17 11:10:06 -05:00
Joe Groff c3f0688164 more loading fixes 2009-09-17 09:55:09 -05:00
Joe Groff e02d480b43 fix alien.inline tests 2009-09-17 09:40:37 -05:00
Joe Groff 1f04ed01fe fix more ambiguities 2009-09-17 09:29:23 -05: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 965e9ba327 alien.marshall: fix unit tests 2009-08-25 05:10:41 -05:00
Slava Pestov 6106eed185 alien.marshall.syntax: don't clobber bool type in unit tests 2009-08-25 05:06:16 -05:00
Slava Pestov d63f8ed682 alien.marshall.syntax: add C-INCLUDE: <stdlib.h> to please OpenBSD x86-64 2009-07-31 19:54:11 -05:00