Commit Graph

653 Commits (dcae1baad5deefe0fd7a47cc8ed32642c9168b6e)

Author SHA1 Message Date
Björn Lindqvist b418b434fa alien.debugger: this vocab isn't needed
The summary methods doesn't need dedicated vocabs. Unlike prettyprint methods.
2016-08-15 15:16:41 +02:00
Björn Lindqvist 402e4313bb alien.c-types: c-type-string without using prettyprint words
Using prettyprint caused deploy-images to grow unnecessarily.
2016-08-11 15:25:46 +02:00
Björn Lindqvist 907d63c16b alien.*: moving the c-type-string word to the alien.c-types vocab
This way it can be used in alien.parser instead of return-type-name.
2016-08-10 21:34:38 +02:00
Björn Lindqvist 13a983783f alien.parser/prettyprint: moving the predicates 2016-08-10 21:34:38 +02:00
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
Björn Lindqvist dbd716cc99 alien.parser: method object return-type-name is redundant 2016-08-10 21:34:37 +02:00
Alexander Iljin 2fd5654473 Add EOL at EOF for all authors.txt files for consistency
In some instances replaced CR/LF with LF.
2016-07-30 09:25:30 -07:00
John Benediktsson 55cf5472a5 using [ ] [ ... ] ?if instead of [ nip ] [ ... ] if*. 2016-07-11 19:50:37 -07:00
Alexander Iljin 035567e4ca alien.data: fix a typo 2016-06-22 11:27:26 -07:00
Björn Lindqvist 91f335b424 style thing: indenting tuple slots 2016-05-31 03:37:23 +02:00
Björn Lindqvist 941c9fabd4 alien.parser,gobject-introspection.ffi: fixing the manifest test errors (see #1463) 2016-05-28 19:01:54 +02:00
Björn Lindqvist b96077beb7 alien.parser: better fix for #1535
These changes ensure that reset-generic is called when parsing alien
words. Otherwise problems occur when you redefine generics as callbacks
or typedefs.
2016-05-28 17:22:45 +02:00
Björn Lindqvist 69f667edc8 alien.parser: make make-callback-type have the same signature as make-function 2016-05-28 17:21:45 +02:00
Björn Lindqvist 350e890a03 alien.parser: fix for #1535
(CREATE-C-TYPE) needs to be called on the word naming the
callback. Otherwise the old definition remains in old-definition and you
can get a no word found error.
2016-05-27 20:54:52 +02:00
John Benediktsson b0e6796a95 alien.prettyprint: forgot to commit the tests fixes. 2016-04-07 11:21:39 -07:00
John Benediktsson d15f6459b8 alien.prettyprint: don't print ; or declarations for alien words. 2016-04-07 07:38:09 -07:00
John Benediktsson 65eb9a1d31 Revert "alien.c-types: Implement present on pointers for help-lint."
This reverts commit f865273e4d.
2016-04-07 07:26:23 -07:00
Doug Coleman f865273e4d alien.c-types: Implement present on pointers for help-lint. 2016-04-05 22:17:36 -07:00
John Benediktsson 4d83867cb4 strings.parser: remove parse-short-string, everyone should parse-string. 2016-04-04 15:00:04 -07:00
John Benediktsson 498285d7dd unicode: make this the API for all unicode things. 2016-03-30 23:29:48 -07:00
Doug Coleman 391f8e433f basis: Cleaning up tests using lists and IN: forms. 2016-03-30 20:04:14 -07:00
John Benediktsson 3f18b71d07 cleanup some QUALIFIED: that are no longer needed. 2016-03-29 10:20:16 -07:00
John Benediktsson 19466f2d66 alien.libraries.finder: rename ?add-library to ?update-library. 2016-03-29 07:35:45 -07:00
John Benediktsson 98ed2a8ee5 alien.libraries: split update-library and add-library again. 2016-03-29 06:07:14 -07:00
John Benediktsson da90f22b9b alien.libraries.finder: adding (poorly named) ?add-library.
Runs find-library when the library was not added yet or the dll is not valid.
2016-03-28 23:04:19 -07:00
John Benediktsson 26301fd5b0 Revert "alien.libraries.finder: Allow library to match just by name. Related to #1099."
This reverts commit 20a1c09a42.
2016-03-28 23:01:56 -07:00
John Benediktsson 12350404f2 alien.libraries: merge update-library and find-library. 2016-03-28 22:49:23 -07:00
Doug Coleman 0f994c9924 alien.syntax: Add ENUM: example with c basetype. 2016-03-05 15:34:15 -08:00
Doug Coleman 27b954f95b alien.libraries: Add a way to see if a dll has a function. 2016-03-04 09:14:49 -08:00
Doug Coleman b1e0ba1edd alien.syntax: Fix CALLBACK: syntax again in another place 2016-03-01 13:07:37 -08:00
Doug Coleman 72be6bf9b7 alien.syntax: Fix docs for CALLBACK: (no semi) 2016-03-01 12:42:17 -08:00
Benjamin Pollack 7d8d60ede3 Fix incorrect alien.syntax documentation for FUNCTION:
The library docs indicate that you need a semicolon at the end of
a `FUNCTION:` definition, but that's actually a syntax error. Likewise,
while the parentheses and commas may at one point have been optional,
they emphatically aren't anymore. This patch brings the documentation in
line with the code.
2016-02-17 09:33:33 -08:00
Jon Harper 6ebf6ff53b docs, ffi: more explicit c-string conversions docs 2016-01-09 13:54:21 -08:00
Jon Harper 53ce93a0da ffi docs, C unions are UNION-STRUCT: in factor 2016-01-09 13:54:21 -08:00
John Benediktsson 3affad7681 docs: using $maybe. 2015-12-11 17:05:45 -08:00
Björn Lindqvist ffc441ad63 VM: looks like ERROR_C_STRING is never thrown, so it can be removed 2015-09-29 23:12:56 +02:00
John Benediktsson 399d01f56e strings.parser: finish removing triple-strings.
parse-string => parse-short-string (on the same line)
parse-multiline-string-until => parse-full-string
2015-08-17 19:49:12 -07:00
John Benediktsson ceb75057da change ERROR: words from throw-foo back to foo. 2015-08-13 16:13:05 -07:00
John Benediktsson 0e1169ceab alien.libraries: try out throw-foo. 2015-08-13 06:52:06 -07:00
Doug Coleman b6be8685c3 basis: ERROR: changes. 2015-08-13 03:20:39 -07:00
Doug Coleman e3ddd337e0 compiler, alien: fix some duplication in ERROR: definitions. hope this doesnt trigger more failing builds than it fixed... 2015-08-12 13:58:38 -05:00
Doug Coleman 43fb73fae6 factor: Rename I[ ]I to [I I]. Fix places where we do "string"token without whitespace. 2015-08-06 17:05:12 -05:00
John Benediktsson 0fbd2fd472 alien.libraries: don't need << >>. 2015-07-28 19:13:13 -07:00
Doug Coleman 1fcf96cada factor: remove """ string syntax for now. there are HEREDOC:, STRING:, escaping \", and something else soon. 2015-07-25 22:59:56 -07:00
Doug Coleman 2f6548d6d2 factor: fix breakage with word renamings. 2015-07-20 05:51: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 14ba179254 factor: change FUNCTION: and similar to not have trailing ; 2015-07-19 16:24:47 -07:00
John Benediktsson c5e4bb4980 alien.parser: change scan-c-args to always use ";" as end-marker in preparation for maybe removing it later. 2015-07-19 15:08:56 -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 4ec2311406 factor: Trim whitespace after ! comments and a few USING: lines that got skipped before. 2015-07-18 20:14:22 -07:00