Last change
on this file since af5baae was
ac4dad2,
checked in by Peter A. Buhr <pabuhr@…>, 7 years ago
|
shorten experimental code
|
-
Property mode set to
100644
|
File size:
471 bytes
|
Rev | Line | |
---|
[604e76d] | 1 | #pragma once |
---|
| 2 | |
---|
[ac4dad2] | 3 | typedef struct pair { |
---|
| 4 | void * first; |
---|
| 5 | void * second; |
---|
| 6 | } pair; |
---|
[604e76d] | 7 | |
---|
[ac4dad2] | 8 | pair * new_pair( void * first, void * second ); |
---|
[604e76d] | 9 | |
---|
[ac4dad2] | 10 | pair * copy_pair( const pair * src, |
---|
| 11 | void * (* copy_first)(const void *), void * (* copy_second)(const void *)); |
---|
[604e76d] | 12 | |
---|
[ac4dad2] | 13 | void free_pair( pair * p, void (* free_first)(void *), void (* free_second)(void *)); |
---|
[604e76d] | 14 | |
---|
[ac4dad2] | 15 | int cmp_pair( const pair * a, const 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.