|
Revision 4196, 0.8 kB
(checked in by miyoshi, 2 years ago)
|
Sync up with Emacs CVS HEAD.
|
- Property svn:eol-style set to
native
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
#include "copyright.h" |
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
#include <X11/Xlib.h> |
|---|
| 7 |
#include "X10.h" |
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
XDestroyAssocTable(table) |
|---|
| 14 |
register XAssocTable *table; |
|---|
| 15 |
{ |
|---|
| 16 |
register int i; |
|---|
| 17 |
register XAssoc *bucket; |
|---|
| 18 |
register XAssoc *Entry, *entry_next; |
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
for (i = 0; i < table->size; i++) { |
|---|
| 22 |
bucket = &table->buckets[i]; |
|---|
| 23 |
for ( |
|---|
| 24 |
Entry = bucket->next; |
|---|
| 25 |
Entry != bucket; |
|---|
| 26 |
Entry = entry_next |
|---|
| 27 |
) { |
|---|
| 28 |
entry_next = Entry->next; |
|---|
| 29 |
free((char *)Entry); |
|---|
| 30 |
} |
|---|
| 31 |
} |
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
free((char *)table->buckets); |
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
free((char *)table); |
|---|
| 38 |
} |
|---|
| 39 |
|
|---|
| 40 |
|
|---|
| 41 |
|
|---|