summaryrefslogtreecommitdiffstats
path: root/lib/c.tcl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* dirty loadlib fixprinter-configs-ol2024-05-251-3/+4
|
* Make loadlibLd, filter by architecture if multiple candidatesOmar Rizwan2024-03-191-1/+11
| | | | Fixes https://discord.com/channels/956758212152025098/956758650700046366/1202431317971570728
* 2D arrays in CFFICristobal Sciutto2023-11-031-9/+27
|
* c: Allow passing direct structs as pointer args (cheap)Omar Rizwan2023-10-251-0/+12
|
* c: uint8_t rtype to get rid of warningOmar Rizwan2023-10-041-0/+1
|
* main,display: Version the Folk heap; evict stale/unused images.Omar Rizwan2023-09-301-0/+8
| | | | | This at least keeps camera slices from crashing the system. TODO: Don't draw stale images.
* c: Minor string adjustmentOmar Rizwan2023-09-201-1/+1
|
* c: Don't shimmer structs into dictionaries just for arg marshalOmar Rizwan2023-09-201-13/+6
| | | | | If a struct is already internally represented as a C struct, we should be able to just copy that.
* c: Warn but don't break if we don't know how to emit a struct getterOmar Rizwan2023-09-151-15/+19
|
* WIP: Merge branch 'main' into osnr/vulkan-displayOmar Rizwan2023-09-151-2/+2
|\
| * c: Use the Tcl error in __ENSURE_OKOmar Rizwan2023-08-151-1/+1
| |
* | Cast robj pointer to right typeAndrés Cuervo2023-09-121-1/+1
| |
* | c: Detect C proc name collisionsOmar Rizwan2023-09-111-0/+1
| |
* | c: Scope getters so fields w/ same name across structs don't collideOmar Rizwan2023-09-081-18/+16
| |
* | Display_vk: Use volk to autoload Vulkan functions (no more vkfn).Omar Rizwan2023-09-081-12/+21
| | | | | | | | | | | | | | | | WIP: Start on images/sampler2D. Improve char array support in C. Actually put uboFields in Pipeline struct so they don't shimmer out (because we now run the Pipeline data back into C to set up the image right before draw time).
* | WIP: Finally implement setFromAnyProc, start on UBO memcpy againOmar Rizwan2023-09-071-2/+17
| | | | | | | | | | Now we can standardize on struct representation of C structs in Tcl instead of dict representation... hopefully simpler code too in the end.
* | c: Fix getter for renamed ccOmar Rizwan2023-09-071-3/+3
| |
* | c: Start working on field getters. Throw errors from deep in C!Omar Rizwan2023-09-071-3/+34
| |
* | WIP: It runs all the way through nowOmar Rizwan2023-09-061-1/+6
| | | | | | | | Also fix linebreaks in csubst
* | WIP: Start on multi-binding + image support for pipelinesOmar Rizwan2023-09-051-2/+2
| |
* | I can draw a circleOmar Rizwan2023-08-241-2/+2
| |
* | WIP: UBO, descriptor pool, descriptor set workOmar Rizwan2023-08-241-0/+1
| |
* | WIP: Continue work on pipeline DSL; make UBO args structOmar Rizwan2023-08-231-0/+2
| | | | | | | | Remove csubst now that it's part of base C lib
* | WIP: csubst by default, cut up drawing pipelineOmar Rizwan2023-08-031-0/+1
| | | | | | | | | | (I want to draw multiple things in a row without having them each clear the screen.)
* | Fix C arrays kinda bc use of csubst (untested)Omar Rizwan2023-08-031-6/+6
|/
* c: Some new errors.Omar Rizwan2023-07-211-1/+2
|
* Fix bug with import from reused ccOmar Rizwan2023-07-021-1/+1
|
* Fix(?) leak in C-Tcl interfaceOmar Rizwan2023-07-011-5/+14
|
* Add doubles to c.tclOmar Rizwan2023-06-301-0/+2
|
* Add runtime arg typechecks to the C FFIOmar Rizwan2023-06-181-13/+22
|
* Bring back C source mapOmar Rizwan2023-05-241-1/+1
|
* WIP (most tests pass): Move recollect into COmar Rizwan2023-04-241-0/+4
| | | | (Its Tcl implementation was the last bottleneck)
* Continue work on Recollect: test/negation works!Omar Rizwan2023-04-201-2/+2
| | | | | This is sort of intermediate, though -- a lot of the logic is still in Tcl, not in C, and the performance characteristics of this aren't clear.
* Use generations in statement handle; fixes test/commitOmar Rizwan2023-04-191-0/+2
|
* Start on new c-statements (C evaluator) workOmar Rizwan2023-04-191-0/+2
| | | | Make trie store void* instead of Tcl_Obj*; start trying to do reactions in C
* c: Support quotation mark includesOmar Rizwan2023-04-151-1/+5
|
* Add first sketches of RFID programsOmar Rizwan2023-02-101-1/+1
|
* c-statements work on reactToStatementAddition. Doesn't work yet.Omar Rizwan2023-02-091-1/+1
| | | | Use -fno-omit-frame-pointer to try to help perf engineering on ARM.
* c-statements: More handle cleanup. Animal test worksOmar Rizwan2023-02-061-2/+2
| | | | | Main bug was setting up rtype with ckalloc instead of Tcl_NewObj, which resulted in weird refcount reuse behavior.
* Some README tweaksOmar Rizwan2023-02-061-2/+2
|
* c-statements: Use semi-opaque stmt & match handles, not bare indicesOmar Rizwan2023-02-051-3/+4
| | | | | I want the extra bit of type safety to help me debug with-all. Also fixes up cffi/tcl array support a bit
* c-statements: WIP checkpoint on statement removalOmar Rizwan2023-02-051-2/+1
| | | | | | | (graph looks wrong) note that this breaks Folk, because it uses the C statements instead of Tcl statements
* Fix c array argtype bugOmar Rizwan2023-02-051-1/+2
|
* Eliminate triefy and do var->wildcard conversion in trieOmar Rizwan2023-02-051-0/+1
| | | | Start on C unification and matching -- matching works!
* Initialize trie; fix size_t argtypeOmar Rizwan2023-02-041-1/+1
|
* Put C procs in namespace of caller at definition timeOmar Rizwan2023-02-041-1/+2
|
* Fix addWithVar export, add ${} syntax in csubstOmar Rizwan2023-02-041-23/+20
| | | | Make add a c proc -- it compiles -- add [] array support so it works
* statement add compiles -- now to expose it and test it from TclOmar Rizwan2023-02-041-4/+6
|
* Better typedef behavior; addWithVar split from add; more ...Omar Rizwan2023-02-041-1/+3
| | | | progress on c-statements
* c cross-module import / cmulti test works!Omar Rizwan2023-02-041-5/+7
| | | | continued work on c-statements