From 7c2a9cf131cdfebe75945a27f27a728469007e50 Mon Sep 17 00:00:00 2001 From: jason Date: Fri, 19 Oct 2001 15:09:01 +0000 Subject: [PATCH] added another header file --- mi_label_prototypes.h | 50 +++++++++++++++++++++++++++++++++++++++++++ special_geometry.h | 20 +++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 mi_label_prototypes.h create mode 100644 special_geometry.h diff --git a/mi_label_prototypes.h b/mi_label_prototypes.h new file mode 100644 index 0000000..92ca149 --- /dev/null +++ b/mi_label_prototypes.h @@ -0,0 +1,50 @@ +#ifndef DEF_mi_label_prototypes +#define DEF_mi_label_prototypes + +public BOOLEAN get_label_lookup_var( + int minc_id, + int *label_var ); + +public BOOLEAN read_label_lookup( + int minc_id, + int *n_labels, + int *values[], + STRING *labels[] ); + +public BOOLEAN write_label_lookup( + int minc_id, + int n_labels, + int values[], + STRING labels[] ); + +public void add_label_to_list( + int *n_labels, + int *values[], + STRING *labels[], + int value_to_add, + STRING label_to_add ); + +public BOOLEAN delete_label_from_list( + int *n_labels, + int *values[], + STRING *labels[], + int value_to_delete ); + +public BOOLEAN lookup_value_for_label( + int n_labels, + int values[], + STRING labels[], + STRING label, + int *value ); + +public BOOLEAN lookup_label_for_value( + int n_labels, + int values[], + STRING labels[], + int value, + STRING *label ); + +public void print_label( + int value, + STRING label ); +#endif diff --git a/special_geometry.h b/special_geometry.h new file mode 100644 index 0000000..8dc6989 --- /dev/null +++ b/special_geometry.h @@ -0,0 +1,20 @@ +#ifndef DEF_SPECIAL_GEOMETRY +#define DEF_SPECIAL_GEOMETRY + +#include +#include +#include + +#ifndef public +#define public extern +#define public_was_defined_here +#endif + +#include + +#ifdef public_was_defined_here +#undef public +#undef public_was_defined_here +#endif + +#endif