summaryrefslogtreecommitdiffstats
path: root/flow/gsl/gslmagic.c
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 22:19:39 +0000
commit2a73c38820d743a7daf930d25bdde1ba9a5a53e3 (patch)
tree12a6aed42065ca45cdd31352f1c43a8ba27a7278 /flow/gsl/gslmagic.c
parentf7959a4e97cdef8152a8bbf4e6d0b69cefea1baa (diff)
downloadarts-2a73c38820d743a7daf930d25bdde1ba9a5a53e3.tar.gz
arts-2a73c38820d743a7daf930d25bdde1ba9a5a53e3.zip
rename the following methods:
tqparent parent tqmask mask git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/dependencies/arts@1246260 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'flow/gsl/gslmagic.c')
-rw-r--r--flow/gsl/gslmagic.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/flow/gsl/gslmagic.c b/flow/gsl/gslmagic.c
index 2ac4083..7887965 100644
--- a/flow/gsl/gslmagic.c
+++ b/flow/gsl/gslmagic.c
@@ -187,7 +187,7 @@ struct _Magic
gulong offset;
guint data_size;
MagicCheckType magic_check;
- guint32 data_tqmask;
+ guint32 data_mask;
MagicData value;
guint read_string : 1;
guint read_size : 1;
@@ -364,16 +364,16 @@ magic_parse_type (Magic *magic,
{
string += 1;
if (string[0] == '0')
- magic->data_tqmask = strtol (string, &f, string[1] == 'x' ? 16 : 8);
+ magic->data_mask = strtol (string, &f, string[1] == 'x' ? 16 : 8);
else
- magic->data_tqmask = strtol (string, &f, 10);
+ magic->data_mask = strtol (string, &f, 10);
if (f && *f != 0)
return FALSE;
while (*string)
string++;
}
else
- magic->data_tqmask = 0xffffffff;
+ magic->data_mask = 0xffffffff;
return *string == 0;
}
@@ -464,31 +464,31 @@ magic_check_data (Magic *magic,
cmp = 1;
break;
case MAGIC_CHECK_INT_EQUAL:
- data->v_int32 &= magic->data_tqmask;
+ data->v_int32 &= magic->data_mask;
cmp = data->v_int32 == magic->value.v_int32;
break;
case MAGIC_CHECK_INT_GREATER:
- data->v_int32 &= magic->data_tqmask;
+ data->v_int32 &= magic->data_mask;
cmp = data->v_int32 > magic->value.v_int32;
break;
case MAGIC_CHECK_INT_SMALLER:
- data->v_int32 &= magic->data_tqmask;
+ data->v_int32 &= magic->data_mask;
cmp = data->v_int32 < magic->value.v_int32;
break;
case MAGIC_CHECK_UINT_GREATER:
- data->v_uint32 &= magic->data_tqmask;
+ data->v_uint32 &= magic->data_mask;
cmp = data->v_uint32 > magic->value.v_uint32;
break;
case MAGIC_CHECK_UINT_SMALLER:
- data->v_uint32 &= magic->data_tqmask;
+ data->v_uint32 &= magic->data_mask;
cmp = data->v_uint32 < magic->value.v_uint32;
break;
case MAGIC_CHECK_UINT_ZEROS:
- data->v_uint32 &= magic->data_tqmask;
+ data->v_uint32 &= magic->data_mask;
cmp = (data->v_int32 & magic->value.v_int32) == 0;
break;
case MAGIC_CHECK_UINT_ONES:
- data->v_uint32 &= magic->data_tqmask;
+ data->v_uint32 &= magic->data_mask;
cmp = (data->v_int32 & magic->value.v_int32) == magic->value.v_int32;
break;
case MAGIC_CHECK_STRING_EQUAL: