pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:3161:    /*! @decl Buffer `+=( string|Buffer what )    */    PIKEFUN object `+=( string|Buffer what )    rawtype tFunc(tOr(tString, tObjIs_BUFFER), tObjIs_BUFFER);    {    f_Buffer_add( 1 );    REF_RETURN Pike_fp->current_object;    }       /*! @decl Buffer `==( mixed other ) +  *! +  *! Is able to compare directly with strings and other Buffers.    */    PIKEFUN int(0..1) `==( mixed other )    rawtype tFunc(tMixed, tInt01);    {    struct Buffer_struct *str = THIS;    struct pike_string *a;       switch(TYPEOF(*other))    {    case PIKE_T_STRING: