pike.git/
src/
modules/
Gz/
module.pmod.in
Branch:
Tag:
Non-build tags
All tags
No tags
2003-04-15
2003-04-15 13:53:16 by Marcus Comstedt <marcus@mc.pp.se>
28078d7289b40ca8a07ebf033b1efb91d9f955c7 (
10
lines) (+
4
/-
6
)
[
Show
|
Annotate
]
Branch:
7.9
Fixed append-mode.
Rev: src/modules/Gz/module.pmod.in:1.13
1:
-
// $Id: module.pmod.in,v 1.
12
2003/04/15 13:
45
:
23
marcus Exp $
+
// $Id: module.pmod.in,v 1.
13
2003/04/15 13:
53
:
16
marcus Exp $
#pike __REAL_VERSION__ inherit @module@;
92:
else return 1; });
-
if(write_mode)
{
-
if
(
!
has_value(mode, 'a')
)
-
mode +=
"
t
"
;
-
mode +=
"
c
";
+
if(write_mode)
+
mode += "c"+
(has_value(mode, 'a')
?
"
w
"
:
"
t
"
)
;
}
-
}
+
file_pos = 0; crc = crc32(""); if(objectp(file))