aboutsummaryrefslogtreecommitdiff
path: root/src/iemlib.h
diff options
context:
space:
mode:
authormusil <tmusil@users.sourceforge.net>2009-03-04 14:31:46 +0000
committermusil <tmusil@users.sourceforge.net>2009-03-04 14:31:46 +0000
commita7d2dd2df337a2c7bb1fc84a33d7497e6aacf9fc (patch)
tree2497319e7216e0a38cfdfd6b556cfc6d8da6392b /src/iemlib.h
parented197c65f7f9325f68811b3ba61f6865218057af (diff)
compatible to new array struct
svn path=/trunk/externals/iem/iem_spec2/; revision=10834
Diffstat (limited to 'src/iemlib.h')
-rw-r--r--src/iemlib.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/iemlib.h b/src/iemlib.h
index 4c229e3..97b088b 100644
--- a/src/iemlib.h
+++ b/src/iemlib.h
@@ -1,7 +1,7 @@
/* For information on usage and redistribution, and for a DISCLAIMER OF ALL
* WARRANTIES, see the file, "LICENSE.txt," in this distribution.
-iemlib written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2007 */
+iemlib written by Thomas Musil, Copyright (c) IEM KUG Graz Austria 2000 - 2009 */
#ifndef __IEMLIB_H__
#define __IEMLIB_H__
@@ -104,10 +104,12 @@ union tabfudge_f
# define iemarray_t t_word
# define iemarray_getarray garray_getfloatwords
# define iemarray_getfloat(pointer, index) (pointer[index].w_float)
+# define iemarray_setfloat(pointer, index, fvalue) (pointer[index].w_float = fvalue)
#else
# define iemarray_t t_float
# define iemarray_getarray garray_getfloatarray
# define iemarray_getfloat(pointer, index) (pointer[index])
+# define iemarray_setfloat(pointer, index, fvalue) (pointer[index] = fvalue)
#endif