emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Some Emacs outside Emacs


From: Eli Zaretskii
Subject: Re: Some Emacs outside Emacs
Date: Thu, 28 Jul 2022 10:53:10 +0300

> From: Manuel Giraud <manuel@ledu-giraud.fr>
> Date: Thu, 28 Jul 2022 08:33:01 +0200
> 
> I'm trying to access some Emacs functions from lwlib.  So far, I'm able
> to get the frame for a given menu but whenever I try to access into that
> frame I get the following error from the compiler:
> 
> --8<---------------cut here---------------start------------->8---
> xlwmenu.c:1175:11: error: incomplete definition of type 'struct Lisp_X'
>             fs = FRAME_XIC_FONTSET (frame);
>                  ^~~~~~~~~~~~~~~~~~~~~~~~~
> ../src/xterm.h:1225:34: note: expanded from macro 'FRAME_XIC_FONTSET'
> #define FRAME_XIC_FONTSET(f) ((f)->output_data.x->xic_xfs)
>                               ~~~^
> ./../src/lisp.h:300:16: note: forward declaration of 'struct Lisp_X'
> typedef struct Lisp_X *Lisp_Word;
>                ^
> --8<---------------cut here---------------end--------------->8---
> 
> AFAIU, "struct Lisp_X" is a non existent struct and we are just interest
> in the pointer.  Is it a matter of a compiler option? Something else?

What is 'frame' in your code? how was it defined?  There's no such
variable in the current code of xlwmenu.c, so I cannot know what you
did.

To use FRAME_XIC_FONTSET, its argument must be a pointer to
'struct frame'.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]