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
76030025
Commit
76030025
authored
Aug 11, 1992
by
inge
Browse files
Made saving of text-stats more efficient.
parent
a2784057
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/server/ChangeLog
View file @
76030025
Wed Aug 12 00:33:55 1992 Inge Wallin (inge@lysator)
* simple-cache.c(save_one_text): Write texts to file as long as
they are removed.
Thu Jun 11 16:28:39 1992 Per Cederqvist (ceder@lysator)
* vercion.incl: Version 1.2.3.
...
...
src/server/simple-cache.c
View file @
76030025
/*
* $Id: simple-cache.c,v 0.2
3
1992/0
6
/11
19:16:47 ceder
Exp $
* $Id: simple-cache.c,v 0.2
4
1992/0
8
/11
22:35:56 inge
Exp $
* Copyright (C) 1991 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -33,7 +33,7 @@
* New save algorithm by ceder.
*/
static
char
*
rcsid
=
"$Id: simple-cache.c,v 0.2
3
1992/0
6
/11
19:16:47 ceder
Exp $"
;
static
char
*
rcsid
=
"$Id: simple-cache.c,v 0.2
4
1992/0
8
/11
22:35:56 inge
Exp $"
;
...
...
@@ -1509,7 +1509,7 @@ save_one_text(void)
long
offset
;
long
offset2
;
if
(
sync_next
<
highest_text_no
)
while
(
sync_next
<
highest_text_no
)
{
cn
=
get_text_node
(
sync_next
);
...
...
@@ -1517,6 +1517,9 @@ save_one_text(void)
{
putc
(
'@'
,
file_b
);
putc
(
'\n'
,
file_b
);
sync_next
++
;
continue
;
}
else
{
...
...
@@ -1541,10 +1544,14 @@ save_one_text(void)
putc
(
'\n'
,
file_b
);
cn
->
size_b
=
ftell
(
file_b
)
-
cn
->
pos_b
;
sync_next
++
;
break
;
}
sync_next
++
;
}
else
/* All texts are written. */
/* If all texts are written, do some clean-up. */
if
(
sync_next
==
highest_text_no
)
{
if
(
ferror
(
file_b
)
!=
0
)
{
...
...
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