Macro | Package: excl | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version

## def-ef-switch-to-runtime

Arguments: name function

name should be a symbol naming an external format or external-format object (as returned by def-external-format). function should be a function object (not a symbol).

Associates a function object with an external-format. The function object is funcalled when switch-ef-to-runtime is called for the external-format named by name.

Examples:

    (def-external-format :jis-base)

    ;; As part of the char-to-octets and octets-to-char macros, global data
    ;; may be used which is not needed once the macros are eliminated for the
    ;; external-format's runtime mode.  Supposing the global data can be
    ;; eliminated by calling (delete-trie ...), here's how to have that call
    ;; be made when the external-format is being switched to runtime mode.
    ;;
    (def-ef-switch-to-runtime :jis-base
      #'(lambda ()
          (delete-trie :unicode-to-jis)
          (delete-trie :jis-to-unicode)))

See iacl.htm for more information on international character support in Allegro CL.

Copyright (c) 1998-2022, Franz Inc. Lafayette, CA., USA. All rights reserved.
This page was not revised from the 10.0 page.
Created 2019.8.20.

|  | ToC | DocOverview | CGDoc | RelNotes | FAQ | Index | PermutedIndex
| Allegro CL version 10.1 Unrevised from 10.0 to 10.1. 10.0 version