Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
664f85a3
Commit
664f85a3
authored
Jul 08, 1998
by
Per Cederqvist
Browse files
(Local_text_no_iter): New experimental typedef.
(l2g_append): Renamed i to ix and changed type to Local_text_no_iter.
parent
2eebd1b7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/local-to-global.c
View file @
664f85a3
...
...
@@ -330,13 +330,16 @@ l2g_copy(Local_to_global *from, Local_to_global *to)
* Append the pair LNO-TNO. LNO has to be bigger than the last local
* number in the structure (this is not tested FIXME?).
*/
typedef
Local_text_no
Local_text_no_iter
;
void
l2g_append
(
Local_to_global
*
l2g
,
Local_text_no
lno
,
Text_no
tno
)
{
L2g_block_info
*
binfo
;
int
i
;
Local_text_no_iter
i
x
;
/* Don't add anything if tno == 0. */
if
(
tno
==
0
)
...
...
@@ -391,8 +394,8 @@ l2g_append(Local_to_global *l2g,
if
(
binfo
->
key_block
==
NULL
)
{
/* A dense block. */
for
(
i
=
binfo
->
first_free
;
i
<
lno
-
binfo
->
start
;
++
i
)
binfo
->
value_block
[
i
]
=
0
;
for
(
i
x
=
binfo
->
first_free
;
i
x
<
lno
-
binfo
->
start
;
++
i
x
)
binfo
->
value_block
[
i
x
]
=
0
;
binfo
->
value_block
[
lno
-
binfo
->
start
]
=
tno
;
binfo
->
first_free
=
lno
-
binfo
->
start
+
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment