X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/362b9d483c714a8fd87966ddbd8686850f870e34..78be8b64657aeca0472d708450ea1ce2bc142606:/oldXMenu/XMakeAssoc.c diff --git a/oldXMenu/XMakeAssoc.c b/oldXMenu/XMakeAssoc.c index 3c79d17dc6..9bbde2cf94 100644 --- a/oldXMenu/XMakeAssoc.c +++ b/oldXMenu/XMakeAssoc.c @@ -3,23 +3,14 @@ #include "copyright.h" -#include -#include +#include "XMenuInt.h" #include -#include "X10.h" #include #ifndef NULL #define NULL 0 #endif -struct qelem { - struct qelem *q_forw; - struct qelem *q_back; - char q_data[1]; -}; -void emacs_insque (struct qelem *elem, struct qelem *prev); - /* * XMakeAssoc - Insert data into an XAssocTable keyed on an XId. * Data is inserted into the table only once. Redundant inserts are @@ -27,7 +18,7 @@ void emacs_insque (struct qelem *elem, struct qelem *prev); * bucket is sorted (lowest XId to highest XId). */ void -XMakeAssoc(register Display *dpy, register XAssocTable *table, register XID x_id, register caddr_t data) +XMakeAssoc(register Display *dpy, register XAssocTable *table, register XID x_id, register void *data) { int hash; register XAssoc *bucket; @@ -85,6 +76,3 @@ XMakeAssoc(register Display *dpy, register XAssocTable *table, register XID x_id /* Insert the new entry. */ emacs_insque((struct qelem *)new_entry, (struct qelem *)Entry->prev); } - -/* arch-tag: d7e3fb8a-f3b3-4c5d-a307-75ca67ec1b49 - (do not change this comment) */