From ead42e265394480c3a26f44875454fbc00430e51 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm <mast@lysator.liu.se> Date: Sun, 4 Jul 2004 14:38:50 +0200 Subject: [PATCH] Added Pike.Encoder and Pike.Decoder which are the preferred replacements for the compound Pike.Codec. Made the docs for them appear in the right place. Rev: lib/master.pike.in:1.352 Rev: lib/modules/Pike.pmod/module.pmod:1.11 --- lib/master.pike.in | 10 ++++++++-- lib/modules/Pike.pmod/module.pmod | 6 ++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/lib/master.pike.in b/lib/master.pike.in index 04cd31f1c2..1a889bcdf6 100644 --- a/lib/master.pike.in +++ b/lib/master.pike.in @@ -6,7 +6,7 @@ // Pike is distributed under GPL, LGPL and MPL. See the file COPYING // for more information. // -// $Id: master.pike.in,v 1.351 2004/06/27 14:11:40 nilsson Exp $ +// $Id: master.pike.in,v 1.352 2004/07/04 12:38:49 mast Exp $ #pike __REAL_VERSION__ //#pragma strict_types @@ -2679,7 +2679,7 @@ void _main(array(string) orig_argv, array(string) env) error("Error: %s has no main().\n", argv[0]); ret=script->main(sizeof(argv),argv,env); }; - // Disable traceing. + // Disable tracing. trace = predef::trace(trace); if (err) { handle_error (err); @@ -3693,6 +3693,8 @@ array get_backtrace (object|array err) #endif class Encoder +//! @appears Pike.Encoder +//! //! Codec for use with @[encode_value]. It understands all the //! standard references to builtin functions and pike modules. //! @@ -4069,6 +4071,8 @@ class Encoder } class Decoder (void|string fname, void|int mkobj) +//! @appears Pike.Decoder +//! //! Codec for use with @[decode_value]. This is the decoder //! corresponding to @[Encoder]. See that one for more details. { @@ -4231,6 +4235,8 @@ Decoder get_codec(string|void fname, int|void mkobj) } class Codec +//! @appears Pike.Codec +//! //! @[Encoder] and @[Decoder] rolled into one. This is for mainly //! compatibility; there's typically no use combining encoding and //! decoding into the same object. diff --git a/lib/modules/Pike.pmod/module.pmod b/lib/modules/Pike.pmod/module.pmod index b1526ae58f..5074a276bc 100644 --- a/lib/modules/Pike.pmod/module.pmod +++ b/lib/modules/Pike.pmod/module.pmod @@ -3,7 +3,7 @@ // Pike core things that don't belong anywhere else. // -// $Id: module.pmod,v 1.10 2004/06/14 07:40:19 mirar Exp $ +// $Id: module.pmod,v 1.11 2004/07/04 12:38:50 mast Exp $ constant WEAK_INDICES = __builtin.PIKE_WEAK_INDICES; constant WEAK_VALUES = __builtin.PIKE_WEAK_VALUES; @@ -18,4 +18,6 @@ constant DefaultBackend = __builtin.__backend; constant gc_parameters = __builtin.gc_parameters; -program Codec=master()->Codec; +program Encoder = [program] master()->Encoder; +program Decoder = [program] master()->Decoder; +program Codec = [program] master()->Codec; -- GitLab