pike.git / src / builtin.cmod

version» Context lines:

pike.git/src/builtin.cmod:3672:    push_function(get_setter(o, f), f_Setter_cq__backtick_28_29_fun_num);    } else {    push_undefined();    }    stack_pop_n_elems_keep_top(args);   }      /*! @endclass    */    - /*! @class SqlNull + /*! @class Null    *!    *! This class is used to implement the low-level aspects of @[Val.Null].    *!    *! @note    *! This class should typically not be used directly. Use    *! @[Val.Null] instead.    *!    *! @note    *! This class was previously available as @[Sql.Null]. Any such use    *! should be replaced with @[Val.Null].    *!    *! @deprecated Val.Null    *!    *! @seealso    *! @[Val.Null], @[Val.null]    */ - PIKECLASS SqlNull + PIKECLASS Null   {    EXTRA { -  +  /*! @decl constant is_val_null = 1 +  *! +  *! Nonzero recognition constant. +  */ +  add_integer_constant("is_val_null", 1, 0); +     /*! @decl constant is_sql_null = 1    *!    *! SQL Null marker. -  +  *! +  *! @deprecated is_val_null    */    add_integer_constant("is_sql_null", 1, 0);    }       PIKEFUN int `!()    flags ID_PROTECTED;    {    RETURN 1;    }       PIKEFUN string _sprintf(int fmt, mixed ... extras)    flags ID_PROTECTED;    {    pop_n_elems(args);    if (fmt == 'O') { -  push_constant_text("Sql.NULL"); +  push_constant_text("Val.null");    } else {    push_undefined();    }    }       PIKEFUN int __hash()    flags ID_PROTECTED;    {    pop_n_elems(args);    push_int(17);    }       PIKEFUN int `==(mixed other)    flags ID_PROTECTED;    {    if (other->type != T_OBJECT) {    pop_stack();    push_int(0);    return;    } -  push_constant_text("is_sql_null"); +  push_constant_text("is_val_null");    o_index();    }       /*! @decl string encode_json()    *!    *! Defined for use with @[Standards.JSON.encode], so that it    *! formats NULL as @expr{null@}.    */    PIKEFUN string encode_json(...)    {
pike.git/src/builtin.cmod:4884:    }      GET_VAL (true)   GET_VAL (false)   GET_VAL (null)      /* Kludge needed for the static null objects in the oracle module. It    * ought to be fixed to use dynamic lookup of them instead. */   PMOD_EXPORT struct program *get_sql_null_prog(void)   { -  return SqlNull_program; +  return Null_program;   }      void init_builtin(void)   {    init_pike_list_node_blocks();    INIT   }      void exit_builtin(void)   {