pinosaur
/
surf.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
11fa5a7
)
Use char instead of gchar and make them const when possible
author
Quentin Rameau
<quinq@fifth.space>
Sun, 22 Nov 2015 00:52:13 +0000
(
01:52
+0100)
committer
Quentin Rameau
<quinq@fifth.space>
Sun, 22 Nov 2015 00:52:13 +0000
(
01:52
+0100)
surf.c
patch
|
blob
|
history
diff --git
a/surf.c
b/surf.c
index
edfc3c3
..
23fd452
100644
(file)
--- a/
surf.c
+++ b/
surf.c
@@
-108,7
+108,7
@@
static char *buildpath(const char *path);
static Client *newclient(Client *c);
static void addaccelgroup(Client *c);
static void loaduri(Client *c, const Arg *a);
static Client *newclient(Client *c);
static void addaccelgroup(Client *c);
static void loaduri(Client *c, const Arg *a);
-static char *geturi(Client *c);
+static c
onst c
har *geturi(Client *c);
static void setatom(Client *c, int a, const char *v);
static const char *getatom(Client *c, int a);
static void updatetitle(Client *c);
static void setatom(Client *c, int a, const char *v);
static const char *getatom(Client *c, int a);
static void updatetitle(Client *c);
@@
-116,12
+116,12
@@
static void gettogglestats(Client *c);
static void getpagestats(Client *c);
static WebKitCookieAcceptPolicy cookiepolicy_get(void);
static char cookiepolicy_set(const WebKitCookieAcceptPolicy p);
static void getpagestats(Client *c);
static WebKitCookieAcceptPolicy cookiepolicy_get(void);
static char cookiepolicy_set(const WebKitCookieAcceptPolicy p);
-static const
g
char *getstyle(const char *uri);
+static const char *getstyle(const char *uri);
static void setstyle(Client *c, const char *stylefile);
static void runscript(Client *c);
static void evalscript(Client *c, const char *jsstr, ...);
static void updatewinid(Client *c);
static void setstyle(Client *c, const char *stylefile);
static void runscript(Client *c);
static void evalscript(Client *c, const char *jsstr, ...);
static void updatewinid(Client *c);
-static void handleplumb(Client *c, const
g
char *uri);
+static void handleplumb(Client *c, const char *uri);
static void newwindow(Client *c, const Arg *a, gboolean noembed);
static void spawn(Client *c, const Arg *a);
static void destroyclient(Client *c);
static void newwindow(Client *c, const Arg *a, gboolean noembed);
static void spawn(Client *c, const Arg *a);
static void destroyclient(Client *c);
@@
-392,7
+392,7
@@
loaduri(Client *c, const Arg *a)
g_free(url);
}
g_free(url);
}
-char *
+c
onst c
har *
geturi(Client *c)
{
char *uri;
geturi(Client *c)
{
char *uri;
@@
-513,7
+513,7
@@
cookiepolicy_set(const WebKitCookieAcceptPolicy p)
return 'A';
}
return 'A';
}
-const
g
char *
+const char *
getstyle(const char *uri)
{
int i;
getstyle(const char *uri)
{
int i;
@@
-582,7
+582,7
@@
updatewinid(Client *c)
}
void
}
void
-handleplumb(Client *c, const
g
char *uri)
+handleplumb(Client *c, const char *uri)
{
Arg a = (Arg)PLUMB(uri);
spawn(c, &a);
{
Arg a = (Arg)PLUMB(uri);
spawn(c, &a);