pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:1334:    ind->size, val->size);       RETURN mkmapping(ind, val);   }      /*! @decl string secure(string str)    *! @belongs String    *!    *! Marks the string as secure, which will clear the memory area    *! before freeing the string. +  *! +  *! @seealso +  *! @[Object.secure()]    */   PIKEFUN string string_secure(string str)    optflags OPT_SIDE_EFFECT;    rawtype tFunc(tSetvar(0, tStr), tVar(0));   {    str->flags |= STRING_CLEAR_ON_EXIT;    REF_RETURN str;   }      /*! @decl object secure(object str)    *! @belongs Object    *!    *! Marks the object as secure, which will clear the memory area    *! before freeing the object. -  +  *! +  *! @seealso +  *! @[String.secure()]    */   PIKEFUN object object_secure(object obj)    optflags OPT_SIDE_EFFECT;    rawtype tFunc(tSetvar(0, tObj), tVar(0));   {    obj->flags |= OBJECT_CLEAR_ON_EXIT;    REF_RETURN obj;   }      /*! @decl int count(string haystack, string needle)