pike.git / src / modules / Postgres / postgres.cmod

version» Context lines:

pike.git/src/modules/Postgres/postgres.cmod:752:    *!    *! This function is Postgres-specific, and thus it is not available    *! through the generic SQL-interface    *!    *! @seealso    *! Sql.postgres    */      PIKEFUN void _set_notify_callback(function|void cb)   { -  check_all_args("postgres->_set_notify_callback()", -  args, BIT_INT|BIT_FUNCTION, 0); +  check_all_args(NULL, args, BIT_INT|BIT_FUNCTION, 0);       if (TYPEOF(Pike_sp[-args]) == PIKE_T_INT) {    if (TYPEOF(THIS->notify_callback) != PIKE_T_FREE) {    free_svalue(&THIS->notify_callback);    mark_free_svalue (&THIS->notify_callback);    }    return;    }    /*let's assume it's a function otherwise*/    assign_svalue(&THIS->notify_callback,Pike_sp-args);