Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
lyskom-server-ceder-1616-generations-topgit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
664f85a3
Commit
664f85a3
authored
26 years ago
by
Per Cederqvist
Browse files
Options
Downloads
Patches
Plain Diff
(Local_text_no_iter): New experimental typedef.
(l2g_append): Renamed i to ix and changed type to Local_text_no_iter.
parent
2eebd1b7
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/server/local-to-global.c
+6
-3
6 additions, 3 deletions
src/server/local-to-global.c
with
6 additions
and
3 deletions
src/server/local-to-global.c
+
6
−
3
View file @
664f85a3
...
@@ -330,13 +330,16 @@ l2g_copy(Local_to_global *from, Local_to_global *to)
...
@@ -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
* Append the pair LNO-TNO. LNO has to be bigger than the last local
* number in the structure (this is not tested FIXME?).
* number in the structure (this is not tested FIXME?).
*/
*/
typedef
Local_text_no
Local_text_no_iter
;
void
void
l2g_append
(
Local_to_global
*
l2g
,
l2g_append
(
Local_to_global
*
l2g
,
Local_text_no
lno
,
Local_text_no
lno
,
Text_no
tno
)
Text_no
tno
)
{
{
L2g_block_info
*
binfo
;
L2g_block_info
*
binfo
;
int
i
;
Local_text_no_iter
i
x
;
/* Don't add anything if tno == 0. */
/* Don't add anything if tno == 0. */
if
(
tno
==
0
)
if
(
tno
==
0
)
...
@@ -391,8 +394,8 @@ l2g_append(Local_to_global *l2g,
...
@@ -391,8 +394,8 @@ l2g_append(Local_to_global *l2g,
if
(
binfo
->
key_block
==
NULL
)
{
if
(
binfo
->
key_block
==
NULL
)
{
/* A dense block. */
/* A dense block. */
for
(
i
=
binfo
->
first_free
;
i
<
lno
-
binfo
->
start
;
++
i
)
for
(
i
x
=
binfo
->
first_free
;
i
x
<
lno
-
binfo
->
start
;
++
i
x
)
binfo
->
value_block
[
i
]
=
0
;
binfo
->
value_block
[
i
x
]
=
0
;
binfo
->
value_block
[
lno
-
binfo
->
start
]
=
tno
;
binfo
->
value_block
[
lno
-
binfo
->
start
]
=
tno
;
binfo
->
first_free
=
lno
-
binfo
->
start
+
1
;
binfo
->
first_free
=
lno
-
binfo
->
start
+
1
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment