Skip to main content

SOURCE

Constant SOURCE 

Source
pub const SOURCE: &str = ";; -*- mode: lisp -*-\n;; Host-dependent nomiscript prelude (ADR-0029). Loaded ONLY on the rpc\n;; Session path, AFTER register_host_fns \u{2014} these helpers call RPC host fns\n;; (list-splits-by-transaction, transaction-id, ...) that do not exist in a\n;; bare SymbolTable, so they cannot live in the universal prelude. DEFUN-only.\n;;\n;; split:list-for-transaction is the ergonomic, entity-taking wrapper the\n;; Metro tagging sample uses: it takes a transaction ENTITY and returns that\n;; transaction\'s splits, hiding the transaction-id string plumbing.\n\n(defun split:list-for-transaction (tx)\n  (list-splits-by-transaction (transaction-id tx)))\n\n;; (report-chart FORM VALUES &key kind format width height text-px background): the\n;; chart of a report form\'s VALUES; the native takes every argument, this gives the\n;; defaults. TEXT-PX 0 is the default text height, BACKGROUND -1 a transparent PNG.\n(defun report-chart (form values &key (kind \"bar\") ((:format fmt) \"spec\") (width 720) (height 360)\n                     (text-px 0) (background -1))\n  (report-chart-render form values kind fmt width height text-px background))\n";
Expand description

The host-prelude nomiscript source (DEFUN-only).