I defined within the struct frame an integer variable
int ct;
If I define it immediately after the menu_bar_vector, it is initialized
somewhere with the pointer value of Qnil. (&Qnil)
Only the X toolkit version uses this. */
Lisp_Object menu_bar_vector;
+
+ int ct;
In this case, if I change the value f->ct, emacs crashes with segmentation
fault, generated by the garbage collector. Why , as time as I initialize a
variable defined by myself ?
-----------------------------------------
If I define it at the end of struct frame, id est immediately after the
fieldforeground_pixel,
/* All display backends seem to need these two pixel values. */
unsigned long background_pixel;
unsigned long foreground_pixel;
+
+ int ct;
}
everything works fine in that case.
I wish to ask you to suggest me if you can, what happens when I define the var.
'ct' inside the struct frame.
Alin.