LilyPond-Ruby 0.0.2.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/etc/fonts/conf.d/10-hinting-slight.conf +15 -0
- data/etc/fonts/conf.d/10-scale-bitmap-fonts.conf +83 -0
- data/etc/fonts/conf.d/11-lcdfilter-default.conf +17 -0
- data/etc/fonts/conf.d/20-unhint-small-vera.conf +49 -0
- data/etc/fonts/conf.d/30-metric-aliases.conf +637 -0
- data/etc/fonts/conf.d/40-nonlatin.conf +332 -0
- data/etc/fonts/conf.d/45-generic.conf +136 -0
- data/etc/fonts/conf.d/45-latin.conf +301 -0
- data/etc/fonts/conf.d/48-spacing.conf +16 -0
- data/etc/fonts/conf.d/49-sansserif.conf +22 -0
- data/etc/fonts/conf.d/50-user.conf +16 -0
- data/etc/fonts/conf.d/51-local.conf +7 -0
- data/etc/fonts/conf.d/60-generic.conf +64 -0
- data/etc/fonts/conf.d/60-latin.conf +88 -0
- data/etc/fonts/conf.d/65-fonts-persian.conf +418 -0
- data/etc/fonts/conf.d/65-nonlatin.conf +228 -0
- data/etc/fonts/conf.d/69-unifont.conf +28 -0
- data/etc/fonts/conf.d/80-delicious.conf +19 -0
- data/etc/fonts/conf.d/90-synthetic.conf +64 -0
- data/etc/fonts/conf.d/README +23 -0
- data/etc/fonts/fonts.conf +101 -0
- data/etc/relocate/fontconfig.reloc +2 -0
- data/etc/relocate/guile.reloc +2 -0
- data/etc/relocate/libexec.reloc +1 -0
- data/lib/guile/2.2/ccache/ice-9/and-let-star.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/arrays.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/atomic.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/binary-ports.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/boot-9.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/buffered-input.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/calling.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/channel.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/command-line.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/common-list.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/control.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/curried-definitions.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/debug.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/deprecated.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/documentation.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/eval-string.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/eval.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/expect.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/fdes-finalizers.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/format.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/ftw.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/futures.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/gap-buffer.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/getopt-long.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/hash-table.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/hcons.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/history.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/i18n.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/iconv.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/lineio.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/list.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/local-eval.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/ls.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/mapping.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/match.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/networking.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/null.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/occam-channel.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/optargs.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg/cache.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg/codegen.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg/simplify-tree.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg/string-peg.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg/using-parsers.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/peg.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/poe.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/poll.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/popen.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/ports.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/posix.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/pretty-print.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/psyntax-pp.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/q.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/r5rs.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/rdelim.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/receive.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/regex.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/runq.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/rw.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/safe-r5rs.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/safe.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/sandbox.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/save-stack.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/scm-style-repl.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/serialize.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/session.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/slib.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/stack-catch.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/streams.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/string-fun.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/suspendable-ports.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/syncase.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/textual-ports.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/threads.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/time.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/top-repl.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/unicode.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/vlist.go +0 -0
- data/lib/guile/2.2/ccache/ice-9/weak-vector.go +0 -0
- data/lib/guile/2.2/ccache/language/brainfuck/compile-scheme.go +0 -0
- data/lib/guile/2.2/ccache/language/brainfuck/compile-tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/brainfuck/parse.go +0 -0
- data/lib/guile/2.2/ccache/language/brainfuck/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/bytecode/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/bytecode.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/closure-conversion.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/compile-bytecode.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/constructors.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/contification.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/cse.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/dce.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/effects-analysis.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/elide-values.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/handle-interrupts.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/intmap.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/intset.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/licm.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/optimize.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/peel-loops.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/primitives.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/prune-bailouts.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/prune-top-level-scopes.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/reify-primitives.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/renumber.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/rotate-loops.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/self-references.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/simplify.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/slot-allocation.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/specialize-numbers.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/specialize-primcalls.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/split-rec.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/type-checks.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/type-fold.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/types.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/utils.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/verify.go +0 -0
- data/lib/guile/2.2/ccache/language/cps/with-cps.go +0 -0
- data/lib/guile/2.2/ccache/language/cps.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/array.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/base.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/compile-tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/function.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/impl.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/parse.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/ecmascript/tokenize.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/bindings.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/boot.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/compile-tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/falias.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/lexer.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/parser.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/runtime/function-slot.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/runtime/value-slot.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/runtime.go +0 -0
- data/lib/guile/2.2/ccache/language/elisp/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/scheme/compile-tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/scheme/decompile-tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/scheme/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/analyze.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/canonicalize.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/compile-cps.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/debug.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/effects.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/fix-letrec.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/optimize.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/peval.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/primitives.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il/spec.go +0 -0
- data/lib/guile/2.2/ccache/language/tree-il.go +0 -0
- data/lib/guile/2.2/ccache/language/value/spec.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/accessors.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/active-slot.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/composite-slot.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/describe.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/internal.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/save.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/simple.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops/stklos.go +0 -0
- data/lib/guile/2.2/ccache/oop/goops.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/arithmetic/bitwise.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/arithmetic/fixnums.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/arithmetic/flonums.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/base.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/bytevectors.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/conditions.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/control.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/enums.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/eval.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/exceptions.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/files.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/hashtables.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/io/ports.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/io/simple.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/lists.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/mutable-pairs.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/mutable-strings.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/programs.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/r5rs.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/records/inspection.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/records/procedural.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/records/syntactic.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/sorting.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/syntax-case.go +0 -0
- data/lib/guile/2.2/ccache/rnrs/unicode.go +0 -0
- data/lib/guile/2.2/ccache/rnrs.go +0 -0
- data/lib/guile/2.2/ccache/scripts/api-diff.go +0 -0
- data/lib/guile/2.2/ccache/scripts/autofrisk.go +0 -0
- data/lib/guile/2.2/ccache/scripts/compile.go +0 -0
- data/lib/guile/2.2/ccache/scripts/disassemble.go +0 -0
- data/lib/guile/2.2/ccache/scripts/display-commentary.go +0 -0
- data/lib/guile/2.2/ccache/scripts/doc-snarf.go +0 -0
- data/lib/guile/2.2/ccache/scripts/frisk.go +0 -0
- data/lib/guile/2.2/ccache/scripts/generate-autoload.go +0 -0
- data/lib/guile/2.2/ccache/scripts/help.go +0 -0
- data/lib/guile/2.2/ccache/scripts/lint.go +0 -0
- data/lib/guile/2.2/ccache/scripts/list.go +0 -0
- data/lib/guile/2.2/ccache/scripts/punify.go +0 -0
- data/lib/guile/2.2/ccache/scripts/read-rfc822.go +0 -0
- data/lib/guile/2.2/ccache/scripts/read-scheme-source.go +0 -0
- data/lib/guile/2.2/ccache/scripts/read-text-outline.go +0 -0
- data/lib/guile/2.2/ccache/scripts/scan-api.go +0 -0
- data/lib/guile/2.2/ccache/scripts/snarf-check-and-output-texi.go +0 -0
- data/lib/guile/2.2/ccache/scripts/snarf-guile-m4-docs.go +0 -0
- data/lib/guile/2.2/ccache/scripts/summarize-guile-TODO.go +0 -0
- data/lib/guile/2.2/ccache/scripts/use2dot.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-1.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-10.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-11.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-111.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-13.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-14.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-16.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-17.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-18.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-19.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-2.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-26.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-27.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-28.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-31.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-34.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-35.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-37.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-38.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-39.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-4/gnu.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-4.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-41.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-42.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-43.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-45.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-6.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-60.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-64.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-67.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-69.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-71.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-8.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-88.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-9/gnu.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-9.go +0 -0
- data/lib/guile/2.2/ccache/srfi/srfi-98.go +0 -0
- data/lib/guile/2.2/ccache/statprof.go +0 -0
- data/lib/guile/2.2/ccache/sxml/apply-templates.go +0 -0
- data/lib/guile/2.2/ccache/sxml/fold.go +0 -0
- data/lib/guile/2.2/ccache/sxml/match.go +0 -0
- data/lib/guile/2.2/ccache/sxml/simple.go +0 -0
- data/lib/guile/2.2/ccache/sxml/ssax/input-parse.go +0 -0
- data/lib/guile/2.2/ccache/sxml/ssax.go +0 -0
- data/lib/guile/2.2/ccache/sxml/transform.go +0 -0
- data/lib/guile/2.2/ccache/sxml/xpath.go +0 -0
- data/lib/guile/2.2/ccache/system/base/ck.go +0 -0
- data/lib/guile/2.2/ccache/system/base/compile.go +0 -0
- data/lib/guile/2.2/ccache/system/base/lalr.go +0 -0
- data/lib/guile/2.2/ccache/system/base/language.go +0 -0
- data/lib/guile/2.2/ccache/system/base/message.go +0 -0
- data/lib/guile/2.2/ccache/system/base/pmatch.go +0 -0
- data/lib/guile/2.2/ccache/system/base/syntax.go +0 -0
- data/lib/guile/2.2/ccache/system/base/target.go +0 -0
- data/lib/guile/2.2/ccache/system/base/types.go +0 -0
- data/lib/guile/2.2/ccache/system/foreign-object.go +0 -0
- data/lib/guile/2.2/ccache/system/foreign.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/command.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/common.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/coop-server.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/debug.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/error-handling.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/repl.go +0 -0
- data/lib/guile/2.2/ccache/system/repl/server.go +0 -0
- data/lib/guile/2.2/ccache/system/syntax.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/assembler.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/coverage.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/debug.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/disassembler.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/dwarf.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/elf.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/frame.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/inspect.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/linker.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/loader.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/program.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/trace.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/trap-state.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/traps.go +0 -0
- data/lib/guile/2.2/ccache/system/vm/vm.go +0 -0
- data/lib/guile/2.2/ccache/system/xref.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/docbook.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/html.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/indexing.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/plain-text.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/reflection.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/serialize.go +0 -0
- data/lib/guile/2.2/ccache/texinfo/string-utils.go +0 -0
- data/lib/guile/2.2/ccache/texinfo.go +0 -0
- data/lib/guile/2.2/ccache/web/client.go +0 -0
- data/lib/guile/2.2/ccache/web/http.go +0 -0
- data/lib/guile/2.2/ccache/web/request.go +0 -0
- data/lib/guile/2.2/ccache/web/response.go +0 -0
- data/lib/guile/2.2/ccache/web/server/http.go +0 -0
- data/lib/guile/2.2/ccache/web/server.go +0 -0
- data/lib/guile/2.2/ccache/web/uri.go +0 -0
- data/lib/guile.rb +19 -0
- data/lib/lilypond/2.24.1/ccache/lily/accreg.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/auto-beam.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/autochange.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/backend-library.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/bar-line.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/breath.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/c++.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/chord-entry.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/chord-ignatzek-names.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/chord-name.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/clip-region.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/color.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/curried-definitions.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-context-properties.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-event-classes.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-grob-interfaces.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-grob-properties.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-grobs.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-markup-commands.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-music-callbacks.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-music-display-methods.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-music-properties.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-music-types.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-note-names.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-stencil-commands.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/define-woodwind-diagrams.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/display-lily.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/display-woodwind-diagrams.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/file-cache.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/flag-styles.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/font-encodings.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/font.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/framework-cairo.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/framework-ps.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/framework-svg.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/fret-diagrams.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/graphviz.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/harp-pedals.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/layout-beam.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/layout-slur.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/lily-library.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/lily.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/ly-syntax-constructors.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/markup-macros.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/markup.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/midi.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/modal-transforms.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/music-functions.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/output-lib.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/output-ps.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/output-svg.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/page.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/paper-system.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/paper.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/parser-clef.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/parser-ly-from-scheme.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/part-combiner.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/predefined-fretboards.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/ps-to-png.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/scheme-engravers.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/scheme-performers.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/script.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/skyline.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/song-util.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/song.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/stencil.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/tablature.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/time-signature-settings.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/time-signature.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/titling.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/to-xml.go +0 -0
- data/lib/lilypond/2.24.1/ccache/lily/translation-functions.go +0 -0
- data/lib/lilypond/builder.rb +161 -0
- data/lib/lilypond-ruby.rb +18 -3
- data/share/emacs/site-lisp/lilypond-font-lock.el +208 -0
- data/share/emacs/site-lisp/lilypond-indent.el +605 -0
- data/share/emacs/site-lisp/lilypond-init.el +21 -0
- data/share/emacs/site-lisp/lilypond-mode.el +1204 -0
- data/share/emacs/site-lisp/lilypond-song.el +556 -0
- data/share/emacs/site-lisp/lilypond-what-beat.el +279 -0
- data/share/emacs/site-lisp/lilypond-words.el +1428 -0
- data/share/guile/2.2/guile-procedures.txt +8860 -0
- data/share/guile/2.2/ice-9/and-let-star.scm +73 -0
- data/share/guile/2.2/ice-9/arrays.scm +70 -0
- data/share/guile/2.2/ice-9/atomic.scm +38 -0
- data/share/guile/2.2/ice-9/binary-ports.scm +53 -0
- data/share/guile/2.2/ice-9/boot-9.scm +4131 -0
- data/share/guile/2.2/ice-9/buffered-input.scm +109 -0
- data/share/guile/2.2/ice-9/calling.scm +326 -0
- data/share/guile/2.2/ice-9/channel.scm +170 -0
- data/share/guile/2.2/ice-9/command-line.scm +477 -0
- data/share/guile/2.2/ice-9/common-list.scm +278 -0
- data/share/guile/2.2/ice-9/control.scm +110 -0
- data/share/guile/2.2/ice-9/curried-definitions.scm +57 -0
- data/share/guile/2.2/ice-9/debug.scm +25 -0
- data/share/guile/2.2/ice-9/deprecated.scm +93 -0
- data/share/guile/2.2/ice-9/documentation.scm +203 -0
- data/share/guile/2.2/ice-9/eval-string.scm +90 -0
- data/share/guile/2.2/ice-9/eval.scm +723 -0
- data/share/guile/2.2/ice-9/expect.scm +171 -0
- data/share/guile/2.2/ice-9/fdes-finalizers.scm +25 -0
- data/share/guile/2.2/ice-9/format.scm +1626 -0
- data/share/guile/2.2/ice-9/ftw.scm +564 -0
- data/share/guile/2.2/ice-9/futures.scm +308 -0
- data/share/guile/2.2/ice-9/gap-buffer.scm +283 -0
- data/share/guile/2.2/ice-9/getopt-long.scm +371 -0
- data/share/guile/2.2/ice-9/hash-table.scm +45 -0
- data/share/guile/2.2/ice-9/hcons.scm +80 -0
- data/share/guile/2.2/ice-9/history.scm +65 -0
- data/share/guile/2.2/ice-9/i18n.scm +531 -0
- data/share/guile/2.2/ice-9/iconv.scm +95 -0
- data/share/guile/2.2/ice-9/lineio.scm +115 -0
- data/share/guile/2.2/ice-9/list.scm +36 -0
- data/share/guile/2.2/ice-9/local-eval.scm +261 -0
- data/share/guile/2.2/ice-9/ls.scm +94 -0
- data/share/guile/2.2/ice-9/mapping.scm +118 -0
- data/share/guile/2.2/ice-9/match.scm +59 -0
- data/share/guile/2.2/ice-9/match.upstream.scm +917 -0
- data/share/guile/2.2/ice-9/networking.scm +94 -0
- data/share/guile/2.2/ice-9/null.scm +34 -0
- data/share/guile/2.2/ice-9/occam-channel.scm +261 -0
- data/share/guile/2.2/ice-9/optargs.scm +381 -0
- data/share/guile/2.2/ice-9/peg/cache.scm +45 -0
- data/share/guile/2.2/ice-9/peg/codegen.scm +359 -0
- data/share/guile/2.2/ice-9/peg/simplify-tree.scm +97 -0
- data/share/guile/2.2/ice-9/peg/string-peg.scm +273 -0
- data/share/guile/2.2/ice-9/peg/using-parsers.scm +116 -0
- data/share/guile/2.2/ice-9/peg.scm +42 -0
- data/share/guile/2.2/ice-9/poe.scm +116 -0
- data/share/guile/2.2/ice-9/poll.scm +172 -0
- data/share/guile/2.2/ice-9/popen.scm +178 -0
- data/share/guile/2.2/ice-9/ports.scm +566 -0
- data/share/guile/2.2/ice-9/posix.scm +75 -0
- data/share/guile/2.2/ice-9/pretty-print.scm +483 -0
- data/share/guile/2.2/ice-9/psyntax-pp.scm +3542 -0
- data/share/guile/2.2/ice-9/psyntax.scm +3326 -0
- data/share/guile/2.2/ice-9/q.scm +153 -0
- data/share/guile/2.2/ice-9/quasisyntax.scm +136 -0
- data/share/guile/2.2/ice-9/r5rs.scm +45 -0
- data/share/guile/2.2/ice-9/r6rs-libraries.scm +242 -0
- data/share/guile/2.2/ice-9/rdelim.scm +208 -0
- data/share/guile/2.2/ice-9/receive.scm +26 -0
- data/share/guile/2.2/ice-9/regex.scm +229 -0
- data/share/guile/2.2/ice-9/runq.scm +241 -0
- data/share/guile/2.2/ice-9/rw.scm +27 -0
- data/share/guile/2.2/ice-9/safe-r5rs.scm +145 -0
- data/share/guile/2.2/ice-9/safe.scm +34 -0
- data/share/guile/2.2/ice-9/sandbox.scm +1399 -0
- data/share/guile/2.2/ice-9/save-stack.scm +58 -0
- data/share/guile/2.2/ice-9/scm-style-repl.scm +279 -0
- data/share/guile/2.2/ice-9/serialize.scm +114 -0
- data/share/guile/2.2/ice-9/session.scm +530 -0
- data/share/guile/2.2/ice-9/slib.scm +33 -0
- data/share/guile/2.2/ice-9/stack-catch.scm +47 -0
- data/share/guile/2.2/ice-9/streams.scm +168 -0
- data/share/guile/2.2/ice-9/string-fun.scm +280 -0
- data/share/guile/2.2/ice-9/suspendable-ports.scm +788 -0
- data/share/guile/2.2/ice-9/syncase.scm +37 -0
- data/share/guile/2.2/ice-9/textual-ports.scm +70 -0
- data/share/guile/2.2/ice-9/threads.scm +392 -0
- data/share/guile/2.2/ice-9/time.scm +58 -0
- data/share/guile/2.2/ice-9/top-repl.scm +78 -0
- data/share/guile/2.2/ice-9/unicode.scm +26 -0
- data/share/guile/2.2/ice-9/vlist.scm +595 -0
- data/share/guile/2.2/ice-9/weak-vector.scm +31 -0
- data/share/guile/2.2/language/brainfuck/compile-scheme.scm +123 -0
- data/share/guile/2.2/language/brainfuck/compile-tree-il.scm +184 -0
- data/share/guile/2.2/language/brainfuck/parse.scm +95 -0
- data/share/guile/2.2/language/brainfuck/spec.scm +43 -0
- data/share/guile/2.2/language/bytecode/spec.scm +42 -0
- data/share/guile/2.2/language/bytecode.scm +104 -0
- data/share/guile/2.2/language/cps/closure-conversion.scm +848 -0
- data/share/guile/2.2/language/cps/compile-bytecode.scm +610 -0
- data/share/guile/2.2/language/cps/constructors.scm +106 -0
- data/share/guile/2.2/language/cps/contification.scm +448 -0
- data/share/guile/2.2/language/cps/cse.scm +414 -0
- data/share/guile/2.2/language/cps/dce.scm +363 -0
- data/share/guile/2.2/language/cps/effects-analysis.scm +597 -0
- data/share/guile/2.2/language/cps/elide-values.scm +88 -0
- data/share/guile/2.2/language/cps/handle-interrupts.scm +69 -0
- data/share/guile/2.2/language/cps/intmap.scm +765 -0
- data/share/guile/2.2/language/cps/intset.scm +830 -0
- data/share/guile/2.2/language/cps/licm.scm +308 -0
- data/share/guile/2.2/language/cps/optimize.scm +135 -0
- data/share/guile/2.2/language/cps/peel-loops.scm +287 -0
- data/share/guile/2.2/language/cps/primitives.scm +141 -0
- data/share/guile/2.2/language/cps/prune-bailouts.scm +86 -0
- data/share/guile/2.2/language/cps/prune-top-level-scopes.scm +63 -0
- data/share/guile/2.2/language/cps/reify-primitives.scm +179 -0
- data/share/guile/2.2/language/cps/renumber.scm +217 -0
- data/share/guile/2.2/language/cps/rotate-loops.scm +239 -0
- data/share/guile/2.2/language/cps/self-references.scm +79 -0
- data/share/guile/2.2/language/cps/simplify.scm +274 -0
- data/share/guile/2.2/language/cps/slot-allocation.scm +1058 -0
- data/share/guile/2.2/language/cps/spec.scm +51 -0
- data/share/guile/2.2/language/cps/specialize-numbers.scm +724 -0
- data/share/guile/2.2/language/cps/specialize-primcalls.scm +87 -0
- data/share/guile/2.2/language/cps/split-rec.scm +174 -0
- data/share/guile/2.2/language/cps/type-checks.scm +72 -0
- data/share/guile/2.2/language/cps/type-fold.scm +455 -0
- data/share/guile/2.2/language/cps/types.scm +1826 -0
- data/share/guile/2.2/language/cps/utils.scm +550 -0
- data/share/guile/2.2/language/cps/verify.scm +304 -0
- data/share/guile/2.2/language/cps/with-cps.scm +145 -0
- data/share/guile/2.2/language/cps.scm +358 -0
- data/share/guile/2.2/language/ecmascript/array.scm +121 -0
- data/share/guile/2.2/language/ecmascript/base.scm +251 -0
- data/share/guile/2.2/language/ecmascript/compile-tree-il.scm +576 -0
- data/share/guile/2.2/language/ecmascript/function.scm +78 -0
- data/share/guile/2.2/language/ecmascript/impl.scm +169 -0
- data/share/guile/2.2/language/ecmascript/parse.scm +352 -0
- data/share/guile/2.2/language/ecmascript/spec.scm +37 -0
- data/share/guile/2.2/language/ecmascript/tokenize.scm +513 -0
- data/share/guile/2.2/language/elisp/bindings.scm +107 -0
- data/share/guile/2.2/language/elisp/boot.el +617 -0
- data/share/guile/2.2/language/elisp/compile-tree-il.scm +812 -0
- data/share/guile/2.2/language/elisp/falias.scm +47 -0
- data/share/guile/2.2/language/elisp/lexer.scm +430 -0
- data/share/guile/2.2/language/elisp/parser.scm +222 -0
- data/share/guile/2.2/language/elisp/runtime/function-slot.scm +63 -0
- data/share/guile/2.2/language/elisp/runtime/value-slot.scm +24 -0
- data/share/guile/2.2/language/elisp/runtime.scm +153 -0
- data/share/guile/2.2/language/elisp/spec.scm +43 -0
- data/share/guile/2.2/language/scheme/compile-tree-il.scm +33 -0
- data/share/guile/2.2/language/scheme/decompile-tree-il.scm +796 -0
- data/share/guile/2.2/language/scheme/spec.scm +63 -0
- data/share/guile/2.2/language/tree-il/analyze.scm +1568 -0
- data/share/guile/2.2/language/tree-il/canonicalize.scm +82 -0
- data/share/guile/2.2/language/tree-il/compile-cps.scm +1149 -0
- data/share/guile/2.2/language/tree-il/debug.scm +246 -0
- data/share/guile/2.2/language/tree-il/effects.scm +591 -0
- data/share/guile/2.2/language/tree-il/fix-letrec.scm +314 -0
- data/share/guile/2.2/language/tree-il/optimize.scm +43 -0
- data/share/guile/2.2/language/tree-il/peval.scm +1669 -0
- data/share/guile/2.2/language/tree-il/primitives.scm +630 -0
- data/share/guile/2.2/language/tree-il/spec.scm +46 -0
- data/share/guile/2.2/language/tree-il.scm +630 -0
- data/share/guile/2.2/language/value/spec.scm +30 -0
- data/share/guile/2.2/oop/goops/accessors.scm +72 -0
- data/share/guile/2.2/oop/goops/active-slot.scm +63 -0
- data/share/guile/2.2/oop/goops/composite-slot.scm +83 -0
- data/share/guile/2.2/oop/goops/describe.scm +189 -0
- data/share/guile/2.2/oop/goops/internal.scm +30 -0
- data/share/guile/2.2/oop/goops/save.scm +874 -0
- data/share/guile/2.2/oop/goops/simple.scm +30 -0
- data/share/guile/2.2/oop/goops/stklos.scm +74 -0
- data/share/guile/2.2/oop/goops.scm +3176 -0
- data/share/guile/2.2/rnrs/arithmetic/bitwise.scm +92 -0
- data/share/guile/2.2/rnrs/arithmetic/fixnums.scm +291 -0
- data/share/guile/2.2/rnrs/arithmetic/flonums.scm +203 -0
- data/share/guile/2.2/rnrs/base.scm +291 -0
- data/share/guile/2.2/rnrs/bytevectors.scm +83 -0
- data/share/guile/2.2/rnrs/conditions.scm +225 -0
- data/share/guile/2.2/rnrs/control.scm +22 -0
- data/share/guile/2.2/rnrs/enums.scm +152 -0
- data/share/guile/2.2/rnrs/eval.scm +39 -0
- data/share/guile/2.2/rnrs/exceptions.scm +276 -0
- data/share/guile/2.2/rnrs/files.scm +96 -0
- data/share/guile/2.2/rnrs/hashtables.scm +190 -0
- data/share/guile/2.2/rnrs/io/ports.scm +554 -0
- data/share/guile/2.2/rnrs/io/simple.scm +167 -0
- data/share/guile/2.2/rnrs/lists.scm +55 -0
- data/share/guile/2.2/rnrs/mutable-pairs.scm +23 -0
- data/share/guile/2.2/rnrs/mutable-strings.scm +23 -0
- data/share/guile/2.2/rnrs/programs.scm +22 -0
- data/share/guile/2.2/rnrs/r5rs.scm +34 -0
- data/share/guile/2.2/rnrs/records/inspection.scm +81 -0
- data/share/guile/2.2/rnrs/records/procedural.scm +289 -0
- data/share/guile/2.2/rnrs/records/syntactic.scm +248 -0
- data/share/guile/2.2/rnrs/sorting.scm +27 -0
- data/share/guile/2.2/rnrs/syntax-case.scm +68 -0
- data/share/guile/2.2/rnrs/unicode.scm +104 -0
- data/share/guile/2.2/rnrs.scm +289 -0
- data/share/guile/2.2/scripts/api-diff.scm +179 -0
- data/share/guile/2.2/scripts/autofrisk.scm +218 -0
- data/share/guile/2.2/scripts/compile.scm +273 -0
- data/share/guile/2.2/scripts/disassemble.scm +38 -0
- data/share/guile/2.2/scripts/display-commentary.scm +67 -0
- data/share/guile/2.2/scripts/doc-snarf.scm +439 -0
- data/share/guile/2.2/scripts/frisk.scm +290 -0
- data/share/guile/2.2/scripts/generate-autoload.scm +144 -0
- data/share/guile/2.2/scripts/help.scm +188 -0
- data/share/guile/2.2/scripts/lint.scm +318 -0
- data/share/guile/2.2/scripts/list.scm +91 -0
- data/share/guile/2.2/scripts/punify.scm +87 -0
- data/share/guile/2.2/scripts/read-rfc822.scm +131 -0
- data/share/guile/2.2/scripts/read-scheme-source.scm +282 -0
- data/share/guile/2.2/scripts/read-text-outline.scm +253 -0
- data/share/guile/2.2/scripts/scan-api.scm +223 -0
- data/share/guile/2.2/scripts/snarf-check-and-output-texi.scm +303 -0
- data/share/guile/2.2/scripts/snarf-guile-m4-docs.scm +86 -0
- data/share/guile/2.2/scripts/summarize-guile-TODO.scm +213 -0
- data/share/guile/2.2/scripts/use2dot.scm +110 -0
- data/share/guile/2.2/srfi/srfi-1.scm +1061 -0
- data/share/guile/2.2/srfi/srfi-10.scm +89 -0
- data/share/guile/2.2/srfi/srfi-11.scm +146 -0
- data/share/guile/2.2/srfi/srfi-111.scm +37 -0
- data/share/guile/2.2/srfi/srfi-13.scm +132 -0
- data/share/guile/2.2/srfi/srfi-14.scm +99 -0
- data/share/guile/2.2/srfi/srfi-16.scm +51 -0
- data/share/guile/2.2/srfi/srfi-17.scm +174 -0
- data/share/guile/2.2/srfi/srfi-18.scm +382 -0
- data/share/guile/2.2/srfi/srfi-19.scm +1470 -0
- data/share/guile/2.2/srfi/srfi-2.scm +31 -0
- data/share/guile/2.2/srfi/srfi-26.scm +66 -0
- data/share/guile/2.2/srfi/srfi-27.scm +96 -0
- data/share/guile/2.2/srfi/srfi-28.scm +34 -0
- data/share/guile/2.2/srfi/srfi-31.scm +35 -0
- data/share/guile/2.2/srfi/srfi-34.scm +84 -0
- data/share/guile/2.2/srfi/srfi-35.scm +351 -0
- data/share/guile/2.2/srfi/srfi-37.scm +234 -0
- data/share/guile/2.2/srfi/srfi-38.scm +207 -0
- data/share/guile/2.2/srfi/srfi-39.scm +55 -0
- data/share/guile/2.2/srfi/srfi-4/gnu.scm +80 -0
- data/share/guile/2.2/srfi/srfi-4.scm +118 -0
- data/share/guile/2.2/srfi/srfi-41.scm +505 -0
- data/share/guile/2.2/srfi/srfi-42/ec.scm +1053 -0
- data/share/guile/2.2/srfi/srfi-42.scm +66 -0
- data/share/guile/2.2/srfi/srfi-43.scm +1077 -0
- data/share/guile/2.2/srfi/srfi-45.scm +93 -0
- data/share/guile/2.2/srfi/srfi-6.scm +29 -0
- data/share/guile/2.2/srfi/srfi-60.scm +73 -0
- data/share/guile/2.2/srfi/srfi-64/testing.scm +1040 -0
- data/share/guile/2.2/srfi/srfi-64.scm +55 -0
- data/share/guile/2.2/srfi/srfi-67/compare.scm +686 -0
- data/share/guile/2.2/srfi/srfi-67.scm +88 -0
- data/share/guile/2.2/srfi/srfi-69.scm +336 -0
- data/share/guile/2.2/srfi/srfi-71.scm +267 -0
- data/share/guile/2.2/srfi/srfi-8.scm +31 -0
- data/share/guile/2.2/srfi/srfi-88.scm +53 -0
- data/share/guile/2.2/srfi/srfi-9/gnu.scm +168 -0
- data/share/guile/2.2/srfi/srfi-9.scm +351 -0
- data/share/guile/2.2/srfi/srfi-98.scm +44 -0
- data/share/guile/2.2/statprof.scm +988 -0
- data/share/guile/2.2/sxml/apply-templates.scm +102 -0
- data/share/guile/2.2/sxml/fold.scm +250 -0
- data/share/guile/2.2/sxml/match.scm +75 -0
- data/share/guile/2.2/sxml/simple.scm +408 -0
- data/share/guile/2.2/sxml/ssax/input-parse.scm +180 -0
- data/share/guile/2.2/sxml/ssax.scm +265 -0
- data/share/guile/2.2/sxml/sxml-match.ss +1181 -0
- data/share/guile/2.2/sxml/transform.scm +298 -0
- data/share/guile/2.2/sxml/upstream/SSAX.scm +3235 -0
- data/share/guile/2.2/sxml/upstream/SXML-tree-trans.scm +249 -0
- data/share/guile/2.2/sxml/upstream/SXPath-old.scm +1216 -0
- data/share/guile/2.2/sxml/upstream/assert.scm +35 -0
- data/share/guile/2.2/sxml/upstream/input-parse.scm +326 -0
- data/share/guile/2.2/sxml/xpath.scm +493 -0
- data/share/guile/2.2/system/base/ck.scm +55 -0
- data/share/guile/2.2/system/base/compile.scm +282 -0
- data/share/guile/2.2/system/base/lalr.scm +51 -0
- data/share/guile/2.2/system/base/lalr.upstream.scm +2096 -0
- data/share/guile/2.2/system/base/language.scm +119 -0
- data/share/guile/2.2/system/base/message.scm +238 -0
- data/share/guile/2.2/system/base/pmatch.scm +68 -0
- data/share/guile/2.2/system/base/syntax.scm +299 -0
- data/share/guile/2.2/system/base/target.scm +152 -0
- data/share/guile/2.2/system/base/types.scm +561 -0
- data/share/guile/2.2/system/foreign-object.scm +91 -0
- data/share/guile/2.2/system/foreign.scm +200 -0
- data/share/guile/2.2/system/repl/command.scm +946 -0
- data/share/guile/2.2/system/repl/common.scm +263 -0
- data/share/guile/2.2/system/repl/coop-server.scm +200 -0
- data/share/guile/2.2/system/repl/debug.scm +210 -0
- data/share/guile/2.2/system/repl/describe.scm +347 -0
- data/share/guile/2.2/system/repl/error-handling.scm +183 -0
- data/share/guile/2.2/system/repl/repl.scm +233 -0
- data/share/guile/2.2/system/repl/server.scm +332 -0
- data/share/guile/2.2/system/syntax.scm +33 -0
- data/share/guile/2.2/system/vm/assembler.scm +2614 -0
- data/share/guile/2.2/system/vm/coverage.scm +351 -0
- data/share/guile/2.2/system/vm/debug.scm +766 -0
- data/share/guile/2.2/system/vm/disassembler.scm +658 -0
- data/share/guile/2.2/system/vm/dwarf.scm +1852 -0
- data/share/guile/2.2/system/vm/elf.scm +1042 -0
- data/share/guile/2.2/system/vm/frame.scm +485 -0
- data/share/guile/2.2/system/vm/inspect.scm +188 -0
- data/share/guile/2.2/system/vm/linker.scm +732 -0
- data/share/guile/2.2/system/vm/loader.scm +27 -0
- data/share/guile/2.2/system/vm/program.scm +312 -0
- data/share/guile/2.2/system/vm/trace.scm +121 -0
- data/share/guile/2.2/system/vm/trap-state.scm +302 -0
- data/share/guile/2.2/system/vm/traps.scm +608 -0
- data/share/guile/2.2/system/vm/vm.scm +32 -0
- data/share/guile/2.2/system/xref.scm +369 -0
- data/share/guile/2.2/texinfo/docbook.scm +240 -0
- data/share/guile/2.2/texinfo/html.scm +279 -0
- data/share/guile/2.2/texinfo/indexing.scm +75 -0
- data/share/guile/2.2/texinfo/plain-text.scm +322 -0
- data/share/guile/2.2/texinfo/reflection.scm +585 -0
- data/share/guile/2.2/texinfo/serialize.scm +300 -0
- data/share/guile/2.2/texinfo/string-utils.scm +410 -0
- data/share/guile/2.2/texinfo.scm +1263 -0
- data/share/guile/2.2/web/client.scm +513 -0
- data/share/guile/2.2/web/http.scm +2043 -0
- data/share/guile/2.2/web/request.scm +326 -0
- data/share/guile/2.2/web/response.scm +379 -0
- data/share/guile/2.2/web/server/http.scm +183 -0
- data/share/guile/2.2/web/server.scm +397 -0
- data/share/guile/2.2/web/uri.scm +552 -0
- data/share/lilypond/2.24.1/fontconfig/0bd3dc0958fa2205aaaa8ebb13e2872b-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/188ac73a183f12857f63bb60a4a6d603-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/32b6488e5b8292a2e95c79d947e009e8-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/3830d5c3ddfd5cd38a049b759396e72e-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/3f7329c5293ffd510edef78f73874cfd-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/4c599c202bc5c08e2d34565a40eac3b2-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/57e423e26b20ab21d0f2f29c145174c3-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/7ef2298fde41cc6eeb7af42e48b7d293-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/826f6b6ef79022e2eac8af26bf4b62f2-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/95530828ff6c81d309f8258d8d02a23e-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/CACHEDIR.TAG +4 -0
- data/share/lilypond/2.24.1/fontconfig/bf3b770c553c462765856025a94f1ce6-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/c855463f699352c367813e37f3f70ea7-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/d3e5c4ee2ceb1fc347f91d4cefc53bc0-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/d589a48862398ed80a3d6066f4f56f4c-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/d82eb4fd963d448e2fcb7d7b793b5df3-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/e13b20fdb08344e0e664864cc2ede53d-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/e52a45a1c8c8fe895fc0fc8c4e6999b8-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fontconfig/f1f2465696798768e9653f19e17ccdc8-le64.cache-8 +0 -0
- data/share/lilypond/2.24.1/fonts/00-lilypond-fonts.conf +99 -0
- data/share/lilypond/2.24.1/fonts/99-lilypond-fonts.conf +28 -0
- data/share/lilypond/2.24.1/fonts/otf/C059-BdIta.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/C059-Bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/C059-Italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/C059-Roman.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-Bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-BoldItalic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-Italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusMonoPS-Regular.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusSans-Bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusSans-BoldItalic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusSans-Italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/NimbusSans-Regular.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-11.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-13.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-14.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-16.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-18.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-20.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-23.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-26.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/emmentaler-brace.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-bolditalic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyrecursor-regular.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreheros-bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreheros-bolditalic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreheros-italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreheros-regular.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreschola-bold.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreschola-bolditalic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreschola-italic.otf +0 -0
- data/share/lilypond/2.24.1/fonts/otf/texgyreschola-regular.otf +0 -0
- data/share/lilypond/2.24.1/fonts/source/common-modules-and-initialization.mf +26 -0
- data/share/lilypond/2.24.1/fonts/source/debugging-settings.mf +14 -0
- data/share/lilypond/2.24.1/fonts/source/declare-autometric-parameters.mf +9 -0
- data/share/lilypond/2.24.1/fonts/source/feta-accidentals.mf +58 -0
- data/share/lilypond/2.24.1/fonts/source/feta-accordion.mf +575 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet-generic.mf +16 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet20.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-alphabet26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-arrow.mf +114 -0
- data/share/lilypond/2.24.1/fonts/source/feta-arrowheads.mf +171 -0
- data/share/lilypond/2.24.1/fonts/source/feta-autometric.mf +303 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-a.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-b.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-c.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-d.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-e.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-f.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-g.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-generic.mf +47 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-h.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces-i.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-braces.mf +125 -0
- data/share/lilypond/2.24.1/fonts/source/feta-brackettips.mf +100 -0
- data/share/lilypond/2.24.1/fonts/source/feta-clefs.mf +963 -0
- data/share/lilypond/2.24.1/fonts/source/feta-dots.mf +37 -0
- data/share/lilypond/2.24.1/fonts/source/feta-dynamics.mf +891 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags-generic.mf +17 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags.mf +926 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags20.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flags26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-flats.mf +668 -0
- data/share/lilypond/2.24.1/fonts/source/feta-macros.mf +506 -0
- data/share/lilypond/2.24.1/fonts/source/feta-naturals.mf +223 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads-generic.mf +17 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads.mf +2642 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads20.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-noteheads26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta-numbers.mf +1677 -0
- data/share/lilypond/2.24.1/fonts/source/feta-other-generic.mf +27 -0
- data/share/lilypond/2.24.1/fonts/source/feta-params.mf +323 -0
- data/share/lilypond/2.24.1/fonts/source/feta-parenthesis.mf +63 -0
- data/share/lilypond/2.24.1/fonts/source/feta-pedals.mf +355 -0
- data/share/lilypond/2.24.1/fonts/source/feta-rests.mf +890 -0
- data/share/lilypond/2.24.1/fonts/source/feta-scripts.mf +2206 -0
- data/share/lilypond/2.24.1/fonts/source/feta-sharps.mf +524 -0
- data/share/lilypond/2.24.1/fonts/source/feta-sori-koron.mf +325 -0
- data/share/lilypond/2.24.1/fonts/source/feta-ties.mf +72 -0
- data/share/lilypond/2.24.1/fonts/source/feta-timesignatures.mf +119 -0
- data/share/lilypond/2.24.1/fonts/source/feta-trills.mf +321 -0
- data/share/lilypond/2.24.1/fonts/source/feta11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta20.mf +7 -0
- data/share/lilypond/2.24.1/fonts/source/feta23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/feta26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-accidentals.mf +483 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-clefs.mf +1636 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-custodes.mf +503 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-dots.mf +62 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-flags.mf +319 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-macros.mf +225 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads-generic.mf +16 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads.mf +2191 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads20.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-noteheads26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-other-generic.mf +24 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-rests.mf +428 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-scripts.mf +284 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan-timesignatures.mf +402 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan11.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan13.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan14.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan16.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan18.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan20.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan23.mf +6 -0
- data/share/lilypond/2.24.1/fonts/source/parmesan26.mf +6 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-11.svg +2525 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-11.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-13.svg +2530 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-13.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-14.svg +2526 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-14.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-16.svg +2523 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-16.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-18.svg +2519 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-18.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-20.svg +2512 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-20.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-23.svg +2506 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-23.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-26.svg +2510 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-26.woff +0 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-brace.svg +1757 -0
- data/share/lilypond/2.24.1/fonts/svg/emmentaler-brace.woff +0 -0
- data/share/lilypond/2.24.1/ly/Welcome_to_LilyPond.ly +45 -0
- data/share/lilypond/2.24.1/ly/arabic.ly +185 -0
- data/share/lilypond/2.24.1/ly/articulate.ly +1013 -0
- data/share/lilypond/2.24.1/ly/bagpipe.ly +368 -0
- data/share/lilypond/2.24.1/ly/base-tkit.ly +135 -0
- data/share/lilypond/2.24.1/ly/catalan.ly +23 -0
- data/share/lilypond/2.24.1/ly/chord-modifiers-init.ly +63 -0
- data/share/lilypond/2.24.1/ly/chord-repetition-init.ly +60 -0
- data/share/lilypond/2.24.1/ly/context-mods-init.ly +119 -0
- data/share/lilypond/2.24.1/ly/declarations-init.ly +167 -0
- data/share/lilypond/2.24.1/ly/deutsch.ly +23 -0
- data/share/lilypond/2.24.1/ly/drumpitch-init.ly +366 -0
- data/share/lilypond/2.24.1/ly/dynamic-scripts-init.ly +54 -0
- data/share/lilypond/2.24.1/ly/english.ly +23 -0
- data/share/lilypond/2.24.1/ly/engraver-init.ly +1619 -0
- data/share/lilypond/2.24.1/ly/espanol.ly +23 -0
- data/share/lilypond/2.24.1/ly/event-listener.ly +241 -0
- data/share/lilypond/2.24.1/ly/festival.ly +38 -0
- data/share/lilypond/2.24.1/ly/generate-documentation.ly +7 -0
- data/share/lilypond/2.24.1/ly/grace-init.ly +56 -0
- data/share/lilypond/2.24.1/ly/graphviz-init.ly +174 -0
- data/share/lilypond/2.24.1/ly/gregorian.ly +268 -0
- data/share/lilypond/2.24.1/ly/guile-debugger.ly +55 -0
- data/share/lilypond/2.24.1/ly/hel-arabic.ly +307 -0
- data/share/lilypond/2.24.1/ly/init.ly +96 -0
- data/share/lilypond/2.24.1/ly/italiano.ly +23 -0
- data/share/lilypond/2.24.1/ly/lilypond-book-preamble.ly +47 -0
- data/share/lilypond/2.24.1/ly/lyrics-tkit.ly +68 -0
- data/share/lilypond/2.24.1/ly/makam.ly +166 -0
- data/share/lilypond/2.24.1/ly/midi-init.ly +59 -0
- data/share/lilypond/2.24.1/ly/music-functions-init.ly +2254 -0
- data/share/lilypond/2.24.1/ly/nederlands.ly +23 -0
- data/share/lilypond/2.24.1/ly/norsk.ly +23 -0
- data/share/lilypond/2.24.1/ly/paper-defaults-init.ly +188 -0
- data/share/lilypond/2.24.1/ly/performer-init.ly +398 -0
- data/share/lilypond/2.24.1/ly/persian.ly +335 -0
- data/share/lilypond/2.24.1/ly/piano-tkit.ly +61 -0
- data/share/lilypond/2.24.1/ly/portugues.ly +23 -0
- data/share/lilypond/2.24.1/ly/predefined-fretboards-init.ly +78 -0
- data/share/lilypond/2.24.1/ly/predefined-guitar-fretboards.ly +506 -0
- data/share/lilypond/2.24.1/ly/predefined-guitar-ninth-fretboards.ly +75 -0
- data/share/lilypond/2.24.1/ly/predefined-mandolin-fretboards.ly +876 -0
- data/share/lilypond/2.24.1/ly/predefined-ukulele-fretboards.ly +1285 -0
- data/share/lilypond/2.24.1/ly/property-init.ly +858 -0
- data/share/lilypond/2.24.1/ly/satb.ly +214 -0
- data/share/lilypond/2.24.1/ly/scale-definitions-init.ly +117 -0
- data/share/lilypond/2.24.1/ly/scheme-sandbox.ly +39 -0
- data/share/lilypond/2.24.1/ly/script-init.ly +94 -0
- data/share/lilypond/2.24.1/ly/spanners-init.ly +146 -0
- data/share/lilypond/2.24.1/ly/ssaattbb.ly +335 -0
- data/share/lilypond/2.24.1/ly/staff-tkit.ly +182 -0
- data/share/lilypond/2.24.1/ly/string-tunings-init.ly +94 -0
- data/share/lilypond/2.24.1/ly/suomi.ly +23 -0
- data/share/lilypond/2.24.1/ly/svenska.ly +23 -0
- data/share/lilypond/2.24.1/ly/swing.ly +362 -0
- data/share/lilypond/2.24.1/ly/text-replacements.ly +150 -0
- data/share/lilypond/2.24.1/ly/titling-init.ly +150 -0
- data/share/lilypond/2.24.1/ly/toc-init.ly +182 -0
- data/share/lilypond/2.24.1/ly/turkish-makam.ly +609 -0
- data/share/lilypond/2.24.1/ly/vlaams.ly +23 -0
- data/share/lilypond/2.24.1/ly/vocal-tkit.ly +103 -0
- data/share/lilypond/2.24.1/ly/voice-tkit.ly +34 -0
- data/share/lilypond/2.24.1/ps/encodingdefs.ps +2611 -0
- data/share/lilypond/2.24.1/ps/lilyponddefs.ps +49 -0
- data/share/lilypond/2.24.1/ps/music-drawing-routines.ps +329 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_base.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_docbook.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_html.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_latex.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_snippets.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/book_texinfo.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/convertrules.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/langdefs.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/lilylib.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/midi.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/musicexp.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/musicxml.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/musicxml2ly_conversion.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/__pycache__/utilities.cpython-310.pyc +0 -0
- data/share/lilypond/2.24.1/python/book_base.py +331 -0
- data/share/lilypond/2.24.1/python/book_docbook.py +154 -0
- data/share/lilypond/2.24.1/python/book_html.py +178 -0
- data/share/lilypond/2.24.1/python/book_latex.py +373 -0
- data/share/lilypond/2.24.1/python/book_snippets.py +1052 -0
- data/share/lilypond/2.24.1/python/book_texinfo.py +437 -0
- data/share/lilypond/2.24.1/python/convertrules.py +4764 -0
- data/share/lilypond/2.24.1/python/langdefs.py +131 -0
- data/share/lilypond/2.24.1/python/lilylib.py +141 -0
- data/share/lilypond/2.24.1/python/midi.py +212 -0
- data/share/lilypond/2.24.1/python/musicexp.py +2781 -0
- data/share/lilypond/2.24.1/python/musicxml.py +1905 -0
- data/share/lilypond/2.24.1/python/musicxml2ly_conversion.py +80 -0
- data/share/lilypond/2.24.1/python/utilities.py +280 -0
- data/share/lilypond/2.24.1/scm/lily/accreg.scm +579 -0
- data/share/lilypond/2.24.1/scm/lily/auto-beam.scm +163 -0
- data/share/lilypond/2.24.1/scm/lily/autochange.scm +100 -0
- data/share/lilypond/2.24.1/scm/lily/backend-library.scm +593 -0
- data/share/lilypond/2.24.1/scm/lily/bar-line.scm +1281 -0
- data/share/lilypond/2.24.1/scm/lily/breath.scm +74 -0
- data/share/lilypond/2.24.1/scm/lily/c++.scm +174 -0
- data/share/lilypond/2.24.1/scm/lily/chord-entry.scm +278 -0
- data/share/lilypond/2.24.1/scm/lily/chord-ignatzek-names.scm +304 -0
- data/share/lilypond/2.24.1/scm/lily/chord-name.scm +217 -0
- data/share/lilypond/2.24.1/scm/lily/clip-region.scm +87 -0
- data/share/lilypond/2.24.1/scm/lily/color.scm +757 -0
- data/share/lilypond/2.24.1/scm/lily/curried-definitions.scm +68 -0
- data/share/lilypond/2.24.1/scm/lily/define-context-properties.scm +939 -0
- data/share/lilypond/2.24.1/scm/lily/define-event-classes.scm +142 -0
- data/share/lilypond/2.24.1/scm/lily/define-grob-interfaces.scm +640 -0
- data/share/lilypond/2.24.1/scm/lily/define-grob-properties.scm +1647 -0
- data/share/lilypond/2.24.1/scm/lily/define-grobs.scm +4027 -0
- data/share/lilypond/2.24.1/scm/lily/define-markup-commands.scm +5737 -0
- data/share/lilypond/2.24.1/scm/lily/define-music-callbacks.scm +257 -0
- data/share/lilypond/2.24.1/scm/lily/define-music-display-methods.scm +1350 -0
- data/share/lilypond/2.24.1/scm/lily/define-music-properties.scm +242 -0
- data/share/lilypond/2.24.1/scm/lily/define-music-types.scm +983 -0
- data/share/lilypond/2.24.1/scm/lily/define-note-names.scm +1421 -0
- data/share/lilypond/2.24.1/scm/lily/define-stencil-commands.scm +71 -0
- data/share/lilypond/2.24.1/scm/lily/define-woodwind-diagrams.scm +1215 -0
- data/share/lilypond/2.24.1/scm/lily/display-lily.scm +315 -0
- data/share/lilypond/2.24.1/scm/lily/display-woodwind-diagrams.scm +1985 -0
- data/share/lilypond/2.24.1/scm/lily/document-backend.scm +307 -0
- data/share/lilypond/2.24.1/scm/lily/document-context-mods.scm +98 -0
- data/share/lilypond/2.24.1/scm/lily/document-functions.scm +169 -0
- data/share/lilypond/2.24.1/scm/lily/document-identifiers.scm +76 -0
- data/share/lilypond/2.24.1/scm/lily/document-markup.scm +158 -0
- data/share/lilypond/2.24.1/scm/lily/document-music.scm +146 -0
- data/share/lilypond/2.24.1/scm/lily/document-outside-staff-priorities.scm +40 -0
- data/share/lilypond/2.24.1/scm/lily/document-paper-sizes.scm +71 -0
- data/share/lilypond/2.24.1/scm/lily/document-translation.scm +318 -0
- data/share/lilypond/2.24.1/scm/lily/document-type-predicates.scm +85 -0
- data/share/lilypond/2.24.1/scm/lily/documentation-generate.scm +259 -0
- data/share/lilypond/2.24.1/scm/lily/documentation-lib.scm +207 -0
- data/share/lilypond/2.24.1/scm/lily/file-cache.scm +28 -0
- data/share/lilypond/2.24.1/scm/lily/flag-styles.scm +249 -0
- data/share/lilypond/2.24.1/scm/lily/font-encodings.scm +1242 -0
- data/share/lilypond/2.24.1/scm/lily/font.scm +303 -0
- data/share/lilypond/2.24.1/scm/lily/framework-cairo.scm +26 -0
- data/share/lilypond/2.24.1/scm/lily/framework-ps.scm +896 -0
- data/share/lilypond/2.24.1/scm/lily/framework-svg.scm +172 -0
- data/share/lilypond/2.24.1/scm/lily/fret-diagrams.scm +1261 -0
- data/share/lilypond/2.24.1/scm/lily/graphviz.scm +78 -0
- data/share/lilypond/2.24.1/scm/lily/guile-debugger.scm +90 -0
- data/share/lilypond/2.24.1/scm/lily/harp-pedals.scm +172 -0
- data/share/lilypond/2.24.1/scm/lily/hyphenate-internal-words.scm +51 -0
- data/share/lilypond/2.24.1/scm/lily/layout-beam.scm +73 -0
- data/share/lilypond/2.24.1/scm/lily/layout-slur.scm +45 -0
- data/share/lilypond/2.24.1/scm/lily/lily-library.scm +1446 -0
- data/share/lilypond/2.24.1/scm/lily/lily-sort.scm +116 -0
- data/share/lilypond/2.24.1/scm/lily/lily.scm +929 -0
- data/share/lilypond/2.24.1/scm/lily/ly-syntax-constructors.scm +374 -0
- data/share/lilypond/2.24.1/scm/lily/markup-macros.scm +493 -0
- data/share/lilypond/2.24.1/scm/lily/markup.scm +126 -0
- data/share/lilypond/2.24.1/scm/lily/midi.scm +258 -0
- data/share/lilypond/2.24.1/scm/lily/modal-transforms.scm +337 -0
- data/share/lilypond/2.24.1/scm/lily/music-functions.scm +2878 -0
- data/share/lilypond/2.24.1/scm/lily/output-lib.scm +3377 -0
- data/share/lilypond/2.24.1/scm/lily/output-ps.scm +335 -0
- data/share/lilypond/2.24.1/scm/lily/output-svg.scm +684 -0
- data/share/lilypond/2.24.1/scm/lily/page.scm +321 -0
- data/share/lilypond/2.24.1/scm/lily/paper-system.scm +271 -0
- data/share/lilypond/2.24.1/scm/lily/paper.scm +376 -0
- data/share/lilypond/2.24.1/scm/lily/parser-clef.scm +205 -0
- data/share/lilypond/2.24.1/scm/lily/parser-ly-from-scheme.scm +170 -0
- data/share/lilypond/2.24.1/scm/lily/part-combiner.scm +998 -0
- data/share/lilypond/2.24.1/scm/lily/predefined-fretboards.scm +54 -0
- data/share/lilypond/2.24.1/scm/lily/ps-to-png.scm +182 -0
- data/share/lilypond/2.24.1/scm/lily/scheme-engravers.scm +1813 -0
- data/share/lilypond/2.24.1/scm/lily/scheme-performers.scm +126 -0
- data/share/lilypond/2.24.1/scm/lily/script.scm +416 -0
- data/share/lilypond/2.24.1/scm/lily/skyline.scm +25 -0
- data/share/lilypond/2.24.1/scm/lily/song-util.scm +191 -0
- data/share/lilypond/2.24.1/scm/lily/song.scm +853 -0
- data/share/lilypond/2.24.1/scm/lily/stencil.scm +998 -0
- data/share/lilypond/2.24.1/scm/lily/tablature.scm +392 -0
- data/share/lilypond/2.24.1/scm/lily/time-signature-settings.scm +473 -0
- data/share/lilypond/2.24.1/scm/lily/time-signature.scm +35 -0
- data/share/lilypond/2.24.1/scm/lily/titling.scm +99 -0
- data/share/lilypond/2.24.1/scm/lily/to-xml.scm +254 -0
- data/share/lilypond/2.24.1/scm/lily/translation-functions.scm +1169 -0
- data/share/lilypond/2.24.1/vim/compiler/lilypond.vim +36 -0
- data/share/lilypond/2.24.1/vim/ftdetect/lilypond.vim +4 -0
- data/share/lilypond/2.24.1/vim/ftplugin/lilypond.vim +91 -0
- data/share/lilypond/2.24.1/vim/indent/lilypond.vim +79 -0
- data/share/lilypond/2.24.1/vim/syntax/lilypond-words +1408 -0
- data/share/lilypond/2.24.1/vim/syntax/lilypond-words.vim +3 -0
- data/share/lilypond/2.24.1/vim/syntax/lilypond.vim +104 -0
- data/share/locale/ca/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/cs/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/da/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/de/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/el/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/eo/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/es/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/fi/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/fr/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/it/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/ja/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/nl/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/ru/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/sv/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/tr/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/uk/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/vi/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/zh_CN/LC_MESSAGES/lilypond.mo +0 -0
- data/share/locale/zh_TW/LC_MESSAGES/lilypond.mo +0 -0
- metadata +1135 -4
@@ -0,0 +1,788 @@
|
|
1
|
+
;;; Ports, implemented in Scheme
|
2
|
+
;;; Copyright (C) 2016, 2019 Free Software Foundation, Inc.
|
3
|
+
;;;
|
4
|
+
;;; This library is free software: you can redistribute it and/or modify
|
5
|
+
;;; it under the terms of the GNU Lesser General Public License as
|
6
|
+
;;; published by the Free Software Foundation, either version 3 of the
|
7
|
+
;;; License, or (at your option) any later version.
|
8
|
+
;;;
|
9
|
+
;;; This library is distributed in the hope that it will be useful, but
|
10
|
+
;;; WITHOUT ANY WARRANTY; without even the implied warranty of
|
11
|
+
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
12
|
+
;;; Lesser General Public License for more details.
|
13
|
+
;;;
|
14
|
+
;;; You should have received a copy of the GNU Lesser General Public
|
15
|
+
;;; License along with this program. If not, see
|
16
|
+
;;; <http://www.gnu.org/licenses/>.
|
17
|
+
|
18
|
+
;;; Commentary:
|
19
|
+
;;;
|
20
|
+
;;; We would like to be able to implement green threads using delimited
|
21
|
+
;;; continuations. When a green thread would block on I/O, it should
|
22
|
+
;;; suspend and arrange to be resumed when it can make progress.
|
23
|
+
;;;
|
24
|
+
;;; The problem is that the ports code is written in C. A delimited
|
25
|
+
;;; continuation that captures a C activation can't be resumed, because
|
26
|
+
;;; Guile doesn't know about the internal structure of the C activation
|
27
|
+
;;; (stack frame) and so can't compose it with the current continuation.
|
28
|
+
;;; For that reason, to implement this desired future, we have to
|
29
|
+
;;; implement ports in Scheme.
|
30
|
+
;;;
|
31
|
+
;;; If Scheme were fast enough, we would just implement ports in Scheme
|
32
|
+
;;; early in Guile's boot, and that would be that. However currently
|
33
|
+
;;; that's not the case: character-by-character I/O is about three or
|
34
|
+
;;; four times slower in Scheme than in C. This is mostly bytecode
|
35
|
+
;;; overhead, though there are some ways that compiler improvements
|
36
|
+
;;; could help us too.
|
37
|
+
;;;
|
38
|
+
;;; Note that the difference between Scheme and C is much less for
|
39
|
+
;;; batched operations, like read-bytes or read-line.
|
40
|
+
;;;
|
41
|
+
;;; So the upshot is that we need to keep the C I/O routines around for
|
42
|
+
;;; performance reasons. We can still have our Scheme routines
|
43
|
+
;;; available as a module, though, for use by people working with green
|
44
|
+
;;; threads. That's this module. People that want green threads can
|
45
|
+
;;; even replace the core bindings, which enables green threading over
|
46
|
+
;;; other generic routines like the HTTP server.
|
47
|
+
;;;
|
48
|
+
;;; Code:
|
49
|
+
|
50
|
+
|
51
|
+
(define-module (ice-9 suspendable-ports)
|
52
|
+
#:use-module (rnrs bytevectors)
|
53
|
+
#:use-module (ice-9 ports internal)
|
54
|
+
#:use-module (ice-9 match)
|
55
|
+
#:export (current-read-waiter
|
56
|
+
current-write-waiter
|
57
|
+
|
58
|
+
install-suspendable-ports!
|
59
|
+
uninstall-suspendable-ports!))
|
60
|
+
|
61
|
+
(define (default-read-waiter port) (port-poll port "r"))
|
62
|
+
(define (default-write-waiter port) (port-poll port "w"))
|
63
|
+
|
64
|
+
(define current-read-waiter (make-parameter default-read-waiter))
|
65
|
+
(define current-write-waiter (make-parameter default-write-waiter))
|
66
|
+
|
67
|
+
(define (wait-for-readable port) ((current-read-waiter) port))
|
68
|
+
(define (wait-for-writable port) ((current-write-waiter) port))
|
69
|
+
|
70
|
+
(define (read-bytes port dst start count)
|
71
|
+
(cond
|
72
|
+
(((port-read port) port dst start count)
|
73
|
+
=> (lambda (read)
|
74
|
+
(unless (<= 0 read count)
|
75
|
+
(error "bad return from port read function" read))
|
76
|
+
read))
|
77
|
+
(else
|
78
|
+
(wait-for-readable port)
|
79
|
+
(read-bytes port dst start count))))
|
80
|
+
|
81
|
+
(define (write-bytes port src start count)
|
82
|
+
(cond
|
83
|
+
(((port-write port) port src start count)
|
84
|
+
=> (lambda (written)
|
85
|
+
(unless (<= 0 written count)
|
86
|
+
(error "bad return from port write function" written))
|
87
|
+
(when (< written count)
|
88
|
+
(write-bytes port src (+ start written) (- count written)))))
|
89
|
+
(else
|
90
|
+
(wait-for-writable port)
|
91
|
+
(write-bytes port src start count))))
|
92
|
+
|
93
|
+
(define (flush-input port)
|
94
|
+
(let* ((buf (port-read-buffer port))
|
95
|
+
(cur (port-buffer-cur buf))
|
96
|
+
(end (port-buffer-end buf)))
|
97
|
+
(when (< cur end)
|
98
|
+
(set-port-buffer-cur! buf 0)
|
99
|
+
(set-port-buffer-end! buf 0)
|
100
|
+
(seek port (- cur end) SEEK_CUR))))
|
101
|
+
|
102
|
+
(define (flush-output port)
|
103
|
+
(let* ((buf (port-write-buffer port))
|
104
|
+
(cur (port-buffer-cur buf))
|
105
|
+
(end (port-buffer-end buf)))
|
106
|
+
(when (< cur end)
|
107
|
+
;; Update cursors before attempting to write, assuming that I/O
|
108
|
+
;; errors are sticky. That way if the write throws an error,
|
109
|
+
;; causing the computation to abort, and possibly causing the port
|
110
|
+
;; to be collected by GC when it's open, any subsequent close-port
|
111
|
+
;; or force-output won't signal *another* error.
|
112
|
+
(set-port-buffer-cur! buf 0)
|
113
|
+
(set-port-buffer-end! buf 0)
|
114
|
+
(write-bytes port (port-buffer-bytevector buf) cur (- end cur)))))
|
115
|
+
|
116
|
+
(define utf8-bom #vu8(#xEF #xBB #xBF))
|
117
|
+
(define utf16be-bom #vu8(#xFE #xFF))
|
118
|
+
(define utf16le-bom #vu8(#xFF #xFE))
|
119
|
+
(define utf32be-bom #vu8(#x00 #x00 #xFE #xFF))
|
120
|
+
(define utf32le-bom #vu8(#xFF #xFE #x00 #x00))
|
121
|
+
|
122
|
+
(define (clear-stream-start-for-bom-read port io-mode)
|
123
|
+
(define (maybe-consume-bom bom)
|
124
|
+
(and (eq? (peek-byte port) (bytevector-u8-ref bom 0))
|
125
|
+
(call-with-values (lambda ()
|
126
|
+
(fill-input port (bytevector-length bom)))
|
127
|
+
(lambda (buf cur buffered)
|
128
|
+
(and (<= (bytevector-length bom) buffered)
|
129
|
+
(let ((bv (port-buffer-bytevector buf)))
|
130
|
+
(let lp ((i 1))
|
131
|
+
(if (= i (bytevector-length bom))
|
132
|
+
(begin
|
133
|
+
(set-port-buffer-cur! buf (+ cur i))
|
134
|
+
#t)
|
135
|
+
(and (eq? (bytevector-u8-ref bv (+ cur i))
|
136
|
+
(bytevector-u8-ref bom i))
|
137
|
+
(lp (1+ i)))))))))))
|
138
|
+
(when (and (port-clear-stream-start-for-bom-read port)
|
139
|
+
(eq? io-mode 'text))
|
140
|
+
(case (%port-encoding port)
|
141
|
+
((UTF-8)
|
142
|
+
(maybe-consume-bom utf8-bom))
|
143
|
+
((UTF-16)
|
144
|
+
(cond
|
145
|
+
((maybe-consume-bom utf16le-bom)
|
146
|
+
(specialize-port-encoding! port 'UTF-16LE))
|
147
|
+
(else
|
148
|
+
(maybe-consume-bom utf16be-bom)
|
149
|
+
(specialize-port-encoding! port 'UTF-16BE))))
|
150
|
+
((UTF-32)
|
151
|
+
(cond
|
152
|
+
((maybe-consume-bom utf32le-bom)
|
153
|
+
(specialize-port-encoding! port 'UTF-32LE))
|
154
|
+
(else
|
155
|
+
(maybe-consume-bom utf32be-bom)
|
156
|
+
(specialize-port-encoding! port 'UTF-32BE)))))))
|
157
|
+
|
158
|
+
(define* (fill-input port #:optional (minimum-buffering 1) (io-mode 'text))
|
159
|
+
(clear-stream-start-for-bom-read port io-mode)
|
160
|
+
(let* ((buf (port-read-buffer port))
|
161
|
+
(cur (port-buffer-cur buf))
|
162
|
+
(buffered (max (- (port-buffer-end buf) cur) 0)))
|
163
|
+
(cond
|
164
|
+
((or (<= minimum-buffering buffered) (port-buffer-has-eof? buf))
|
165
|
+
(values buf cur buffered))
|
166
|
+
(else
|
167
|
+
(unless (input-port? port)
|
168
|
+
(error "not an input port" port))
|
169
|
+
(when (port-random-access? port)
|
170
|
+
(flush-output port))
|
171
|
+
(let ((bv (port-buffer-bytevector buf)))
|
172
|
+
(cond
|
173
|
+
((< (bytevector-length bv) minimum-buffering)
|
174
|
+
(expand-port-read-buffer! port minimum-buffering)
|
175
|
+
(fill-input port minimum-buffering))
|
176
|
+
(else
|
177
|
+
(when (< 0 cur)
|
178
|
+
(bytevector-copy! bv cur bv 0 buffered)
|
179
|
+
(set-port-buffer-cur! buf 0)
|
180
|
+
(set-port-buffer-end! buf buffered))
|
181
|
+
(let ((buffering (max (port-read-buffering port) minimum-buffering)))
|
182
|
+
(let lp ((buffered buffered))
|
183
|
+
(let* ((count (- buffering buffered))
|
184
|
+
(read (read-bytes port bv buffered count)))
|
185
|
+
(cond
|
186
|
+
((zero? read)
|
187
|
+
(set-port-buffer-has-eof?! buf #t)
|
188
|
+
(values buf 0 buffered))
|
189
|
+
(else
|
190
|
+
(let ((buffered (+ buffered read)))
|
191
|
+
(set-port-buffer-end! buf buffered)
|
192
|
+
(if (< buffered minimum-buffering)
|
193
|
+
(lp buffered)
|
194
|
+
(values buf 0 buffered)))))))))))))))
|
195
|
+
|
196
|
+
(define* (force-output #:optional (port (current-output-port)))
|
197
|
+
(unless (and (output-port? port) (not (port-closed? port)))
|
198
|
+
(error "not an open output port" port))
|
199
|
+
(flush-output port))
|
200
|
+
|
201
|
+
(define close-port
|
202
|
+
(let ((%close-port (@ (guile) close-port)))
|
203
|
+
(lambda (port)
|
204
|
+
(cond
|
205
|
+
((port-closed? port) #f)
|
206
|
+
(else
|
207
|
+
(when (output-port? port) (flush-output port))
|
208
|
+
(%close-port port))))))
|
209
|
+
|
210
|
+
(define-inlinable (peek-bytes port count kfast kslow)
|
211
|
+
(let* ((buf (port-read-buffer port))
|
212
|
+
(cur (port-buffer-cur buf))
|
213
|
+
(buffered (- (port-buffer-end buf) cur)))
|
214
|
+
(if (<= count buffered)
|
215
|
+
(kfast buf (port-buffer-bytevector buf) cur buffered)
|
216
|
+
(call-with-values (lambda () (fill-input port count))
|
217
|
+
(lambda (buf cur buffered)
|
218
|
+
(kslow buf (port-buffer-bytevector buf) cur buffered))))))
|
219
|
+
|
220
|
+
(define (peek-byte port)
|
221
|
+
(peek-bytes port 1
|
222
|
+
(lambda (buf bv cur buffered)
|
223
|
+
(bytevector-u8-ref bv cur))
|
224
|
+
(lambda (buf bv cur buffered)
|
225
|
+
(and (> buffered 0)
|
226
|
+
(bytevector-u8-ref bv cur)))))
|
227
|
+
|
228
|
+
(define* (lookahead-u8 port)
|
229
|
+
(define (fast-path buf bv cur buffered)
|
230
|
+
(bytevector-u8-ref bv cur))
|
231
|
+
(define (slow-path buf bv cur buffered)
|
232
|
+
(if (zero? buffered)
|
233
|
+
the-eof-object
|
234
|
+
(fast-path buf bv cur buffered)))
|
235
|
+
(peek-bytes port 1 fast-path slow-path))
|
236
|
+
|
237
|
+
(define* (get-u8 port)
|
238
|
+
(define (fast-path buf bv cur buffered)
|
239
|
+
(set-port-buffer-cur! buf (1+ cur))
|
240
|
+
(bytevector-u8-ref bv cur))
|
241
|
+
(define (slow-path buf bv cur buffered)
|
242
|
+
(if (zero? buffered)
|
243
|
+
(begin
|
244
|
+
(set-port-buffer-has-eof?! buf #f)
|
245
|
+
the-eof-object)
|
246
|
+
(fast-path buf bv cur buffered)))
|
247
|
+
(peek-bytes port 1 fast-path slow-path))
|
248
|
+
|
249
|
+
(define (get-bytevector-n! port bv start count)
|
250
|
+
(define (port-buffer-take! pos buf cur to-copy)
|
251
|
+
(bytevector-copy! (port-buffer-bytevector buf) cur
|
252
|
+
bv pos to-copy)
|
253
|
+
(set-port-buffer-cur! buf (+ cur to-copy))
|
254
|
+
(+ pos to-copy))
|
255
|
+
(define (take-already-buffered)
|
256
|
+
(let* ((buf (port-read-buffer port))
|
257
|
+
(cur (port-buffer-cur buf))
|
258
|
+
(buffered (max (- (port-buffer-end buf) cur) 0)))
|
259
|
+
(port-buffer-take! start buf cur (min count buffered))))
|
260
|
+
(define (buffer-and-fill pos)
|
261
|
+
(call-with-values (lambda () (fill-input port 1 'binary))
|
262
|
+
(lambda (buf cur buffered)
|
263
|
+
(if (zero? buffered)
|
264
|
+
;; We found EOF, which is marked in the port read buffer.
|
265
|
+
;; If we haven't read any bytes yet, clear the EOF from the
|
266
|
+
;; buffer and return it. Otherwise return the number of
|
267
|
+
;; bytes that we have read.
|
268
|
+
(if (= pos start)
|
269
|
+
(begin
|
270
|
+
(set-port-buffer-has-eof?! buf #f)
|
271
|
+
the-eof-object)
|
272
|
+
(- pos start))
|
273
|
+
(let ((pos (port-buffer-take! pos buf cur
|
274
|
+
(min (- (+ start count) pos)
|
275
|
+
buffered))))
|
276
|
+
(if (= pos (+ start count))
|
277
|
+
count
|
278
|
+
(buffer-and-fill pos)))))))
|
279
|
+
(define (fill-directly pos)
|
280
|
+
(when (port-random-access? port)
|
281
|
+
(flush-output port))
|
282
|
+
(port-clear-stream-start-for-bom-read port)
|
283
|
+
(let lp ((pos pos))
|
284
|
+
(let ((read (read-bytes port bv pos (- (+ start count) pos))))
|
285
|
+
(cond
|
286
|
+
((= (+ pos read) (+ start count))
|
287
|
+
count)
|
288
|
+
((zero? read)
|
289
|
+
;; We found EOF. If we haven't read any bytes yet, return
|
290
|
+
;; EOF. Otherwise save the EOF in the port read buffer.
|
291
|
+
(if (= pos start)
|
292
|
+
the-eof-object
|
293
|
+
(begin
|
294
|
+
(set-port-buffer-has-eof?! (port-read-buffer port) #t)
|
295
|
+
(- pos start))))
|
296
|
+
(else (lp (+ pos read)))))))
|
297
|
+
(let ((pos (take-already-buffered)))
|
298
|
+
(cond
|
299
|
+
((= pos (+ start count))
|
300
|
+
count)
|
301
|
+
((< (- (+ start count) pos) (port-read-buffering port))
|
302
|
+
(buffer-and-fill pos))
|
303
|
+
(else (fill-directly pos)))))
|
304
|
+
|
305
|
+
(define (get-bytevector-n port count)
|
306
|
+
(let* ((bv (make-bytevector count))
|
307
|
+
(result (get-bytevector-n! port bv 0 count)))
|
308
|
+
(cond ((eof-object? result)
|
309
|
+
result)
|
310
|
+
((= result count)
|
311
|
+
bv)
|
312
|
+
(else
|
313
|
+
(let ((bv* (make-bytevector result)))
|
314
|
+
(bytevector-copy! bv 0 bv* 0 result)
|
315
|
+
bv*)))))
|
316
|
+
|
317
|
+
(define (get-bytevector-some port)
|
318
|
+
(call-with-values (lambda () (fill-input port 1 'binary))
|
319
|
+
(lambda (buf cur buffered)
|
320
|
+
(if (zero? buffered)
|
321
|
+
(begin
|
322
|
+
(set-port-buffer-has-eof?! buf #f)
|
323
|
+
the-eof-object)
|
324
|
+
(let ((result (make-bytevector buffered)))
|
325
|
+
(bytevector-copy! (port-buffer-bytevector buf) cur
|
326
|
+
result 0 buffered)
|
327
|
+
(set-port-buffer-cur! buf (+ cur buffered))
|
328
|
+
result)))))
|
329
|
+
|
330
|
+
(define (get-bytevector-some! port bv start count)
|
331
|
+
(if (zero? count)
|
332
|
+
0
|
333
|
+
(call-with-values (lambda () (fill-input port 1 'binary))
|
334
|
+
(lambda (buf cur buffered)
|
335
|
+
(if (zero? buffered)
|
336
|
+
(begin
|
337
|
+
(set-port-buffer-has-eof?! buf #f)
|
338
|
+
the-eof-object)
|
339
|
+
(let ((transfer-size (min count buffered)))
|
340
|
+
(bytevector-copy! (port-buffer-bytevector buf) cur
|
341
|
+
transfer-size start buffered)
|
342
|
+
(set-port-buffer-cur! buf (+ cur transfer-size))
|
343
|
+
transfer-size))))))
|
344
|
+
|
345
|
+
(define (put-u8 port byte)
|
346
|
+
(let* ((buf (port-write-buffer port))
|
347
|
+
(bv (port-buffer-bytevector buf))
|
348
|
+
(end (port-buffer-end buf)))
|
349
|
+
(unless (<= 0 end (bytevector-length bv))
|
350
|
+
(error "not an output port" port))
|
351
|
+
(when (and (eq? (port-buffer-cur buf) end) (port-random-access? port))
|
352
|
+
(flush-input port))
|
353
|
+
(cond
|
354
|
+
((= end (bytevector-length bv))
|
355
|
+
;; Multiple threads racing; race to flush, then retry.
|
356
|
+
(flush-output port)
|
357
|
+
(put-u8 port byte))
|
358
|
+
(else
|
359
|
+
(bytevector-u8-set! bv end byte)
|
360
|
+
(set-port-buffer-end! buf (1+ end))
|
361
|
+
(when (= (1+ end) (bytevector-length bv)) (flush-output port))))))
|
362
|
+
|
363
|
+
(define* (put-bytevector port src #:optional (start 0)
|
364
|
+
(count (- (bytevector-length src) start)))
|
365
|
+
(unless (<= 0 start (+ start count) (bytevector-length src))
|
366
|
+
(error "invalid start/count" start count))
|
367
|
+
(let* ((buf (port-write-buffer port))
|
368
|
+
(bv (port-buffer-bytevector buf))
|
369
|
+
(size (bytevector-length bv))
|
370
|
+
(cur (port-buffer-cur buf))
|
371
|
+
(end (port-buffer-end buf))
|
372
|
+
(buffered (max (- end cur) 0)))
|
373
|
+
(when (and (eq? cur end) (port-random-access? port))
|
374
|
+
(flush-input port))
|
375
|
+
(cond
|
376
|
+
((<= size count)
|
377
|
+
;; The write won't fit in the buffer at all; write directly.
|
378
|
+
;; Write directly. Flush write buffer first if needed.
|
379
|
+
(when (< cur end) (flush-output port))
|
380
|
+
(write-bytes port src start count))
|
381
|
+
((< (- size buffered) count)
|
382
|
+
;; The write won't fit into the buffer along with what's already
|
383
|
+
;; buffered. Flush and fill.
|
384
|
+
(flush-output port)
|
385
|
+
(set-port-buffer-end! buf count)
|
386
|
+
(bytevector-copy! src start bv 0 count))
|
387
|
+
(else
|
388
|
+
;; The write will fit in the buffer, but we need to shuffle the
|
389
|
+
;; already-buffered bytes (if any) down.
|
390
|
+
(set-port-buffer-cur! buf 0)
|
391
|
+
(set-port-buffer-end! buf (+ buffered count))
|
392
|
+
(bytevector-copy! bv cur bv 0 buffered)
|
393
|
+
(bytevector-copy! src start bv buffered count)
|
394
|
+
;; If the buffer completely fills, we flush.
|
395
|
+
(when (= (+ buffered count) size)
|
396
|
+
(flush-output port))))))
|
397
|
+
|
398
|
+
(define (decoding-error subr port)
|
399
|
+
;; GNU definition; fixme?
|
400
|
+
(define EILSEQ 84)
|
401
|
+
(throw 'decoding-error subr "input decoding error" EILSEQ port))
|
402
|
+
|
403
|
+
(define-inlinable (decode-utf8 bv start avail u8_0 kt kf)
|
404
|
+
(cond
|
405
|
+
((< u8_0 #x80)
|
406
|
+
(kt (integer->char u8_0) 1))
|
407
|
+
((and (<= #xc2 u8_0 #xdf) (<= 2 avail))
|
408
|
+
(let ((u8_1 (bytevector-u8-ref bv (1+ start))))
|
409
|
+
(if (= (logand u8_1 #xc0) #x80)
|
410
|
+
(kt (integer->char
|
411
|
+
(logior (ash (logand u8_0 #x1f) 6)
|
412
|
+
(logand u8_1 #x3f)))
|
413
|
+
2)
|
414
|
+
(kf))))
|
415
|
+
((and (= (logand u8_0 #xf0) #xe0) (<= 3 avail))
|
416
|
+
(let ((u8_1 (bytevector-u8-ref bv (+ start 1)))
|
417
|
+
(u8_2 (bytevector-u8-ref bv (+ start 2))))
|
418
|
+
(if (and (= (logand u8_1 #xc0) #x80)
|
419
|
+
(= (logand u8_2 #xc0) #x80)
|
420
|
+
(case u8_0
|
421
|
+
((#xe0) (>= u8_1 #xa0))
|
422
|
+
((#xed) (>= u8_1 #x9f))
|
423
|
+
(else #t)))
|
424
|
+
(kt (integer->char
|
425
|
+
(logior (ash (logand u8_0 #x0f) 12)
|
426
|
+
(ash (logand u8_1 #x3f) 6)
|
427
|
+
(logand u8_2 #x3f)))
|
428
|
+
3)
|
429
|
+
(kf))))
|
430
|
+
((and (<= #xf0 u8_0 #xf4) (<= 4 avail))
|
431
|
+
(let ((u8_1 (bytevector-u8-ref bv (+ start 1)))
|
432
|
+
(u8_2 (bytevector-u8-ref bv (+ start 2)))
|
433
|
+
(u8_3 (bytevector-u8-ref bv (+ start 3))))
|
434
|
+
(if (and (= (logand u8_1 #xc0) #x80)
|
435
|
+
(= (logand u8_2 #xc0) #x80)
|
436
|
+
(= (logand u8_3 #xc0) #x80)
|
437
|
+
(case u8_0
|
438
|
+
((#xf0) (>= u8_1 #x90))
|
439
|
+
((#xf4) (>= u8_1 #x8f))
|
440
|
+
(else #t)))
|
441
|
+
(kt (integer->char
|
442
|
+
(logior (ash (logand u8_0 #x07) 18)
|
443
|
+
(ash (logand u8_1 #x3f) 12)
|
444
|
+
(ash (logand u8_2 #x3f) 6)
|
445
|
+
(logand u8_3 #x3f)))
|
446
|
+
4)
|
447
|
+
(kf))))
|
448
|
+
(else (kf))))
|
449
|
+
|
450
|
+
(define (bad-utf8-len bv cur buffering first-byte)
|
451
|
+
(define (ref n)
|
452
|
+
(bytevector-u8-ref bv (+ cur n)))
|
453
|
+
(cond
|
454
|
+
((< first-byte #x80) 0)
|
455
|
+
((<= #xc2 first-byte #xdf)
|
456
|
+
(cond
|
457
|
+
((< buffering 2) 1)
|
458
|
+
((not (= (logand (ref 1) #xc0) #x80)) 1)
|
459
|
+
(else 0)))
|
460
|
+
((= (logand first-byte #xf0) #xe0)
|
461
|
+
(cond
|
462
|
+
((< buffering 2) 1)
|
463
|
+
((not (= (logand (ref 1) #xc0) #x80)) 1)
|
464
|
+
((and (eq? first-byte #xe0) (< (ref 1) #xa0)) 1)
|
465
|
+
((and (eq? first-byte #xed) (< (ref 1) #x9f)) 1)
|
466
|
+
((< buffering 3) 2)
|
467
|
+
((not (= (logand (ref 2) #xc0) #x80)) 2)
|
468
|
+
(else 0)))
|
469
|
+
((<= #xf0 first-byte #xf4)
|
470
|
+
(cond
|
471
|
+
((< buffering 2) 1)
|
472
|
+
((not (= (logand (ref 1) #xc0) #x80)) 1)
|
473
|
+
((and (eq? first-byte #xf0) (< (ref 1) #x90)) 1)
|
474
|
+
((and (eq? first-byte #xf4) (< (ref 1) #x8f)) 1)
|
475
|
+
((< buffering 3) 2)
|
476
|
+
((not (= (logand (ref 2) #xc0) #x80)) 2)
|
477
|
+
((< buffering 4) 3)
|
478
|
+
((not (= (logand (ref 3) #xc0) #x80)) 3)
|
479
|
+
(else 0)))
|
480
|
+
(else 1)))
|
481
|
+
|
482
|
+
(define (peek-char-and-next-cur/utf8 port buf cur first-byte)
|
483
|
+
(if (< first-byte #x80)
|
484
|
+
(values (integer->char first-byte) buf (+ cur 1))
|
485
|
+
(call-with-values (lambda ()
|
486
|
+
(fill-input port
|
487
|
+
(cond
|
488
|
+
((<= #xc2 first-byte #xdf) 2)
|
489
|
+
((= (logand first-byte #xf0) #xe0) 3)
|
490
|
+
(else 4))))
|
491
|
+
(lambda (buf cur buffering)
|
492
|
+
(let ((bv (port-buffer-bytevector buf)))
|
493
|
+
(define (bad-utf8)
|
494
|
+
(let ((len (bad-utf8-len bv cur buffering first-byte)))
|
495
|
+
(when (zero? len) (error "internal error"))
|
496
|
+
(if (eq? (port-conversion-strategy port) 'substitute)
|
497
|
+
(values #\xFFFD buf (+ cur len))
|
498
|
+
(decoding-error "peek-char" port))))
|
499
|
+
(decode-utf8 bv cur buffering first-byte
|
500
|
+
(lambda (char len)
|
501
|
+
(values char buf (+ cur len)))
|
502
|
+
bad-utf8))))))
|
503
|
+
|
504
|
+
(define (peek-char-and-next-cur/iso-8859-1 port buf cur first-byte)
|
505
|
+
(values (integer->char first-byte) buf (+ cur 1)))
|
506
|
+
|
507
|
+
(define (peek-char-and-next-cur/iconv port)
|
508
|
+
(let lp ((prev-input-size 0))
|
509
|
+
(let ((input-size (1+ prev-input-size)))
|
510
|
+
(call-with-values (lambda () (fill-input port input-size))
|
511
|
+
(lambda (buf cur buffered)
|
512
|
+
(cond
|
513
|
+
((< buffered input-size)
|
514
|
+
;; Buffer failed to fill; EOF, possibly premature.
|
515
|
+
(cond
|
516
|
+
((zero? prev-input-size)
|
517
|
+
(values the-eof-object buf cur))
|
518
|
+
((eq? (port-conversion-strategy port) 'substitute)
|
519
|
+
(values #\xFFFD buf (+ cur prev-input-size)))
|
520
|
+
(else
|
521
|
+
(decoding-error "peek-char" port))))
|
522
|
+
((port-decode-char port (port-buffer-bytevector buf)
|
523
|
+
cur input-size)
|
524
|
+
=> (lambda (char)
|
525
|
+
(values char buf (+ cur input-size))))
|
526
|
+
(else
|
527
|
+
(lp input-size))))))))
|
528
|
+
|
529
|
+
(define (peek-char-and-next-cur port)
|
530
|
+
(define (have-byte buf bv cur buffered)
|
531
|
+
(let ((first-byte (bytevector-u8-ref bv cur)))
|
532
|
+
(case (%port-encoding port)
|
533
|
+
((UTF-8)
|
534
|
+
(peek-char-and-next-cur/utf8 port buf cur first-byte))
|
535
|
+
((ISO-8859-1)
|
536
|
+
(peek-char-and-next-cur/iso-8859-1 port buf cur first-byte))
|
537
|
+
(else
|
538
|
+
(peek-char-and-next-cur/iconv port)))))
|
539
|
+
(peek-bytes port 1 have-byte
|
540
|
+
(lambda (buf bv cur buffered)
|
541
|
+
(if (< 0 buffered)
|
542
|
+
(have-byte buf bv cur buffered)
|
543
|
+
(values the-eof-object buf cur)))))
|
544
|
+
|
545
|
+
(define* (peek-char #:optional (port (current-input-port)))
|
546
|
+
(define (slow-path)
|
547
|
+
(call-with-values (lambda () (peek-char-and-next-cur port))
|
548
|
+
(lambda (char buf cur)
|
549
|
+
char)))
|
550
|
+
(define (fast-path buf bv cur buffered)
|
551
|
+
(let ((u8 (bytevector-u8-ref bv cur))
|
552
|
+
(enc (%port-encoding port)))
|
553
|
+
(case enc
|
554
|
+
((UTF-8) (decode-utf8 bv cur buffered u8 (lambda (char len) char)
|
555
|
+
slow-path))
|
556
|
+
((ISO-8859-1) (integer->char u8))
|
557
|
+
(else (slow-path)))))
|
558
|
+
(peek-bytes port 1 fast-path
|
559
|
+
(lambda (buf bv cur buffered) (slow-path))))
|
560
|
+
|
561
|
+
(define-inlinable (advance-port-position! pos char)
|
562
|
+
;; FIXME: this cond is a speed hack; really we should just compile
|
563
|
+
;; `case' better.
|
564
|
+
(cond
|
565
|
+
;; FIXME: char>? et al should compile well.
|
566
|
+
((<= (char->integer #\space) (char->integer char))
|
567
|
+
(set-port-position-column! pos (1+ (port-position-column pos))))
|
568
|
+
(else
|
569
|
+
(case char
|
570
|
+
((#\alarm) #t) ; No change.
|
571
|
+
((#\backspace)
|
572
|
+
(let ((col (port-position-column pos)))
|
573
|
+
(when (> col 0)
|
574
|
+
(set-port-position-column! pos (1- col)))))
|
575
|
+
((#\newline)
|
576
|
+
(set-port-position-line! pos (1+ (port-position-line pos)))
|
577
|
+
(set-port-position-column! pos 0))
|
578
|
+
((#\return)
|
579
|
+
(set-port-position-column! pos 0))
|
580
|
+
((#\tab)
|
581
|
+
(let ((col (port-position-column pos)))
|
582
|
+
(set-port-position-column! pos (- (+ col 8) (remainder col 8)))))
|
583
|
+
(else
|
584
|
+
(set-port-position-column! pos (1+ (port-position-column pos))))))))
|
585
|
+
|
586
|
+
(define* (read-char #:optional (port (current-input-port)))
|
587
|
+
(define (finish buf char)
|
588
|
+
(advance-port-position! (port-buffer-position buf) char)
|
589
|
+
char)
|
590
|
+
(define (slow-path)
|
591
|
+
(call-with-values (lambda () (peek-char-and-next-cur port))
|
592
|
+
(lambda (char buf cur)
|
593
|
+
(set-port-buffer-cur! buf cur)
|
594
|
+
(if (eq? char the-eof-object)
|
595
|
+
(begin
|
596
|
+
(set-port-buffer-has-eof?! buf #f)
|
597
|
+
char)
|
598
|
+
(finish buf char)))))
|
599
|
+
(define (fast-path buf bv cur buffered)
|
600
|
+
(let ((u8 (bytevector-u8-ref bv cur))
|
601
|
+
(enc (%port-encoding port)))
|
602
|
+
(case enc
|
603
|
+
((UTF-8)
|
604
|
+
(decode-utf8 bv cur buffered u8
|
605
|
+
(lambda (char len)
|
606
|
+
(set-port-buffer-cur! buf (+ cur len))
|
607
|
+
(finish buf char))
|
608
|
+
slow-path))
|
609
|
+
((ISO-8859-1)
|
610
|
+
(set-port-buffer-cur! buf (+ cur 1))
|
611
|
+
(finish buf (integer->char u8)))
|
612
|
+
(else (slow-path)))))
|
613
|
+
(peek-bytes port 1 fast-path
|
614
|
+
(lambda (buf bv cur buffered) (slow-path))))
|
615
|
+
|
616
|
+
(define-inlinable (port-fold-chars/iso-8859-1 port proc seed)
|
617
|
+
(let* ((buf (port-read-buffer port))
|
618
|
+
(cur (port-buffer-cur buf)))
|
619
|
+
(let fold-buffer ((buf buf) (cur cur) (seed seed))
|
620
|
+
(let ((bv (port-buffer-bytevector buf))
|
621
|
+
(end (port-buffer-end buf)))
|
622
|
+
(let fold-chars ((cur cur) (seed seed))
|
623
|
+
(cond
|
624
|
+
((= end cur)
|
625
|
+
(call-with-values (lambda () (fill-input port))
|
626
|
+
(lambda (buf cur buffered)
|
627
|
+
(if (zero? buffered)
|
628
|
+
(call-with-values (lambda () (proc the-eof-object seed))
|
629
|
+
(lambda (seed done?)
|
630
|
+
(if done? seed (fold-buffer buf cur seed))))
|
631
|
+
(fold-buffer buf cur seed)))))
|
632
|
+
(else
|
633
|
+
(let ((ch (integer->char (bytevector-u8-ref bv cur)))
|
634
|
+
(cur (1+ cur)))
|
635
|
+
(set-port-buffer-cur! buf cur)
|
636
|
+
(advance-port-position! (port-buffer-position buf) ch)
|
637
|
+
(call-with-values (lambda () (proc ch seed))
|
638
|
+
(lambda (seed done?)
|
639
|
+
(if done? seed (fold-chars cur seed))))))))))))
|
640
|
+
|
641
|
+
(define-inlinable (port-fold-chars port proc seed)
|
642
|
+
(case (%port-encoding port)
|
643
|
+
((ISO-8859-1) (port-fold-chars/iso-8859-1 port proc seed))
|
644
|
+
(else
|
645
|
+
(let lp ((seed seed))
|
646
|
+
(let ((ch (read-char port)))
|
647
|
+
(call-with-values (lambda () (proc ch seed))
|
648
|
+
(lambda (seed done?)
|
649
|
+
(if done? seed (lp seed)))))))))
|
650
|
+
|
651
|
+
(define* (read-delimited delims #:optional (port (current-input-port))
|
652
|
+
(handle-delim 'trim))
|
653
|
+
;; Currently this function conses characters into a list, then uses
|
654
|
+
;; reverse-list->string. It wastes 2 words per character but it still
|
655
|
+
;; seems to be the fastest thing at the moment.
|
656
|
+
(define (finish delim chars)
|
657
|
+
(define (->string chars)
|
658
|
+
(if (and (null? chars) (not (char? delim)))
|
659
|
+
the-eof-object
|
660
|
+
(reverse-list->string chars)))
|
661
|
+
(case handle-delim
|
662
|
+
((trim) (->string chars))
|
663
|
+
((split) (cons (->string chars) delim))
|
664
|
+
((concat)
|
665
|
+
(->string (if (char? delim) (cons delim chars) chars)))
|
666
|
+
((peek)
|
667
|
+
(when (char? delim) (unread-char delim port))
|
668
|
+
(->string chars))
|
669
|
+
(else
|
670
|
+
(error "unexpected handle-delim value: " handle-delim))))
|
671
|
+
(define-syntax-rule (make-folder delimiter?)
|
672
|
+
(lambda (char chars)
|
673
|
+
(if (or (not (char? char)) (delimiter? char))
|
674
|
+
(values (finish char chars) #t)
|
675
|
+
(values (cons char chars) #f))))
|
676
|
+
(define-syntax-rule (specialized-fold delimiter?)
|
677
|
+
(port-fold-chars port (make-folder delimiter?) '()))
|
678
|
+
(case (string-length delims)
|
679
|
+
((0) (specialized-fold (lambda (char) #f)))
|
680
|
+
((1) (let ((delim (string-ref delims 0)))
|
681
|
+
(specialized-fold (lambda (char) (eqv? char delim)))))
|
682
|
+
(else => (lambda (ndelims)
|
683
|
+
(specialized-fold
|
684
|
+
(lambda (char)
|
685
|
+
(let lp ((i 0))
|
686
|
+
(and (< i ndelims)
|
687
|
+
(or (eqv? char (string-ref delims i))
|
688
|
+
(lp (1+ i)))))))))))
|
689
|
+
|
690
|
+
(define* (read-line #:optional (port (current-input-port))
|
691
|
+
(handle-delim 'trim))
|
692
|
+
(read-delimited "\n" port handle-delim))
|
693
|
+
|
694
|
+
(define* (%read-line port)
|
695
|
+
(read-line port 'split))
|
696
|
+
|
697
|
+
(define* (put-string port str #:optional (start 0)
|
698
|
+
(count (- (string-length str) start)))
|
699
|
+
(let* ((aux (port-auxiliary-write-buffer port))
|
700
|
+
(pos (port-buffer-position aux))
|
701
|
+
(line (port-position-line pos)))
|
702
|
+
(set-port-buffer-cur! aux 0)
|
703
|
+
(port-clear-stream-start-for-bom-write port aux)
|
704
|
+
(let lp ((encoded 0))
|
705
|
+
(when (< encoded count)
|
706
|
+
(let ((encoded (+ encoded
|
707
|
+
(port-encode-chars port aux str
|
708
|
+
(+ start encoded)
|
709
|
+
(- count encoded)))))
|
710
|
+
(let ((end (port-buffer-end aux)))
|
711
|
+
(set-port-buffer-end! aux 0)
|
712
|
+
(put-bytevector port (port-buffer-bytevector aux) 0 end)
|
713
|
+
(lp encoded)))))
|
714
|
+
(when (and (not (eqv? line (port-position-line pos)))
|
715
|
+
(port-line-buffered? port))
|
716
|
+
(flush-output port))))
|
717
|
+
|
718
|
+
(define* (put-char port char)
|
719
|
+
(let ((aux (port-auxiliary-write-buffer port)))
|
720
|
+
(set-port-buffer-cur! aux 0)
|
721
|
+
(port-clear-stream-start-for-bom-write port aux)
|
722
|
+
(port-encode-char port aux char)
|
723
|
+
(let ((end (port-buffer-end aux)))
|
724
|
+
(set-port-buffer-end! aux 0)
|
725
|
+
(put-bytevector port (port-buffer-bytevector aux) 0 end))
|
726
|
+
(when (and (eqv? char #\newline) (port-line-buffered? port))
|
727
|
+
(flush-output port))))
|
728
|
+
|
729
|
+
(define accept
|
730
|
+
(let ((%accept (@ (guile) accept)))
|
731
|
+
(lambda* (port #:optional (flags 0))
|
732
|
+
(let lp ()
|
733
|
+
(or (%accept port flags)
|
734
|
+
(begin
|
735
|
+
(wait-for-readable port)
|
736
|
+
(lp)))))))
|
737
|
+
|
738
|
+
(define connect
|
739
|
+
(let ((%connect (@ (guile) connect)))
|
740
|
+
(lambda (port sockaddr . args)
|
741
|
+
(unless (apply %connect port sockaddr args)
|
742
|
+
;; Clownshoes semantics; see connect(2).
|
743
|
+
(wait-for-writable port)
|
744
|
+
(let ((err (getsockopt port SOL_SOCKET SO_ERROR)))
|
745
|
+
(unless (zero? err)
|
746
|
+
(scm-error 'system-error "connect" "~A"
|
747
|
+
(list (strerror err)) #f)))))))
|
748
|
+
|
749
|
+
(define saved-port-bindings #f)
|
750
|
+
(define port-bindings
|
751
|
+
'(((guile)
|
752
|
+
read-char peek-char force-output close-port
|
753
|
+
accept connect)
|
754
|
+
((ice-9 binary-ports)
|
755
|
+
get-u8 lookahead-u8 get-bytevector-n get-bytevector-n!
|
756
|
+
get-bytevector-some get-bytevector-some!
|
757
|
+
put-u8 put-bytevector)
|
758
|
+
((ice-9 textual-ports)
|
759
|
+
put-char put-string)
|
760
|
+
((ice-9 rdelim) %read-line read-line read-delimited)))
|
761
|
+
(define (install-suspendable-ports!)
|
762
|
+
(unless saved-port-bindings
|
763
|
+
(set! saved-port-bindings (make-hash-table))
|
764
|
+
(let ((suspendable-ports (resolve-module '(ice-9 suspendable-ports))))
|
765
|
+
(for-each
|
766
|
+
(match-lambda
|
767
|
+
((mod . syms)
|
768
|
+
(let ((mod (resolve-module mod)))
|
769
|
+
(for-each (lambda (sym)
|
770
|
+
(hashq-set! saved-port-bindings sym
|
771
|
+
(module-ref mod sym))
|
772
|
+
(module-set! mod sym
|
773
|
+
(module-ref suspendable-ports sym)))
|
774
|
+
syms))))
|
775
|
+
port-bindings))))
|
776
|
+
|
777
|
+
(define (uninstall-suspendable-ports!)
|
778
|
+
(when saved-port-bindings
|
779
|
+
(for-each
|
780
|
+
(match-lambda
|
781
|
+
((mod . syms)
|
782
|
+
(let ((mod (resolve-module mod)))
|
783
|
+
(for-each (lambda (sym)
|
784
|
+
(let ((saved (hashq-ref saved-port-bindings sym)))
|
785
|
+
(module-set! mod sym saved)))
|
786
|
+
syms))))
|
787
|
+
port-bindings)
|
788
|
+
(set! saved-port-bindings #f)))
|