%
*/
-typedef struct _html_code
+static const struct
{
- const short int
+ const unsigned char
len;
const char
- *code,
+ code[7],
val;
-} html_code;
-
-static const html_code html_codes[] = {
+} html_codes[] = {
#ifdef HANDLE_GT_LT
{ 4,"<",'<' },
{ 4,">",'>' },
*s=value;
return(o);
}
- for (i=0; i < (ssize_t) (sizeof(html_codes)/sizeof(html_code)); i++)
+ for (i=0; i < (ssize_t) (sizeof(html_codes)/sizeof(html_codes[0])); i++)
{
if (html_codes[i].len <= (ssize_t) length)
if (stringnicmp(s,html_codes[i].code,(size_t) (html_codes[i].len)) == 0)
int
i,
- tagcount = (int) (sizeof(tags) / sizeof(tag_spec));
+ tagcount = (int) (sizeof(tags) / sizeof(tags[0]));
int
c;
int
i,
- tagcount = (int) (sizeof(tags) / sizeof(tag_spec));
+ tagcount = (int) (sizeof(tags) / sizeof(tags[0]));
int
c;
i;
static const char
- *const targets[NumberTargets] = { "c ", "g ", "g4 ", "m ", "b ", "s " };
+ *const targets[NumberTargets][3] = { "c ", "g ", "g4 ", "m ", "b ", "s " };
if (search_start != MagickFalse)
{