source: doc/papers/general/evaluation/c-pair.h @ ac4dad2

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerwith_gc
Last change on this file since ac4dad2 was ac4dad2, checked in by Peter A. Buhr <pabuhr@…>, 4 years ago

shorten experimental code

  • Property mode set to 100644
File size: 471 bytes
Line 
1#pragma once
2
3typedef struct pair {
4        void * first;
5        void * second;
6} pair;
7
8pair * new_pair( void * first, void * second );
9
10pair * copy_pair( const pair * src, 
11        void * (* copy_first)(const void *), void * (* copy_second)(const void *));
12
13void free_pair( pair * p, void (* free_first)(void *), void (* free_second)(void *));
14
15int 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.