Skip to content

Commit

Permalink
Use the ".so" suffix for the readline completer on macOS
Browse files Browse the repository at this point in the history
It used ".dylib" for the readline completer module, but since this
is our extension, we need to use ".so".
  • Loading branch information
egallesio committed Sep 11, 2023
1 parent 2e75363 commit 131de0b
Show file tree
Hide file tree
Showing 3 changed files with 944 additions and 681 deletions.
4 changes: 2 additions & 2 deletions doc/HTML/stklos-ref.html
Original file line number Diff line number Diff line change
Expand Up @@ -14538,7 +14538,7 @@ <h4 id="_system_information">4.13.5. System Information</h4>
</div>
<div class="listingblock">
<div class="content">
<pre class="rouge highlight"><code data-lang="scheme"><span class="p">(</span><span class="nf">features</span><span class="p">)</span> <span class="nv">=&gt;</span> <span class="p">(</span><span class="nf">STklos</span> <span class="nv">STklos-2</span><span class="o">.</span><span class="mf">00.1533</span> <span class="nv">exact-complex</span>
<pre class="rouge highlight"><code data-lang="scheme"><span class="p">(</span><span class="nf">features</span><span class="p">)</span> <span class="nv">=&gt;</span> <span class="p">(</span><span class="nf">STklos</span> <span class="nv">STklos-2</span><span class="o">.</span><span class="mf">00.1534</span> <span class="nv">exact-complex</span>
<span class="nv">ieee-float</span> <span class="nv">full-unicode</span> <span class="nv">ratios</span> <span class="nv">little-endian</span> <span class="o">...</span><span class="p">)</span></code></pre>
</div>
</div>
Expand Down Expand Up @@ -31446,7 +31446,7 @@ <h3 id="_addendum_how_to_use_this_license_for_your_documents">B.13. ADDENDUM: Ho
</div>
<div id="footer">
<div id="footer-text">
Last updated 2023-09-11 17:32:28 +0200
Last updated 2023-09-11 17:46:01 +0200
</div>
</div>
</body>
Expand Down
7 changes: 4 additions & 3 deletions lib/readline.stk
Original file line number Diff line number Diff line change
Expand Up @@ -175,9 +175,10 @@

(define (try-initialize-readline)
;; Try in sequence the GNU readline and BSD libedit (which has readline support)
(let* ((suffix (%shared-library-suffix))
(res (or (try-initialize (string-append "libreadline." suffix))
(try-initialize (string-append "libedit." suffix)))))
(let* ((lsuffix (%shared-library-suffix))
(suffix (%shared-suffix))
(res (or (try-initialize (string-append "libreadline." lsuffix))
(try-initialize (string-append "libedit." lsuffix)))))
(when (and res (try-load (string-append "readline-complete." suffix)))
;; We have found a readline library. Try to load completion support
(%init-readline-completion-function readline-completion-generator))
Expand Down
1,614 changes: 938 additions & 676 deletions src/boot.c

Large diffs are not rendered by default.

0 comments on commit 131de0b

Please sign in to comment.