+2009-09-25 Martin Thuresson <martint@google.com>
+
+ Update soruces to make alpha targets compile cleanly with
+ -Wc++-compat:
+ * chew.c: Add casts.
+
2009-08-29 Martin Thuresson <martin@mtme.org>
* chew.c (newentry, add_intrinsic): Rename variable new to
{
buffer->write_idx = 0;
buffer->size = size;
- buffer->ptr = malloc (size);
+ buffer->ptr = (char *) malloc (size);
}
static void
if (buffer->write_idx == buffer->size)
{
buffer->size *= 2;
- buffer->ptr = realloc (buffer->ptr, buffer->size);
+ buffer->ptr = (char *) realloc (buffer->ptr, buffer->size);
}
buffer->ptr[buffer->write_idx++] = ch;
{
while (buffer->write_idx + len >= buffer->size)
buffer->size *= 2;
- buffer->ptr = realloc (buffer->ptr, buffer->size);
+ buffer->ptr = (char *) realloc (buffer->ptr, buffer->size);
}
memcpy (buffer->ptr + buffer->write_idx, buf, len);
buffer->write_idx += len;
}
}
- *word = malloc (length + 1);
+ *word = (char *) malloc (length + 1);
dst = *word;
src = word_start;