Branch: Tag:

2008-06-29

2008-06-29 23:14:18 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Stricter type for String.secure().

Rev: src/builtin.cmod:1.220

2:   || 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.219 2008/06/29 18:01:39 nilsson Exp $ + || $Id: builtin.cmod,v 1.220 2008/06/29 23:14:18 grubba Exp $   */      #include "global.h"
651:    *! Marks the string as secure, which will clear the memory area    *! before freeing the string.    */ - PIKEFUN string secure(string str) + PIKEFUN string string_secure(string str)    optflags OPT_SIDE_EFFECT; -  +  rawtype tFunc(tSetvar(0, tStr), tVar(0));   {    str->flags |= STRING_CLEAR_ON_EXIT;    RETURN str;
3705:       /*! @decl int(0..1) first()    *! -  *! Reset the iterator. +  *! Reset the iterator to point to the first element in +  *! the list.    *!    *! @returns    *! Returns @expr{1@} if there are elements in the list,