HCoop
/
bpt
/
emacs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge from emacs-24; up to 2012-12-07T08:13:49Z!dmantipov@yandex.ru
[bpt/emacs.git]
/
oldXMenu
/
XMakeAssoc.c
diff --git
a/oldXMenu/XMakeAssoc.c
b/oldXMenu/XMakeAssoc.c
index
e46674d
..
9bbde2c
100644
(file)
--- a/
oldXMenu/XMakeAssoc.c
+++ b/
oldXMenu/XMakeAssoc.c
@@
-3,24
+3,14
@@
#include "copyright.h"
#include "copyright.h"
-#include <config.h>
-#include <X11/Xlib.h>
+#include "XMenuInt.h"
#include <X11/Xresource.h>
#include <X11/Xresource.h>
-#include "X10.h"
#include <errno.h>
#ifndef NULL
#define NULL 0
#endif
#include <errno.h>
#ifndef NULL
#define NULL 0
#endif
-extern int errno;
-
-void emacs_insque();
-struct qelem {
- struct qelem *q_forw;
- struct qelem *q_back;
- char q_data[1];
-};
/*
* XMakeAssoc - Insert data into an XAssocTable keyed on an XId.
* Data is inserted into the table only once. Redundant inserts are
/*
* XMakeAssoc - Insert data into an XAssocTable keyed on an XId.
* Data is inserted into the table only once. Redundant inserts are
@@
-28,11
+18,7
@@
struct qelem {
* bucket is sorted (lowest XId to highest XId).
*/
void
* bucket is sorted (lowest XId to highest XId).
*/
void
-XMakeAssoc(dpy, table, x_id, data)
- 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;
{
int hash;
register XAssoc *bucket;
@@
-90,6
+76,3
@@
XMakeAssoc(dpy, table, x_id, data)
/* Insert the new entry. */
emacs_insque((struct qelem *)new_entry, (struct qelem *)Entry->prev);
}
/* 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) */