mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-11-08 23:27:15 -05:00
saa: fix indentation
Apply standard indentation to the SAA code, not sure why it was different...
This commit is contained in:
12
saa.c
12
saa.c
@@ -51,7 +51,8 @@ static void saa_extend(struct SAA *s)
|
||||
size_t windex = s->wblk - s->blk_ptrs;
|
||||
|
||||
s->nblkptrs <<= 1;
|
||||
s->blk_ptrs = nasm_realloc(s->blk_ptrs, s->nblkptrs*sizeof(char *));
|
||||
s->blk_ptrs =
|
||||
nasm_realloc(s->blk_ptrs, s->nblkptrs * sizeof(char *));
|
||||
|
||||
s->rblk = s->blk_ptrs + rindex;
|
||||
s->wblk = s->blk_ptrs + windex;
|
||||
@@ -184,7 +185,8 @@ void saa_rnbytes(struct SAA *s, void *data, size_t len)
|
||||
char *d = data;
|
||||
|
||||
if (s->rptr + len > s->datalen) {
|
||||
nasm_malloc_error(ERR_PANIC|ERR_NOFILE, "overrun in saa_rnbytes");
|
||||
nasm_malloc_error(ERR_PANIC | ERR_NOFILE,
|
||||
"overrun in saa_rnbytes");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -333,8 +335,7 @@ void saa_wleb128u(struct SAA *psaa, int value)
|
||||
|
||||
ptemp = temp;
|
||||
len = 0;
|
||||
do
|
||||
{
|
||||
do {
|
||||
byte = value & 127;
|
||||
value >>= 7;
|
||||
if (value != 0) /* more bytes to come */
|
||||
@@ -359,8 +360,7 @@ void saa_wleb128s(struct SAA *psaa, int value)
|
||||
negative = (value < 0);
|
||||
size = sizeof(int) * 8;
|
||||
len = 0;
|
||||
while(more)
|
||||
{
|
||||
while (more) {
|
||||
byte = value & 0x7f;
|
||||
value >>= 7;
|
||||
if (negative)
|
||||
|
||||
Reference in New Issue
Block a user