Skip to content

Commit

Permalink
don't load insn in util!
Browse files Browse the repository at this point in the history
  • Loading branch information
phronmophobic committed Jul 11, 2024
1 parent 02b1184 commit 61aecbf
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/com/phronemophobic/clong/gen/jna/util.clj
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
(:require [clojure.string :as str]
[clojure.java.io :as io]
[clojure.pprint :refer [pprint]]
[insn.util :as insn-util]
[insn.core :as insn]
[com.rpl.specter :as specter]
[clojure.edn :as edn])
(:import java.io.PushbackReader
Expand Down Expand Up @@ -116,17 +114,12 @@
;;else
(str "L" (str/replace struct-prefix #"\." "/") "/" (name t) ";")))))



(defn hash-string [input]
(let [md (MessageDigest/getInstance "SHA-256")
_ (.update md (.getBytes input))
digest (.digest md)]
(format "%064x" (BigInteger. 1 digest))))

;; Example usage:
(hash-string "your-string-here")

(defn callback-name [struct-prefix ret-type arg-types]
(str/replace
(munge
Expand Down

0 comments on commit 61aecbf

Please sign in to comment.