Slava Pestov
|
6ff0393e2f
|
debugger: Untangle some dodgy dependencies that were loading locals before prettyprint, resulting in locals.prettyprint not being loaded
|
2010-03-17 19:19:43 +13:00 |
Joe Groff
|
cd17a934ac
|
cut commas off of FUNCTION: parameter names in stack effects again
|
2010-02-28 19:29:53 -08:00 |
Joe Groff
|
078ca0fa58
|
alien.parser: refactor FUNCTION: parsing to read from the source incrementally. parse errors in FUNCTION: should now correspond to their location within the definition
|
2010-02-28 16:20:45 -08:00 |
Joe Groff
|
1916b9269e
|
"pointer-c-type" word-prop hack is now unnecessary since all pointer types behave uniformly now
|
2010-02-23 12:07:55 -08:00 |
Joe Groff
|
db8b6baa2f
|
typo in alien.parser test
|
2010-02-23 11:59:53 -08: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 |
Joe Groff
|
00a7559d55
|
have TYPEDEF:, STRUCT: etc. throw an error if you try to define a c type name ending with asterisk
|
2010-02-23 10:16:18 -08:00 |
Slava Pestov
|
7decccf8bb
|
Merge branch 'master' of git://factorcode.org/git/factor
|
2010-02-23 20:26:41 +13:00 |
Erik Charlebois
|
aead6e7dd8
|
Revert change to make-callback-type cause Slava already fixed it in parse-arglist
|
2010-02-22 19:34:34 -08:00 |
Joe Groff
|
4d2ded634b
|
alien.parser: properly generate return type name for FUNCTION: stack effects
|
2010-02-22 11:25:01 -08:00 |
Erik Charlebois
|
833372cd08
|
Merge alien/parser/parser.factor
|
2010-02-22 10:53:19 -08:00 |
Erik Charlebois
|
124982ce23
|
Fix CALLBACK: effect return type also not a string. Added accompanying unit test.
|
2010-02-22 10:48:21 -08:00 |
Joe Groff
|
31a0d98e02
|
Merge branch 'master' into new-alien-pointers
Conflicts:
basis/alien/c-types/c-types.factor
basis/stack-checker/dependencies/dependencies.factor
|
2010-02-22 10:32:59 -08:00 |
Slava Pestov
|
23a1f0ed8c
|
alien: some code cleanups and fixes
|
2010-02-23 01:28:56 +13:00 |
Slava Pestov
|
7578429692
|
alien.c-types: remove void? word
|
2010-02-22 21:31:41 +13:00 |
Joe Groff
|
338edac16c
|
Merge branch 'master' of git://factorcode.org/git/factor into new-alien-pointers
|
2010-02-21 23:14:08 -08:00 |
Joe Groff
|
5faa97e42c
|
alien.parser: favor parsing "foo*" as pointer-to-foo now
|
2010-02-21 21:06:00 -08:00 |
Joe Groff
|
d5bf6e55cd
|
more implementation of pointer c-types. make it so that { char* binary } acts like a real pointer to char instead of stringifying, and add byte* typedef for { char* binary }
|
2010-02-21 20:58:21 -08:00 |
Joe Groff
|
5955ba06df
|
use a "pointer" wrapper tuple to indicate pointer types instead of the current slipshod approach
|
2010-02-21 16:27:36 -08:00 |
Erik Charlebois
|
536ae3c648
|
Unit test checking the stack effects from FUNCTION:.
|
2010-02-20 21:15:47 -08:00 |
Erik Charlebois
|
b25e945c74
|
The return values in the stack effects of FUNCTION: words were c-types rather than strings. This was causing scaffold-help to fail on vocabularies with FUNCTION:.
|
2010-02-20 03:02:56 -08:00 |
Joe Groff
|
6e1bffb1c5
|
update existing code to use :> ( ) when possible
|
2009-10-28 16:11:33 -05:00 |
Slava Pestov
|
5afce2cc9e
|
alien.c-types: c-type no longer calls parser at runtime, tools.deploy.shaker now strips out runtime specialized array code generation
|
2009-10-16 23:50:17 -05:00 |
Joe Groff
|
c8eddf89e6
|
hurr
|
2009-10-16 16:39:33 -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
|
a37bc4828f
|
change parse-c-type so that c-type[symbolic-constant] parses to { c-type symbolic-constant }
|
2009-10-16 12:27:16 -05:00 |
Slava Pestov
|
18d4f030cd
|
alien.parser: fix behavior with restarts, reported by mnestic
|
2009-10-09 04:25:25 -05:00 |
Joe Groff
|
b150deeb11
|
refactor so that generalizations reuses the stub versions of nsequence, firstn, and n*quot needed by memoize
|
2009-10-08 12:55:52 -05:00 |
Joe Groff
|
44f393771b
|
change CALLBACK: to use the ABI of the current LIBRARY: and get rid of STDCALL-CALLBACK:
|
2009-09-28 19:27:28 -05:00 |
Slava Pestov
|
7ee8144259
|
alien.parser: fix unit tests
|
2009-09-28 05:42:41 -05:00 |
Joe Groff
|
123f4fbc30
|
redefine C-TYPE: to forward declare opaque C types; make C type definition and redefinition a little more robust
|
2009-09-27 22:12:00 -05:00 |
Joe Groff
|
4e68c43f3d
|
disable parsing of string c-types
|
2009-09-27 16:06:13 -05:00 |
Joe Groff
|
c3935b823f
|
oops, jumped the gun on one of the alien.parser tests there
|
2009-09-27 12:10:50 -05:00 |
Joe Groff
|
2bc687f0de
|
add some tests for parse-c-type
|
2009-09-27 12:03:23 -05:00 |
Joe Groff
|
00fa7f73fb
|
add CALLBACK: syntax that defines a typedef and an alien-callback constructor word for function pointer types. update some code in iokit.hid and windows.dinput to use CALLBACK: instead of TYPEDEF:/word pairs
|
2009-09-21 11:59:41 -05:00 |
Joe Groff
|
40620d470f
|
allow word c-types and definitions to coexist
|
2009-09-16 17:18:19 -05:00 |
Joe Groff
|
e70c063e61
|
fix alien-function-word predicate
|
2009-09-16 14:17:13 -05:00 |
Joe Groff
|
2bbd29a561
|
prettyprinting for FUNCTION: definitions
|
2009-09-15 22:39:25 -05:00 |
Joe Groff
|
3b4330fcf6
|
get things to a point where they bootstrap again
|
2009-09-15 21:43:18 -05:00 |
Joe Groff
|
ac41416953
|
create words for c-types
|
2009-09-15 15:18:54 -05:00 |
Doug Coleman
|
f7b2e4a155
|
remove call to check-c-name
|
2009-07-23 18:14:07 -05:00 |
Doug Coleman
|
9bb38b870c
|
allow FUNCTION: to parse pointers in the name field
|
2009-07-23 18:05:09 -05:00 |
Doug Coleman
|
bad8e05937
|
Disallow C functions and parameter names that contain an asterisk
|
2009-07-23 15:48:10 -05:00 |
Slava Pestov
|
c3e7db3852
|
Refactor FUNCTION: to make it more extensible
|
2009-04-18 02:37:35 -05:00 |
Slava Pestov
|
6b25e99470
|
Add summary for heaps more vocabs
|
2009-02-16 21:05:13 -06:00 |
Slava Pestov
|
3e25d14e54
|
Code cleanup: refactoring usages of rot and -rot to use newer idioms instead
|
2008-11-30 17:47:29 -06:00 |