diff options
author | H. Peter Anvin <hpa@zytor.com> | 2002-04-30 20:53:55 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2002-04-30 20:53:55 +0000 |
commit | eba20a73f2b3396f617747e789e35a679eb09606 (patch) | |
tree | 2a1b5e2652e39022a1d6ff7a36a630041edad1b6 /sync.c | |
parent | 87bc61964cf5d2cc2e322883d6f927a43fb53af3 (diff) | |
download | nasm-eba20a73f2b3396f617747e789e35a679eb09606.tar.gz nasm-eba20a73f2b3396f617747e789e35a679eb09606.tar.bz2 nasm-eba20a73f2b3396f617747e789e35a679eb09606.zip |
NASM 0.98p3
Diffstat (limited to 'sync.c')
-rw-r--r-- | sync.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -25,7 +25,8 @@ static struct Sync { } *synx; static int nsynx; -void init_sync(void) { +void init_sync(void) +{ /* * I'd like to allocate an array of size SYNC_MAX, then write * `synx--' which would allow numbering the array from one @@ -48,7 +49,8 @@ void init_sync(void) { nsynx = 0; } -void add_sync(unsigned long pos, unsigned long length) { +void add_sync(unsigned long pos, unsigned long length) +{ int i; if (nsynx == SYNC_MAX) @@ -68,7 +70,8 @@ void add_sync(unsigned long pos, unsigned long length) { } } -unsigned long next_sync(unsigned long position, unsigned long *length) { +unsigned long next_sync(unsigned long position, unsigned long *length) +{ while (nsynx > 0 && synx[1].pos + synx[1].length <= position) { int i, j; struct Sync t; |