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

version» Context lines:

pike.git/src/post_modules/Nettle/mac.cmod:167:    program_flags PROGRAM_USES_PARENT|PROGRAM_NEEDS_PARENT|PROGRAM_CLEAR_STORAGE;    {    DOCSTART() @decl inherit MAC::State    DOCEND()       EXTRA    {    /* Perform an inherit of the State class (if any) that our parent    * may contain via its inherit of __builtin.Nettle.MAC.    */ -  struct program *parent_prog = Pike_compiler->previous->new_program; -  struct object *parent_obj = Pike_compiler->previous->fake_object; -  int parent_State_fun_num = -  really_low_find_shared_string_identifier(MK_STRING("State"), -  parent_prog, -  SEE_PROTECTED|SEE_PRIVATE); -  if (parent_State_fun_num >= 0) { -  struct program *parent_State_prog = -  low_program_from_function(parent_obj, parent_State_fun_num); -  if (parent_State_prog) { -  parent_State_fun_num = -  really_low_reference_inherited_identifier(Pike_compiler->previous, -  0, parent_State_fun_num); -  low_inherit(parent_State_prog, 0, -  parent_State_fun_num, -  1 + 42, 0, NULL); +  inherit_internal_class(MK_STRING("State"));    } -  } -  } +       #define GET_META(o) \    ( ((struct Nettle_MAC_struct *)parent_storage(1, Nettle_MAC_program))->meta )       CVAR void *ctx;       /*! @decl void create(string(8bit) key)    *!    *! Initialize the MAC with a password.    *!