pike.git
/
src
/
builtin.cmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/builtin.cmod:2925:
#endif /* !USE_SETENV */ } /* * 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 InhibitDestruct *! *! This is a class that implements a way to temporarily *! inhibit destruction by explicit calls of @[destruct()]. *! *! This is mostly useful as a mix-in for modules *! implemented in C or similar. *! *! All symbols in the class are either @expr{protected@} *! or @expr{private@} in order to affect users minimally.
pike.git/src/builtin.cmod:5218:
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;