summaryrefslogtreecommitdiffstats
path: root/src/H5Tbit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Tbit.c')
-rw-r--r--src/H5Tbit.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/H5Tbit.c b/src/H5Tbit.c
index 8b0b53b..74db048 100644
--- a/src/H5Tbit.c
+++ b/src/H5Tbit.c
@@ -328,7 +328,7 @@ H5T_bit_find (uint8 *buf, size_t offset, size_t size, H5T_sdir_t direction,
/* Beginning */
if (offset) {
for (i=offset; i<8 && size>0; i++, size--) {
- if (value==((buf[idx]>>i) & 0x01)) {
+ if (value==(hbool_t)((buf[idx]>>i) & 0x01)) {
return 8*idx+i - base;
}
}
@@ -339,7 +339,7 @@ H5T_bit_find (uint8 *buf, size_t offset, size_t size, H5T_sdir_t direction,
while (size>=8) {
if ((value?0x00:0xff)!=buf[idx]) {
for (i=0; i<8; i++) {
- if (value==((buf[idx]>>i) & 0x01)) {
+ if (value==(hbool_t)((buf[idx]>>i) & 0x01)) {
return 8*idx+i - base;
}
}
@@ -349,7 +349,7 @@ H5T_bit_find (uint8 *buf, size_t offset, size_t size, H5T_sdir_t direction,
}
/* End */
for (i=0; i<(ssize_t)size; i++) {
- if (value==((buf[idx]>>i) & 0x01)) {
+ if (value==(hbool_t)((buf[idx]>>i) & 0x01)) {
return 8*idx+i - base;
}
}
@@ -363,7 +363,7 @@ H5T_bit_find (uint8 *buf, size_t offset, size_t size, H5T_sdir_t direction,
/* Beginning */
if (size>8-offset && (offset+size)%8) {
for (i=(offset+size)%8-1; i>=0; --i, --size) {
- if (value==((buf[idx]>>i) & 0x01)) {
+ if (value==(hbool_t)((buf[idx]>>i) & 0x01)) {
return 8*idx+i - base;
}
}
@@ -373,7 +373,7 @@ H5T_bit_find (uint8 *buf, size_t offset, size_t size, H5T_sdir_t direction,
while (size>=8) {
if ((value?0x00:0xff)!=buf[idx]) {
for (i=7; i>=0; --i) {
- if (value==((buf[idx]>>i) & 0x01)) {
+ if (value==(hbool_t)((buf[idx]>>i) & 0x01)) {
return 8*idx+i - base;
}
}
@@ -384,7 +384,7 @@ H5T_bit_find (uint8 *buf, size_t offset, size_t size, H5T_sdir_t direction,
/* End */
if (size>0) {
for (i=offset+size-1; i>=(ssize_t)offset; --i) {
- if (value==((buf[idx]>>i) & 0x01)) {
+ if (value==(hbool_t)((buf[idx]>>i) & 0x01)) {
return 8*idx+i - base;
}
}
@@ -414,7 +414,7 @@ H5T_bit_find (uint8 *buf, size_t offset, size_t size, H5T_sdir_t direction,
*
*-------------------------------------------------------------------------
*/
-hbool_t
+htri_t
H5T_bit_inc(uint8 *buf, size_t start, size_t size)
{
size_t idx = start / 8;
an> CMD_REMARK = 37 | SIMPLESECT_BIT , CMD_RETURN = 38 | SIMPLESECT_BIT , CMD_RETVAL = 39 | SIMPLESECT_BIT, CMD_SA = 40 | SIMPLESECT_BIT , CMD_SECTION = 41, CMD_SUBSECTION = 42, CMD_SUBSUBSECTION= 43, CMD_PARAGRAPH = 44, CMD_SINCE = 45 | SIMPLESECT_BIT, CMD_SKIP = 46, CMD_SKIPLINE = 47, CMD_STARTCODE = 48, CMD_JAVALINK = 49, CMD_TEST = 50 | SIMPLESECT_BIT, CMD_TODO = 51 | SIMPLESECT_BIT, CMD_UNTIL = 52, CMD_VERBATIM = 53, CMD_VERBINCLUDE = 54, CMD_VERSION = 55 | SIMPLESECT_BIT, CMD_WARNING = 56 | SIMPLESECT_BIT , CMD_BSLASH = 57, CMD_AT = 58, CMD_LESS = 59, CMD_GREATER = 60, CMD_AMP = 61, CMD_DOLLAR = 62, CMD_HASH = 63, CMD_PERCENT = 64, CMD_LINEBREAK = 65, CMD_FORMULA = 66, CMD_SECREFLIST = 67, CMD_ENDSECREFLIST= 68, CMD_LANGSWITCH = 69, CMD_AUTHORS = 70 | SIMPLESECT_BIT, CMD_INTERNALREF = 71 }; enum HtmlTagType { HTML_UNKNOWN = 0, HTML_CENTER = 1, HTML_TABLE = 2, HTML_CAPTION = 3, HTML_SMALL = 4, HTML_CODE = 5, HTML_IMG = 6, HTML_PRE = 7, HTML_SUB = 8, HTML_SUP = 9, HTML_TR = 10, HTML_TD = 11, HTML_TH = 12, HTML_OL = 13, HTML_UL = 14, HTML_LI = 15, HTML_EMPHASIS = 16, HTML_HR = 17, HTML_DL = 18, HTML_DT = 19, HTML_DD = 20, HTML_BR = 21, HTML_A = 22, HTML_BOLD = 23, HTML_P = 24, HTML_H1 = 25, HTML_H2 = 26, HTML_H3 = 27, HTML_H4 = 28, HTML_H5 = 29, HTML_H6 = 30 }; class CmdMapper { public: static int map(const char *name); static void freeInstance(); private: static CmdMapper *instance(); CmdMapper(); int find(const char *name); QDict<int> m_map; static CmdMapper *m_instance; }; class HtmlTagMapper { public: static int map(const char *name); static void freeInstance(); private: static HtmlTagMapper *instance(); HtmlTagMapper(); int find(const char *name); QDict<int> m_map; static HtmlTagMapper *m_instance; }; #endif