diff options
Diffstat (limited to 'doc/classes/JSON/Ext/Generator/State.src/M000131.html')
-rw-r--r-- | doc/classes/JSON/Ext/Generator/State.src/M000131.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/doc/classes/JSON/Ext/Generator/State.src/M000131.html b/doc/classes/JSON/Ext/Generator/State.src/M000131.html new file mode 100644 index 0000000..dd10024 --- /dev/null +++ b/doc/classes/JSON/Ext/Generator/State.src/M000131.html @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<html> +<head> + <title>array_nl= (JSON::Ext::Generator::State)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre>/* + * call-seq: array_nl=(array_nl) + * + * This string is put at the end of a line that holds a JSON array. + */ +static VALUE cState_array_nl_set(VALUE self, VALUE array_nl) +{ + GET_STATE(self); + Check_Type(array_nl, T_STRING); + if (RSTRING_LEN(array_nl) == 0) { + if (state->array_nl) { + ruby_xfree(state->array_nl); + state->array_nl = NULL; + } + } else { + if (state->array_nl) ruby_xfree(state->array_nl); + state->array_nl = strdup(RSTRING_PTR(array_nl)); + } + return Qnil; +}</pre> +</body> +</html>
\ No newline at end of file |