Update of /cvsroot/scsh/scx/c/xlib
In directory usw-pr-cvs1:/tmp/cvs-serv26383
Modified Files:
type.c
Log Message:
fixed Bit_To_Symbol bug. inserted Event_Syms table.
Index: type.c
===================================================================
RCS file: /cvsroot/scsh/scx/c/xlib/type.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** type.c 2001/07/16 11:51:14 1.8
--- type.c 2001/07/19 15:31:12 1.9
***************
*** 38,42 ****
val = table[i].val;
! if ((val & bits) != 0) {
res = s48_cons(s48_enter_symbol(name), res);
}
--- 38,42 ----
val = table[i].val;
! if ((val & bits) == val) {
res = s48_cons(s48_enter_symbol(name), res);
}
***************
*** 52,56 ****
int i = 0;
while (table[i].name != (char*)0) {
! if ((table[i].val & bits) != 0)
return s48_enter_symbol(table[i].name);
else i++;
--- 52,56 ----
int i = 0;
while (table[i].name != (char*)0) {
! if (table[i].val == bits)
return s48_enter_symbol(table[i].name);
else i++;
***************
*** 81,84 ****
--- 81,119 ----
return res;
}
+
+ SYMDESCR Event_Syms[] = {
+ { "key-press", KeyPress },
+ { "key-release", KeyRelease },
+ { "button-press", ButtonPress },
+ { "button-release", ButtonRelease },
+ { "motion-notify", MotionNotify },
+ { "enter-notify", EnterNotify },
+ { "leave-notify", LeaveNotify },
+ { "focus-in", FocusIn },
+ { "focus-out", FocusOut },
+ { "keymap-notify", KeymapNotify },
+ { "expose", Expose },
+ { "graphics-expose", GraphicsExpose },
+ { "no-expose", NoExpose },
+ { "visibility-notify", VisibilityNotify },
+ { "create-notify", CreateNotify },
+ { "destroy-notify", DestroyNotify },
+ { "unmap-notify", UnmapNotify },
+ { "map-notify", MapNotify },
+ { "map-request", MapRequest },
+ { "reparent-notify", ReparentNotify },
+ { "configure-notify", ConfigureNotify },
+ { "configure-request", ConfigureRequest },
+ { "gravity-notify", GravityNotify },
+ { "resize-request", ResizeRequest },
+ { "circulate-notify", CirculateNotify },
+ { "circulate-request", CirculateRequest },
+ { "property-notify", PropertyNotify },
+ { "selection-clear", SelectionClear },
+ { "selection-notify", SelectionNotify },
+ { "colormap-notify", ColormapNotify },
+ { "client-message", ClientMessage },
+ { "mapping-notify", MappingNotify }
+ };
SYMDESCR Func_Syms[] = {
|