#include <unistd.h>
#include <stdio.h>
-uns fbdir_cheat;
-
-static struct cf_section fbdir_cf = {
- CF_ITEMS {
- CF_UNS("Cheat", &fbdir_cheat),
- CF_END
- }
-};
-
#define FBDIR_ALIGN 512
enum fbdir_mode { // Current operating mode
};
#define FB_DIRECT(f) ((struct fb_direct *)(f)->is_fastbuf)
+#ifndef TEST
+uns fbdir_cheat;
+
+static struct cf_section fbdir_cf = {
+ CF_ITEMS {
+ CF_UNS("Cheat", &fbdir_cheat),
+ CF_END
+ }
+};
+
static void CONSTRUCTOR
fbdir_global_init(void)
{
cf_declare_section("FBDirect", &fbdir_cf, 0);
}
+#endif
static void
fbdir_read_sync(struct fb_direct *F)
static uns mmap_window_size = 16*CPU_PAGE_SIZE;
static uns mmap_extend_size = 4*CPU_PAGE_SIZE;
+#ifndef TEST
static struct cf_section fbmm_config = {
CF_ITEMS {
CF_UNS("WindowSize", &mmap_window_size),
{
cf_declare_section("FBMMap", &fbmm_config, 0);
}
+#endif
struct fb_mmap {
struct fastbuf fb;
static uns url_max_repeat_length = 0;
static uns url_max_occurences = ~0U;
+#ifndef TEST
static struct cf_section url_config = {
CF_ITEMS {
CF_UNS("IgnoreSpaces", &url_ignore_spaces),
{
cf_declare_section("URL", &url_config, 0);
}
+#endif
/* Escaping and de-escaping */