- Nov 21, 2019
-
-
xentrac authored
This was a real adventure since I didn’t know anything about SCons, and I can’t say that I’m fond of scons after it, but it does seem to work. There were two obstacles. First, the ConfigureJNI module doesn’t successfully configure the JNI on my system because it was expecting to find `JAVA_HOME` in .., so I added a little code to notice if it’s failing to find a place where `jni.h` exists. (And on my system I did `export JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64` before running it, but your pathnames will vary.) There was a hardcoded pathname in SConscript, presumably as an interim debugging measure, which I removed. A reasonable default to try on Debian-derived systems such as Ubuntu and LinuxMint might be `/usr/lib/jvm/default-java`, but I didn’t implement that. Second, in SConscript, the JNI include directories were being stuck into a `javaenv` SCons environment object, which was used to build the Java classes providing the Java interfaces to Hammer, but not the C files containing the native methods themselves. Consequently the compiler couldn’t find the JDK JNI headers when it tried to compile the C code into a shared library. It might make sense to use `javaenv` to compile that shared library, but in case it doesn’t, I cloned the default environment with an extra include directory. I hope this is soon enough to be helpful!
-
- Nov 19, 2019
-
-
picomeg authored
includes like jni.h
-
- Oct 09, 2019
-
-
Andrea Shepard authored
Remove bogus HParser * constness and non-portable %lld format string; fixes issue 59 Closes #59 See merge request hammer/hammer!2
-
Andrea Shepard authored
-
Andrea Shepard authored
update to better reflect results of Great Merge and move to SC hosting See merge request hammer/hammer!1
-
Meredith L. Patterson authored
-
- Oct 08, 2019
-
-
Meredith L. Patterson authored
-
Meredith L. Patterson authored
-
Meredith L. Patterson authored
-
- Oct 07, 2019
-
-
Meredith L. Patterson authored
Add support for Python 3.x bindings
-
Meredith L. Patterson authored
add SLOB allocator
-
Meredith L. Patterson authored
-
Meredith L. Patterson authored
-
Meredith L. Patterson authored
-
Meredith L. Patterson authored
-
- May 10, 2019
-
-
Alex Willmer authored
-
Alex Willmer authored
In Python 2.x an unprefixed string literal produces a byte string. In Python 3.x an unprefixed string literal produces a textual string. To produce a byte string in both a b prefix is needed, e.g. b'foo'. Since I believe Hammer works predominantly with byte strings I have used b prefixes throughout.
-
Alex Willmer authored
This removes any doubts about what type of string is in use.
-
Alex Willmer authored
This allows the library to be built and tested with a non-default version of CPython, e.g. scons bindings=python python=python3.6 scons bindings=python python=python3.6 testpython
-
Alex Willmer authored
In Python 3.x - int and long types are unified. The unified type is called int. - the text string type (unicode) is renamed to str. - the byte string type (str) is renamed to bytes. - chr returns a text string (i.e. str) - xrange is renamed to range. - dict.has_key() is removed -
-
Alex Willmer authored
These have no effect in Python 3.x, they are the default. Enabling them in Python 2.x, enabling them in Python 2.x allows single source compatiblity.
-
- Jun 27, 2017
-
-
Meredith L. Patterson authored
Change filename in ruby bindings
-
- Dec 07, 2016
-
-
Sven M. Hallberg authored
-
Sven M. Hallberg authored
-
Sven M. Hallberg authored
-
- Dec 06, 2016
-
-
Sven M. Hallberg authored
-
Sven M. Hallberg authored
-
- Nov 06, 2016
-
-
Prashant authored
-
- Nov 01, 2016
-
-
Meredith L. Patterson authored
-
- Oct 25, 2016
- Sep 11, 2016
-
-
Prashant Anantharaman authored
-
Prashant Anantharaman authored
-
Prashant Anantharaman authored
-
Meredith L. Patterson authored
More documentation for ruby bindings
-
- Sep 09, 2016
-
-
Prashant Anantharaman authored
-
Prashant Anantharaman authored
-
- Aug 19, 2016
-
-
Meredith L. Patterson authored
Readme links
-
Meredith L. Patterson authored
Custom printers for user token types
-
- Aug 12, 2016
-
-
Steven Dee authored
I did this in a hurry, but it appears to work locally. I tested it with a couple boring custom token type printers.
-