pike.git/
src/
builtin.cmod
Branch:
Tag:
Non-build tags
All tags
No tags
2010-05-28
2010-05-28 18:13:46 by Martin Stjernholm <mast@lysator.liu.se>
dce09c9243aa937ac9c6a0ae8fcb1e6ee46ca1f7 (
13
lines) (+
12
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Made Sql.NULL useful with the new Standards.JSON.encode.
Rev: src/builtin.cmod:1.257
2:
|| This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: builtin.cmod,v 1.
256
2010/
03
/
23
12
:
24
:
01
grubba
Exp $
+
|| $Id: builtin.cmod,v 1.
257
2010/
05
/
28
18
:
13
:
46
mast
Exp $
*/ #include "global.h"
3568:
push_constant_text("is_sql_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()
+
{
+
push_constant_text ("null");
}
-
+
}
/*! @endclass */