From 173e87e8efe8371e2810144c6db6e2a23e053ce4 Mon Sep 17 00:00:00 2001 From: Martin Stjernholm <mast@lysator.liu.se> Date: Mon, 7 Apr 2003 18:19:15 +0200 Subject: [PATCH] Forward-ported String.Buffer.`+= which apparently only got into 7.2. Rev: src/builtin.cmod:1.130 --- src/builtin.cmod | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/builtin.cmod b/src/builtin.cmod index e1be74c090..08720fda1c 100644 --- a/src/builtin.cmod +++ b/src/builtin.cmod @@ -2,7 +2,7 @@ || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information. -|| $Id: builtin.cmod,v 1.129 2003/04/07 15:30:10 mast Exp $ +|| $Id: builtin.cmod,v 1.130 2003/04/07 16:19:15 mast Exp $ */ #include "global.h" @@ -1694,6 +1694,12 @@ PIKECLASS Buffer RETURN res; } + PIKEFUN object `+=( string what ) + { + f_Buffer_add( 1 ); + REF_RETURN Pike_fp->current_object; + } + /*! @decl int add(string ... data) *! *! Adds @[data] to the buffer. Returns the size of the buffer. -- GitLab