- Modular block files: split into blocks-algo, blocks-data, blocks-proc - New modules: sections.js (labelled canvas areas), proc-browser.js (procedure tree modal), lib-loader.js (lazy library loading), templates.js (project templates), errno-data.js (errno table) - Test infrastructure: browser test suite (28 tests) and Node pure-function tests (75 tests) - Warning system: unified .block-warn for disconnected inputs, unconnected error hooks, and zero-exit-in-error-path - Error path highlighting: red flow paths and block borders for error-only subgraphs - Input hooks: hidden by default, shown during linking; outputs always at bottom - Block editor modal: pencil icon, colour picker for accent, compact field labels - Doc generation: standalone node script extracts JSDoc -> docs/API.md (124 declarations) - Persistence: save/restore sections, errno selection, block colours - Fixes: _segmentsIntersect bug, WCEnd crash from closest(this), drawpath guard on detached elements
68 lines
1.7 KiB
JSON
68 lines
1.7 KiB
JSON
{
|
|
"procedures": [
|
|
{
|
|
"name": "malloc",
|
|
"inputs": [["size","int"]],
|
|
"outputs": [["ptr","int"]],
|
|
"returnStyle": "value",
|
|
"desc": "Allocates a block of memory of the given size."
|
|
},
|
|
{
|
|
"name": "free",
|
|
"inputs": [["ptr","int"]],
|
|
"outputs": [],
|
|
"returnStyle": "void",
|
|
"desc": "Releases a previously allocated memory block."
|
|
},
|
|
{
|
|
"name": "exit",
|
|
"inputs": [["status","int"]],
|
|
"outputs": [],
|
|
"returnStyle": "void",
|
|
"desc": "Terminates the program immediately with the given status code."
|
|
},
|
|
{
|
|
"name": "rand",
|
|
"inputs": [],
|
|
"outputs": [["result","int"]],
|
|
"returnStyle": "value",
|
|
"desc": "Returns a random integer between 0 and RAND_MAX."
|
|
},
|
|
{
|
|
"name": "srand",
|
|
"inputs": [["seed","unsigned int"]],
|
|
"outputs": [],
|
|
"returnStyle": "void",
|
|
"desc": "Seeds the random number generator with the given value."
|
|
},
|
|
{
|
|
"name": "atoi",
|
|
"inputs": [["str","string"]],
|
|
"outputs": [["result","int"]],
|
|
"returnStyle": "value",
|
|
"desc": "Converts a string to an integer."
|
|
},
|
|
{
|
|
"name": "atof",
|
|
"inputs": [["str","string"]],
|
|
"outputs": [["result","float"]],
|
|
"returnStyle": "value",
|
|
"desc": "Converts a string to a floating-point number."
|
|
},
|
|
{
|
|
"name": "abs",
|
|
"inputs": [["n","int"]],
|
|
"outputs": [["result","int"]],
|
|
"returnStyle": "value",
|
|
"desc": "Returns the absolute value of an integer."
|
|
},
|
|
{
|
|
"name": "system",
|
|
"inputs": [["cmd","string"]],
|
|
"outputs": [["result","int"]],
|
|
"returnStyle": "value",
|
|
"desc": "Executes a shell command."
|
|
}
|
|
]
|
|
}
|