Remove verbose definitions
This commit is contained in:
parent
3792239657
commit
3da9e1bdeb
6
ab.c
6
ab.c
|
@ -67,7 +67,7 @@ static gboolean keepcb(WebKitWebPage *kp)
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool apimode = false;
|
static bool apimode;
|
||||||
static void pageinit(WebKitWebExtension *ex, WebKitWebPage *kp)
|
static void pageinit(WebKitWebExtension *ex, WebKitWebPage *kp)
|
||||||
{
|
{
|
||||||
DD(pageinit)
|
DD(pageinit)
|
||||||
|
@ -118,8 +118,8 @@ G_MODULE_EXPORT void webkit_web_extension_initialize_with_user_data(
|
||||||
|
|
||||||
#include "ephy-uri-tester.c"
|
#include "ephy-uri-tester.c"
|
||||||
|
|
||||||
static EphyUriTester *tester = NULL;
|
static EphyUriTester *tester;
|
||||||
static GThread *initt = NULL;
|
static GThread *initt;
|
||||||
|
|
||||||
static gpointer inittcb(gpointer p)
|
static gpointer inittcb(gpointer p)
|
||||||
{
|
{
|
||||||
|
|
22
wyebrun.c
22
wyebrun.c
|
@ -140,10 +140,10 @@ static GSource *ipcwatch(char *exe, char *name, GMainContext *ctx, gpointer p)
|
||||||
|
|
||||||
|
|
||||||
//@server
|
//@server
|
||||||
static char *svrexe = NULL;
|
static char *svrexe;
|
||||||
static GMainLoop *sloop = NULL;
|
static GMainLoop *sloop;
|
||||||
static wyebdataf dataf = NULL;
|
static wyebdataf dataf;
|
||||||
static GHashTable *orders = NULL;
|
static GHashTable *orders;
|
||||||
static GMutex ordersm;
|
static GMutex ordersm;
|
||||||
|
|
||||||
static gboolean quitif(gpointer p)
|
static gboolean quitif(gpointer p)
|
||||||
|
@ -161,7 +161,7 @@ static void until(int sec)
|
||||||
{
|
{
|
||||||
if (!sloop) return;
|
if (!sloop) return;
|
||||||
|
|
||||||
static guint last = 0;
|
static guint last;
|
||||||
static GMutex m;
|
static GMutex m;
|
||||||
g_mutex_lock(&m);
|
g_mutex_lock(&m);
|
||||||
if (last)
|
if (last)
|
||||||
|
@ -273,7 +273,7 @@ typedef struct {
|
||||||
char *exe; //do not free. this is tmp
|
char *exe; //do not free. this is tmp
|
||||||
} Client;
|
} Client;
|
||||||
|
|
||||||
static GSList *rmpath = NULL;
|
static GSList *rmpath;
|
||||||
static GMutex rmm;
|
static GMutex rmm;
|
||||||
static void __attribute__((destructor)) removepp()
|
static void __attribute__((destructor)) removepp()
|
||||||
{
|
{
|
||||||
|
@ -284,7 +284,7 @@ static Client *makecl()
|
||||||
{
|
{
|
||||||
Client *c = g_new0(Client, 1);
|
Client *c = g_new0(Client, 1);
|
||||||
// g_mutex_init(&c->retm);
|
// g_mutex_init(&c->retm);
|
||||||
static int tid = 0;
|
static int tid;
|
||||||
c->pid = g_strdup_printf("%d-%u", tid++, getpid());
|
c->pid = g_strdup_printf("%d-%u", tid++, getpid());
|
||||||
|
|
||||||
c->wctx = g_main_context_new();
|
c->wctx = g_main_context_new();
|
||||||
|
@ -332,7 +332,7 @@ static Client *getcl()
|
||||||
return c;
|
return c;
|
||||||
}
|
}
|
||||||
|
|
||||||
static GHashTable *lastsec = NULL;
|
static GHashTable *lastsec;
|
||||||
static GMutex lastm;
|
static GMutex lastm;
|
||||||
static void setsec(char *exe, int sec)
|
static void setsec(char *exe, int sec)
|
||||||
{
|
{
|
||||||
|
@ -581,7 +581,7 @@ gboolean ipccb(GIOChannel *ch, GIOCondition cnd, gpointer p)
|
||||||
g_strchomp(data);
|
g_strchomp(data);
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
static int i = 0;
|
static int i;
|
||||||
D(%c ipccb%d %c/%s/%lu;, svrexe ? 'S':'C', i++, type ,id, strlen(data))
|
D(%c ipccb%d %c/%s/%lu;, svrexe ? 'S':'C', i++, type ,id, strlen(data))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -593,7 +593,7 @@ gboolean ipccb(GIOChannel *ch, GIOCondition cnd, gpointer p)
|
||||||
args->caller = g_strdup(id);
|
args->caller = g_strdup(id);
|
||||||
args->data = g_strcompress(data);
|
args->data = g_strcompress(data);
|
||||||
|
|
||||||
static GThreadPool *pool = NULL;
|
static GThreadPool *pool;
|
||||||
if (!pool) pool = g_thread_pool_new(getdata, NULL, -1, false, NULL);
|
if (!pool) pool = g_thread_pool_new(getdata, NULL, -1, false, NULL);
|
||||||
g_thread_pool_push(pool, args, NULL);
|
g_thread_pool_push(pool, args, NULL);
|
||||||
break;
|
break;
|
||||||
|
@ -637,7 +637,7 @@ static char *testdata(char *data)
|
||||||
//sleep(9);
|
//sleep(9);
|
||||||
//g_free(data); //makes crash
|
//g_free(data); //makes crash
|
||||||
|
|
||||||
static int i = 0;
|
static int i;
|
||||||
return g_strdup_printf("%d th test data. req is %s", ++i, data);
|
return g_strdup_printf("%d th test data. req is %s", ++i, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user