*error = true;
return 0;
}
-
+
/*
* `checklimit' must be 2**(32|64) / radix. We can't do that in
* 32/64-bit arithmetic, which we're (probably) using, so we
(result == checklimit && digit >= last)) {
warn = true;
}
-
+
result = radix * result + digit;
}
r++;
static void saa_extend(struct SAA *s)
{
size_t blkn = s->nblks++;
-
+
if (blkn >= s->nblkptrs) {
size_t rindex = s->rblk - s->blk_ptrs;
size_t windex = s->wblk - s->blk_ptrs;
void saa_fread(struct SAA *s, size_t posn, void *data, size_t len)
{
size_t ix;
-
+
if (posn+len > s->datalen) {
nasm_malloc_error(ERR_PANIC|ERR_NOFILE, "overrun in saa_fread");
return;
void saa_fwrite(struct SAA *s, size_t posn, const void *data, size_t len)
{
size_t ix;
-
+
if (posn > s->datalen) {
/* Seek beyond the end of the existing array not supported */
nasm_malloc_error(ERR_PANIC|ERR_NOFILE, "overrun in saa_fwrite");
{
(void)filename;
(void)linenumber;
- (void)segto;
+ (void)segto;
}
void null_debug_deflabel(char *name, int32_t segment, int32_t offset,
int is_global, char *special)