Stefan Richthofer
Stefan Richthofer
So, my work on porting JyNI to Windows is almost done. This means, it is a good time for a next release. Do you think we can get some PyFile...
I can go online on IRC later. Note that it's not due exactly today. I'd like to make the release somewhat end of the week or next weekend. Also, it's...
So, I am observing IRC log frequently, but I cannot guarantee that I can be online at a particular time. Ithink it would be best to resolve questions here in...
`printf` prints async regarding JVM console output. In many consoles `printf` and `puts` output will only show up on JVM shutdown or at random-like time points when C output is...
Maybe there is some test code in CPython. Otherwise we should maybe write our own test(s). [DemoExtension](https://github.com/Stewori/JyNI/tree/master/DemoExtension) is intended to serve as a collection for native test code.
Maybe you can add [PyFile.fd](https://github.com/whilo/jython/commit/68ed56a90c945984d6005e755e6e0446ca57cc01#diff-be2760cb00d1ccab95fb539416e4c5a4R617) as a static method to `JyNI.java`, e.g. like `static int JyNI_PyFile_fd(PyFile file)`. Then it would be a single easy JNI call you can do the...
``` jint fd_int = (*env)->CallObjectMethod(env, fd_pyint, pyInt_getValue); ``` should rather be ``` jint fd_int = (*env)->CallIntMethod(env, fd_pyint, pyInt_getValue); ``` That should fix it. (in `jint fd = (*env)->CallObjectMethod(env, f2, pyFile_fd);`...
Re UseCount: We need to figure out what ``fobj->unlocked_count`` actually means and - more importantly - how Jython implements that functionality. It looks like kind of an additional ref counter...
Okay, I took a closer look. In CPython there is this code snippet: ``` static PyObject * close_the_file(PyFileObject *f) { int sts = 0; int (*local_close)(FILE *); FILE *local_fp =...
Alright, that's a good start. Even more elegant than what I had in mind -- I wasn't aware of ``+=`` notation for makefiles. According to https://clang.llvm.org/docs/UsersManual.html#controlling-debug-information the ``-g`` flag should...