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

version» Context lines:

pike.git/src/post_modules/Nettle/hogweed.cmod:730:    */    PIKECLASS Point    program_flags PROGRAM_USES_PARENT|PROGRAM_NEEDS_PARENT|PROGRAM_CLEAR_STORAGE;    {    CVAR struct ecc_point point;       /*! @decl inherit ECC_Curve::Point    */    EXTRA    { -  /* Perform an inherit of the Point class that our parent -  * contains via its inherit of __builtin.Nettle.ECC_Curve. +  /* Perform an inherit of the Point class (if any) that our parent +  * may contain via its inherit of __builtin.Nettle.ECC_Curve.    */ -  lexical_inherit(1, MK_STRING("Point"), 0, REPORT_ERROR); +  lexical_inherit(1, MK_STRING("Point"), 0, REPORT_WARNING);    }       INIT    {    const struct Nettle_ECC_Curve_struct *parent =    parent_storage(1, Nettle_ECC_Curve_program);    const struct ecc_curve *curve = parent->curve;       if (!curve) Pike_error("No curve selected.\n");    ecc_point_init(&THIS->point, curve);
pike.git/src/post_modules/Nettle/hogweed.cmod:1321:    */    PIKECLASS Point    program_flags PROGRAM_USES_PARENT|PROGRAM_NEEDS_PARENT|PROGRAM_CLEAR_STORAGE;    {    PIKEVAR string(8bit) point flags ID_PRIVATE|ID_PROTECTED|ID_HIDDEN;       /*! @decl inherit ECC_Curve::Point    */    EXTRA    { -  /* Perform an inherit of the Point class that our parent -  * contains via its inherit of __builtin.Nettle.ECC_Curve. +  /* Perform an inherit of the Point class (if any) that our parent +  * may contain via its inherit of __builtin.Nettle.ECC_Curve.    */ -  lexical_inherit(1, MK_STRING("Point"), 0, REPORT_ERROR); +  lexical_inherit(1, MK_STRING("Point"), 0, REPORT_WARNING);    }       PIKEFUN void set(string(8bit) x, string(8bit)|void y)    flags ID_VARIANT;    {    if (x->len != CURVE25519_SIZE) {    Pike_error("Invalid x.\n");    }    if (y && y->len) {    Pike_error("Invalid y.\n");