ADT
arm-eh
ast-experimental
enum
forall-pointer-decay
jacob/cs343-translation
new-ast-unique-expr
pthread-emulation
qualifiedEnum
Last change
on this file since ddcedfe was f4e3419d, checked in by Peter A. Buhr <pabuhr@…>, 8 years ago |
restructure paper documents
|
-
Property mode
set to
100644
|
File size:
469 bytes
|
Rev | Line | |
---|
[87c5f40] | 1 | #pragma once
|
---|
| 2 |
|
---|
| 3 | struct pair {
|
---|
| 4 | void* first;
|
---|
| 5 | void* second;
|
---|
| 6 | };
|
---|
| 7 |
|
---|
| 8 | struct pair* new_pair(void* first, void* second);
|
---|
| 9 |
|
---|
| 10 | struct pair* copy_pair(const struct pair* src,
|
---|
| 11 | void* (*copy_first)(const void*), void* (*copy_second)(const void*));
|
---|
| 12 |
|
---|
| 13 | void free_pair(struct pair* p, void (*free_first)(void*), void (*free_second)(void*));
|
---|
| 14 |
|
---|
| 15 | int cmp_pair(const struct pair* a, const struct pair* b,
|
---|
| 16 | int (*cmp_first)(const void*, const void*), int (*cmp_second)(const void*, const void*));
|
---|
Note:
See
TracBrowser
for help on using the repository browser.