Roxen.git/
server/
base_server/
prototypes.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2005-12-07
2005-12-07 14:54:56 by Henrik Grubbström (Grubba) <grubba@grubba.org>
3583aaeb2492c60e7e75b195dd05cecbea5c8eb5 (
9
lines) (+
8
/-
1
)
[
Show
|
Annotate
]
Branch:
5.2
Added _sprintf() for CookieJar.
Rev: server/base_server/prototypes.pike:1.157
6:
#include <module.h> #include <variables.h> #include <module_constants.h>
-
constant cvs_version="$Id: prototypes.pike,v 1.
156
2005/12/07 14:
48
:
20
grubba Exp $";
+
constant cvs_version="$Id: prototypes.pike,v 1.
157
2005/12/07 14:
54
:
56
grubba Exp $";
#ifdef DAV_DEBUG #define DAV_WERROR(X...) werror(X)
1030:
register_vary_callback("Cookie"); return sizeof(jar); }
+
static string _sprintf(int fmt)
+
{
+
if (fmt == 'O') return sprintf("CookieJar(%O)", jar);
+
// Probably not reached, but...
+
return sprintf(sprintf("%%%c", fmt), jar);
}
-
+
}
//mapping (string:string) cookies; CookieJar cookies;