I'm making some changes within the Gnu emacs source code, and I'm trying to find out what construct within that C code will allow me to hard-code a variable to contain a globally readable value in all '*.el' files.
In other words, I'd like to know what the Gnu emacs source code would be in order to define and initialize a variable called -- for example -- "my-variable", such that in any "*.el" file that is run by that version of emacs, the following code would return t ...
(boundp 'my-variable)
... and that the value of "my-variable" would be available in all "*.el" files.
I have searched on line for instructions about how to write this functionality within the Gnu emacs source code, and I have not found anything. Please forgive me if I might have overlooked information about this during my searching.
It's complicated and therefore time-consuming to decipher by examination the details of how the existing Gnu emacs C code functions, and this is why I'm asking this question here.
And to avoid confusion and to be clear, I am not asking anything about the C language. I have been programming in C for more than 30 years. What I'm trying to find out is how specifically within the Gnu emacs code base (whose C language itself I have no problem understanding) I can accomplish this global variable definition.
Thank you very much in advance.