Skip to content

Commit

Permalink
Dedup names
Browse files Browse the repository at this point in the history
  • Loading branch information
justinbarclay committed Feb 17, 2021
1 parent 251883a commit d9cc246
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions parinfer-rust-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,8 @@ against.")
(declare-function parinfer-rust-version "ext:parinfer-rust" t t)
(defvar parinfer-rust--lib-name (cond
((eq system-type 'darwin) "parinfer-rust-darwin.so")
((eq system-type 'gnu/linux) "parinfer-rust-linux.so"
"parinfer-rust-linux.so")
((eq system-type 'windows-nt) "parinfer-rust-windows.dll"
"parinfer-rust-windows.dll")))
((eq system-type 'gnu/linux) "parinfer-rust-linux.so")
((eq system-type 'windows-nt) "parinfer-rust-windows.dll")))
(defvar parinfer-rust-library
(concat user-emacs-directory "parinfer-rust/" parinfer-rust--lib-name))
(unless (bound-and-true-p module-file-suffix)
Expand All @@ -180,10 +178,8 @@ against.")

(defconst parinfer-rust--lib-name (cond
((eq system-type 'darwin) "parinfer-rust-darwin.so")
((eq system-type 'gnu/linux) "parinfer-rust-linux.so"
"parinfer-rust-linux.so")
((eq system-type 'windows-nt) "parinfer-rust-windows.dll"
"parinfer-rust-windows.dll"))
((eq system-type 'gnu/linux) "parinfer-rust-linux.so")
((eq system-type 'windows-nt) "parinfer-rust-windows.dll"))
"System dependent library name for `parinfer-rust-mode'.")


Expand Down

0 comments on commit d9cc246

Please sign in to comment.