pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:2429:
#endif /* PIKE_DEBUG && PIKE_PORTABLE_BYTECODE */ /* * Backtrace handling. */ /*! @module Pike */
+
/*! @class DestructImmediate
+
*!
+
*! An empty class that can be inherited to get the
+
*! @tt{PROGRAM_DESTRUCT_IMMEDIATE@} flag set.
+
*/
+
+
PIKECLASS DestructImmediate
+
program_flags PROGRAM_DESTRUCT_IMMEDIATE;
+
{
+
}
+
+
/*! @endclass
+
*/
+
/*! @class FakeObject *! *! Used as a place holder in eg backtraces for objects that *! are unsuitable to have references to in backtraces. *! *! Examples of such objects are instances of @[Thread.MutexKey], *! and @[Nettle.Cipher.State]. *! *! @seealso *! @[backtrace()]
pike.git/src/builtin.cmod:4577:
PIKEFUN string encode_json(...) { pop_n_elems(args); push_constant_text ("null"); } } /*! @endclass */
-
/*! @class DestructImmediate
-
*! An empty class that can be intherited to get the PROGRAM_DESTRUCT_IMMEDIATE
-
*! flag set.
-
*/
-
-
PIKECLASS DestructImmediate
-
program_flags PROGRAM_DESTRUCT_IMMEDIATE;
-
{
-
}
-
-
/*! @endclass
-
*/
-
+
PMOD_EXPORT PIKEFUN int levenshtein_distance(string a, string b) { int i, j, n, *lev_i, *lev_p; /* Simple cases: strings are equal or one of them is empty: */ if (a == b) RETURN 0; if (a->len == 0) RETURN b->len; if (b->len == 0) RETURN a->len;