Commit Graph

124 Commits (e243a886d3b9f08d4a184c89c75bb01a4af6b8fe)

Author SHA1 Message Date
John Benediktsson 208f01416d core-foundation.run-loop: make sure to reset when switching between UI and NO_UI. 2015-01-17 16:40:21 -08:00
John Benediktsson 3f3c11c446 ui.backend.cocoa: fix reset of thread-timer. 2015-01-17 15:58:57 -08:00
John Benediktsson be173c8a43 core-foundation.run-loop: cleanup timer-thread code. 2015-01-17 14:16:24 -08:00
John Benediktsson be64b40b7f core-foundation: cleanup usings. 2014-12-13 16:25:59 -08:00
John Benediktsson 8f0c563268 core-foundation.run-loop: update using. 2014-12-01 17:06:45 -08:00
John Benediktsson d6019337f9 core-foundation: define some more callbacks. 2014-08-05 16:09:04 -07:00
John Benediktsson 37af86428f core-foundation.run-loop: define a CALLBACK and use it. 2014-08-05 15:53:02 -07:00
Doug Coleman 254e7a5e62 core-foundation.fsevents: FSEventStreamEventId should be a ulonglong instead of longlong. 2014-07-07 15:18:57 -07:00
Doug Coleman 525fe70306 core-foundation.run-loop: Fix botched rename. Ugh. Fixes #775 on mac at least. 2014-07-04 00:53:46 -07:00
John Benediktsson b8ac661ce8 core-foundation.file-descriptors: some cleanup. 2014-06-26 13:49:57 -07:00
John Benediktsson 848420a377 core-foundation.time: change epoch to constant. 2014-05-23 13:26:49 -07:00
John Benediktsson 691a520ca0 core-foundation.launch-services: adding UTCoreTypes.h. 2013-09-20 11:53:58 -07:00
John Benediktsson 281ed1f89a core-foundation.numbers: support converting CFNumber back to factor. 2013-03-29 20:34:24 -07:00
John Benediktsson 51641c6e02 core-foundation.strings: faster CF>string. 2013-03-29 11:40:59 -07:00
Doug Coleman c88760128d core-foundation.run-loop: Rename run-loop. 2013-03-23 22:38:38 -07:00
John Benediktsson c81bf00e46 core-foundation.run-loop: CFTimeInterval is a double. 2013-03-06 20:31:42 -08:00
John Benediktsson be04b19745 core-foundation.file-descriptors: inline enable-all-callbacks. 2013-03-06 19:59:52 -08:00
John Benediktsson 7d8d6cdd51 core-foundation.run-loop: remove reset on every iteration. 2012-08-01 16:59:33 -07:00
John Benediktsson caf4e677c7 core-foundation.run-loop: use fewer durations. 2012-08-01 11:53:33 -07:00
John Benediktsson ebac6a5dbf core-foundation.run-loop: this is still needed, for now. 2012-08-01 11:18:47 -07:00
John Benediktsson 3e6e6458e5 core-foundation.run-loop: do less work, speeds up yield by 50%. 2012-08-01 10:57:58 -07:00
John Benediktsson daaa62d498 core-foundation.strings: using map!. 2012-07-17 22:54:08 -07:00
John Benediktsson 62bf4194c2 core-foundation.strings: prevent creating CFString from characters in range 0xd800-0xdfff. 2012-06-01 17:56:34 -07:00
Joe Groff 943596575a use radix literals 2011-11-23 19:03:40 -08:00
Doug Coleman ada631c202 Add core-foundation.launch-services for finding the path of a bundle. Add a new standard-paths vocabulary for finding files. 2011-10-30 16:11:18 -07:00
John Benediktsson 3d1155130c core-foundation.timers: allow interval to be specified in the constructor. 2011-10-19 15:30:55 -07: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
Doug Coleman 933319f401 Cleanups found with lint tool 2011-10-14 10:15:13 -07:00
Doug Coleman 76580da5d5 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
Doug Coleman 11bd334abb Trim down a few using lists 2011-09-26 13:42:46 -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
Joe Groff 2bd6de9a02 slots: pre-create the "at", "nth", and "global" slots to make deterministic the currently nondeterministic ambiguity between accessors:change-* and assocs:change-at, sequences:change-nth, and namespaces:change-global 2011-09-19 10:03:43 -07:00
Joe Groff f6d90ce51f game.input.iokit: deal with Lion's breakage of the IOHID* API 2011-07-29 13:24:10 -07:00
Slava Pestov cbbdd712fc core-foundation.run-loop bug fix for Doug's bug fix 2011-04-16 19:11:43 -07:00
Doug Coleman a744e3a370 Bugfix: Only reset-timer on mac if sleep-time returns an integer. If it returns f, don't divide by 1000 and error. 2011-04-15 00:11:15 -05:00
Slava Pestov c36d73e242 Change do-callback to register the current thread with the callback, instead of busy waiting for the current callback to become the right one before returning. Fixes 100% CPU usage issue with system-alert. Thanks to Blei and ex-rzr for doing preliminary analysis of the issue 2011-04-12 21:48:54 -04: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
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
Doug Coleman 796aca7a4e Remove more system-micros stuff 2010-06-22 02:04:31 -05:00
Doug Coleman 0edadff45f remove system-micros word from factor src tree 2010-06-22 01:49:11 -05:00
Slava Pestov 70a99e1cdb Updating code to use with-out-parameters 2010-05-23 03:07:47 -04:00
Joe Groff ef884ef7f2 Merge branch 'master' into abi-symbols 2010-04-01 15:28:36 -07:00
Doug Coleman 026499e64f Use flags{ instead of flags all over the place 2010-04-01 14:44:03 -05:00
Joe Groff 65c3259761 "cdecl" -> cdecl 2010-03-31 19:20:35 -07:00
Slava Pestov f0a9912ae9 core-foundation.run-loop: remove unnecessary yields. This fixes a thread starvation issue with game.input 2010-03-15 19:25:57 +13:00
Slava Pestov e3ddafbdec core-foundation.run-loop: clean up and speed up some code to fix starvation issue exposed by game.loop (reported by Joe Groff) 2010-03-01 12:22:18 +13:00
Slava Pestov 570e332f84 core-foundation.run-loop: cleanup 2010-02-24 21:18:29 +13:00
Joe Groff 2aa1a3dbd7 ui.backend.cocoa: invalidate run loop timers before raising an NSAlert and add them back when runModal returns to avoid run loop callbacks reentering Factor 2010-02-23 23:52:03 -08:00
Joe Groff db6c083162 change back other char/uchar* parameters that don't look like actual string types 2010-02-23 13:15:16 -08:00