-
Notifications
You must be signed in to change notification settings - Fork 0
/
platel.el
38 lines (26 loc) · 917 Bytes
/
platel.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
;;; -*- Mode: Emacs-Lisp; lexical-binding: t; -*-
;;; platel --- Getting some more info about the underlying plaform.
;;; platel.el
;;; Commentary:
;;
;; Reach down to the C dungeon to get information abaot the current
;; platfrom.
;;
;; The reason to do this? There is NFW to check the endiannnes of the
;; platform Emacs is running on. And I want it.
;;
;; Notes:
;;
;; 2024-02-09: Of course, I was not able to make the module machinery
;; work, so FTTB, this is just guesswork. The two functions will
;; eventually be replaced by the proper C ones.
;;; Code:
;; Valid for Intel and ARM (usualy), possibly RISC-V.
;; (defun platel-is-big-endian ()
;; "Returns non-NIL if we are running on a \"big endian\" architecture."
;; nil)
;; (defun platel-is-little-endian ()
;; "Returns non-NIL if we are running on a \"little endian\" architecture."
;; t)
(provide 'platel)
;;; platel.el ends here