source: doc/generic_types/evaluation/c-pair.h @ 0d10090

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerresolv-newwith_gc
Last change on this file since 0d10090 was 87c5f40, checked in by Aaron Moss <a3moss@…>, 5 years ago

Update benchmarks to include stack of pairs

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