[Top][All Lists]

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

[xterm.h] note on 'dragging' field of 'struct scroll_bar'

From: Dmitry Antipov
Subject: [xterm.h] note on 'dragging' field of 'struct scroll_bar'
Date: Tue, 10 Jan 2012 17:58:01 +0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:9.0) Gecko/20111222 Thunderbird/9.0.1

I want to notice about the placement of 'dragging' field within 'struct 
It's a Lisp_Object, but placed so it's not reachable by the marking traversal. 
it works just because it's always an integer, Qnil or Qt; but this is a 
potential trap
for someone who will change this someday. So, I think it's better to use plain 
C 'int'
instead, or move 'dragging' up to the head of 'struct scroll_bar' before 

And, the more general question is: why not use the same 'struct scroll_bar' 
both for
X and Win32 code?


reply via email to

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