pike.git / src / post_modules / Nettle / hash.cmod

version» Context lines:

pike.git/src/post_modules/Nettle/hash.cmod:490:    if (parent_State_prog) {    low_inherit(parent_State_prog, 0,    parent_State_fun_num +    parent_prog->inherits[1].identifier_level,    1 + 42, 0, NULL);    }    }    }      #define GET_META(o) \ -  ( ((struct Hash_struct *)parent_storage(1))->meta ) +  ( ((struct Nettle_Hash_struct *)parent_storage(1))->meta )       CVAR void *ctx;       /* FIXME: Create should copy state from the other object, if    * provided. */       /*! @decl State update(string(0..255) data)    *!    *! Hashes more data.    *!    *! @returns    *! Returns @expr{this@} in order to simplify chaining    *! of function calls.    */    PIKEFUN object update(string(0..255) data)    optflags OPT_SIDE_EFFECT; -  rawtype tFunc(tStr8, tObjImpl_HASH_STATE); +  rawtype tFunc(tStr8, tObjImpl_NETTLE_HASH_STATE);    {    void *ctx = THIS->ctx;    const struct nettle_hash *meta =    GET_META(Pike_fp->current_object);       if (!ctx || !meta)    Pike_error("State not properly initialized.\n");       NO_WIDE_STRING(data);