pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2011-03-07
2011-03-07 09:54:38 by Martin Stjernholm <mast@lysator.liu.se>
83045c3f93d876fbdec07b0536af5b125a44ab14 (
19
lines) (+
14
/-
5
)
[
Show
|
Annotate
]
Branch:
7.9
Cleaned up some Sql.Null remains.
Also unified Builtin.Null and Val.Null.
3679:
/*! @endclass */
-
/*! @class
SqlNull
+
/*! @class
Null
*! *! This class is used to implement the low-level aspects of @[Val.Null]. *!
3696:
*! @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); }
3717:
{ pop_n_elems(args); if (fmt == 'O') {
-
push_constant_text("
Sql
.
NULL
");
+
push_constant_text("
Val
.
null
");
} else { push_undefined(); }
3738:
push_int(0); return; }
-
push_constant_text("is_
sql
_null");
+
push_constant_text("is_
val
_null");
o_index(); }
4891:
* 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)