Peter Ludemann

Results 65 issues of Peter Ludemann

I can do the following in C++ ``` if ( !(ref_ = PL_new_term_ref()) || !PL_put_atom_nchars(ref_, text.size(), text.data()) ) throw PlResourceError(); ``` but for `wchar_t*` or `std:wstring`, it seems that there's...

merge_options/3 can leave duplicates in the merged list: ``` ?- merge_options([foo(x)], [bar(aaa), foo(y), foo(z), zot(a)], Merged), dict_options(Dict, Merged), select_option(foo(Foo), Merged, Merged2). Merged = [bar(aaa), foo(x), foo(z), zot(a)], Dict = _{bar:aaa,...

PL_get_nchars() with `CVT_WRITEQ` does the right thing with `f('a b')` or `f("a b")` but not for `a b` or `"a b"` -- the latter result in strings without surrounding quotes....

The following code didn't produce an exception. I need to do some additional work to make sure it isn't a bug in my test cases - the test case creates...

I modified `packages/ltx2htm/latex2html.pl` to output a backtrace on error, but didn't generate a backtrace when run as part of the build. When I ran the program by hand (using the...

The "main" build and package builds use different ways of specifying the compiler, which can result in using different compilers being used and/or the tests not being able to find...

The traceback doesn't make sense. When I ran under `gdb`, the crash seems to have happened somewhere inside `PL_initialise()`, where it calls `prologTopLevel()` (`pl-init.c:1247`). ``` [peter@penguin man (master=)]$ swipl-ld -goal...

swipl-ld looks for these flags that don't exist from `swipl --dump-runtime-variables`: `PLLIBS` (this has a comment "Always required") `PLLDFLAGS` `PLCFLAGS` These are missing from "help": `-pg*` `-g3` `-gdward-*` and the...

`test_cpp.{cpp,pl}` causes a memory leak in GMP (this seems to be related to bug https://github.com/SWI-Prolog/swipl-devel/issues/1141). The cause seems to be that `mpz_init_set_si64(MPZ_MIN_TAGGED, PLMINTAGGEDINT)` causes a GMP object to be allocated,...

If Pl_exception(0) is called when stack overflow occurs, the return value is a term that is a `variable` (as determined by `PL_term_type()`). Also, it seems to remove some exception information,...