Closed fejfighter closed 4 years ago
Thanks, but my compiler says:
pgtkterm.c: In function 'pgtk_create_terminal':
pgtkterm.c:4618:38: warning: assignment to 'const char * (*)(void *, const char *, const char *)' from incompatible pointer type 'const char * (*)(Lisp_Object, const char *, const char *)' {aka 'const char * (*)(struct Lisp_Object, const char *, const char *)'} [-Wincompatible-pointer-types]
4618 | terminal->get_string_resource_hook = pgtk_get_string_resource;
| ^
pgtk_get_string_resource
should take void *
as the 1st argument.
I did only remove the incorrect mark_object()
call.
not sure why my compiler didn't throw anything up.
I think you got the main part of the change.
When I was looking last night I didn't see the XrmDatabase
typedef to void *
I was concerned it was coming from the GTK headers
src/pgtkterm.h: Change rdb to Lisp_Object (remove XrmDatabase), fix signature src/pgtkterm.c: Do not mark rdb, it's never allocated. src/pgtkfns.c: Update pgtk_get_string_resource signature