sed source files to end with 1 new line

pull/158/head
pepper-jelly 3 years ago
parent c968fd9aae
commit 0733c39e0c

@ -1607,3 +1607,4 @@ static IPCCommand ipccommands[] = {
#endif // XRDB_PATCH
};
#endif // IPC_PATCH

@ -687,3 +687,4 @@ drw_cur_free(Drw *drw, Cur *cursor)
XFreeCursor(drw->dpy, cursor->cursor);
free(cursor);
}

@ -100,3 +100,4 @@ void drw_arrow(Drw *drw, int x, int y, unsigned int w, unsigned int h, int direc
/* Map functions */
void drw_map(Drw *drw, Window win, int x, int y, unsigned int w, unsigned int h);

@ -4892,3 +4892,4 @@ main(int argc, char *argv[])
XCloseDisplay(dpy);
return EXIT_SUCCESS;
}

@ -21,4 +21,5 @@ aspectresize(const Arg *arg)
XRaiseWindow(dpy, c->win);
resize(c, c->x, c->y, nw, nh, True);
}
}

@ -1 +1,2 @@
static void aspectresize(const Arg *arg);
static void aspectresize(const Arg *arg);

@ -40,3 +40,4 @@ attachx(Client *c)
#endif
attach(c); // master (default)
}

@ -1 +1,2 @@
static void attachx(Client *c);
static void attachx(Client *c);

@ -80,4 +80,5 @@ runautostart(void)
free(pathpfx);
free(path);
}
}
}

@ -1 +1,2 @@
static void runautostart(void);
static void runautostart(void);

@ -40,3 +40,4 @@ xinitvisual()
cmap = DefaultColormap(dpy, screen);
}
}

@ -1,3 +1,4 @@
#define OPAQUE 0xffU
static void xinitvisual();

@ -3,4 +3,5 @@ togglealttag()
{
selmon->alttag = !selmon->alttag;
drawbar(selmon);
}
}

@ -1 +1,2 @@
static void togglealttag();
static void togglealttag();

@ -90,4 +90,5 @@ wmclasscontains(Window win, const char *class, const char *name)
XFree(ch.res_name);
return res;
}
}

@ -1,4 +1,5 @@
static void managealtbar(Window win, XWindowAttributes *wa);
static void spawnbar();
static void unmanagealtbar(Window w);
static int wmclasscontains(Window win, const char *class, const char *name);
static int wmclasscontains(Window win, const char *class, const char *name);

@ -79,3 +79,4 @@ click_awesomebar(Bar *bar, Arg *arg, BarArg *a)
}
return -1;
}

@ -1,3 +1,4 @@
static int width_awesomebar(Bar *bar, BarArg *a);
static int draw_awesomebar(Bar *bar, BarArg *a);
static int click_awesomebar(Bar *bar, Arg *arg, BarArg *a);
static int click_awesomebar(Bar *bar, Arg *arg, BarArg *a);

@ -47,4 +47,5 @@ sigstatusbar(const Arg *arg)
sv.sival_int = arg->i;
sigqueue(statuspid, SIGRTMIN+statussig, sv);
#endif // BAR_DWMBLOCKS_SIGUSR1_PATCH
}
}

@ -1,2 +1,3 @@
static int getstatusbarpid();
static void sigstatusbar(const Arg *arg);
static void sigstatusbar(const Arg *arg);

@ -49,4 +49,5 @@ updatecurrentdesktop(void)
}
long data[] = { i };
XChangeProperty(dpy, root, netatom[NetCurrentDesktop], XA_CARDINAL, 32, PropModeReplace, (unsigned char *)data, 1);
}
}

@ -3,4 +3,5 @@ static void setdesktopnames(void);
static void setfloatinghint(Client *c);
static void setnumdesktops(void);
static void setviewport(void);
static void updatecurrentdesktop(void);
static void updatecurrentdesktop(void);

@ -67,4 +67,3 @@ click_fancybar(Bar *bar, Arg *arg, BarArg *a)
return ClkWinTitle;
}

@ -1,3 +1,4 @@
static int width_fancybar(Bar *bar, BarArg *a);
static int draw_fancybar(Bar *bar, BarArg *a);
static int click_fancybar(Bar *bar, Arg *arg, BarArg *a);
static int click_fancybar(Bar *bar, Arg *arg, BarArg *a);

@ -435,4 +435,5 @@ flextitlecalculate(
c = flextitledrawarea(m, m->clients, flt_x, rr, w * FLEXWINTITLE_FLOATWEIGHT + rw, clientsnfloating, SCHEMEFOR(GRP_FLOAT), 0, 0, 1, passx, tabfn, arg, barg); // floating
}
return 1;
}
}

@ -7,4 +7,5 @@ static void flextitleclick(Monitor *m, Client *c, int passx, int x, int w, int u
static int flextitlecalculate(Monitor *m, int offx, int w, int passx, void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg), Arg *arg, BarArg *barg);
static int getschemefor(Monitor *m, int group, int activegroup);
static int getselschemefor(int scheme);
static Client *flextitledrawarea(Monitor *m, Client *c, int x, int r, int w, int max_clients, int tabscheme, int draw_tiled, int draw_hidden, int draw_floating, int passx, void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg), Arg *arg, BarArg *barg);
static Client *flextitledrawarea(Monitor *m, Client *c, int x, int r, int w, int max_clients, int tabscheme, int draw_tiled, int draw_hidden, int draw_floating, int passx, void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg), Arg *arg, BarArg *barg);

@ -34,4 +34,5 @@ keyrelease(XEvent *e)
#if COMBO_PATCH
combo = 0;
#endif // COMBO_PATCH
}
}

@ -1,2 +1,3 @@
static void keyrelease(XEvent *e);
static void holdbar(const Arg *arg);
static void holdbar(const Arg *arg);

@ -107,4 +107,5 @@ drawstateindicator(Monitor *m, Client *c, unsigned int occ, int x, int y, int w,
drawindicator(m, c, occ, x, y, w, h, tag, filled, invert, floatindicatortype);
else
drawindicator(m, c, occ, x, y, w, h, tag, filled, invert, tiledindicatortype);
}
}

@ -17,4 +17,5 @@ enum {
};
static void drawindicator(Monitor *m, Client *c, unsigned int occ, int x, int y, int w, int h, unsigned int tag, int filled, int invert, int type);
static void drawstateindicator(Monitor *m, Client *c, unsigned int occ, int x, int y, int w, int h, unsigned int tag, int filled, int invert);
static void drawstateindicator(Monitor *m, Client *c, unsigned int occ, int x, int y, int w, int h, unsigned int tag, int filled, int invert);

@ -1 +1,2 @@
static void layoutmenu(const Arg *arg);

@ -14,4 +14,5 @@ int
click_ltsymbol(Bar *bar, Arg *arg, BarArg *a)
{
return ClkLtSymbol;
}
}

@ -1,3 +1,4 @@
static int width_ltsymbol(Bar *bar, BarArg *a);
static int draw_ltsymbol(Bar *bar, BarArg *a);
static int click_ltsymbol(Bar *bar, Arg *arg, BarArg *a);

@ -118,4 +118,5 @@ drawpowerlinestatus(int xpos, char *stext, BarArg *barg)
}
return xpos - x;
}
}

@ -8,4 +8,5 @@ static int draw_pwrl_status_es(Bar *bar, BarArg *a);
#endif // BAR_EXTRASTATUS_PATCH
static int click_pwrl_status(Bar *bar, Arg *arg, BarArg *a);
static int drawpowerlinestatus(int x, char *stext, BarArg *a);
static int widthpowerlinestatus(char *stext);
static int widthpowerlinestatus(char *stext);

@ -104,3 +104,4 @@ click_pwrl_tags(Bar *bar, Arg *arg, BarArg *a)
}
return ClkTagBar;
}

@ -1,3 +1,4 @@
static int width_pwrl_tags(Bar *bar, BarArg *a);
static int draw_pwrl_tags(Bar *bar, BarArg *a);
static int click_pwrl_tags(Bar *bar, Arg *arg, BarArg *a);
static int click_pwrl_tags(Bar *bar, Arg *arg, BarArg *a);

@ -31,3 +31,4 @@ click_status(Bar *bar, Arg *arg, BarArg *a)
{
return ClkStatusText;
}

@ -6,4 +6,5 @@ static int draw_status(Bar *bar, BarArg *a);
#if BAR_EXTRASTATUS_PATCH
static int draw_status_es(Bar *bar, BarArg *a);
#endif // BAR_EXTRASTATUS_PATCH
static int click_status(Bar *bar, Arg *arg, BarArg *a);
static int click_status(Bar *bar, Arg *arg, BarArg *a);

@ -264,4 +264,5 @@ status2dtextlength(char* stext)
w += TEXTWM(text) - lrpad;
free(p);
return w;
}
}

@ -10,4 +10,5 @@ static int draw_status2d_es(Bar *bar, BarArg *a);
static int click_status2d(Bar *bar, Arg *arg, BarArg *a);
#endif // BAR_STATUSCMD_PATCH
static int drawstatusbar(BarArg *a, char *text);
static int status2dtextlength(char *stext);
static int status2dtextlength(char *stext);

@ -15,3 +15,4 @@ click_stbutton(Bar *bar, Arg *arg, BarArg *a)
{
return ClkButton;
}

@ -1,3 +1,4 @@
static int width_stbutton(Bar *bar, BarArg *a);
static int draw_stbutton(Bar *bar, BarArg *a);
static int click_stbutton(Bar *bar, Arg *arg, BarArg *a);
static int click_stbutton(Bar *bar, Arg *arg, BarArg *a);

@ -72,3 +72,4 @@ copyvalidchars(char *text, char *rawtext)
}
text[j] = '\0';
}

@ -8,4 +8,5 @@ static void copyvalidchars(char *text, char *rawtext);
typedef struct {
const char *cmd;
int id;
} StatusCmd;
} StatusCmd;

@ -20,4 +20,5 @@ textw_wosc(char *s)
}
return sw;
}
}

@ -194,4 +194,5 @@ wintosystrayicon(Window w)
return i;
for (i = systray->icons; i && i->win != w; i = i->next);
return i;
}
}

@ -39,3 +39,4 @@ static void updatesystrayicongeom(Client *i, int w, int h);
static void updatesystrayiconstate(Client *i, XPropertyEvent *ev);
static Client *wintosystrayicon(Window w);

@ -220,4 +220,5 @@ bartabcalculate(
#endif // BARTAB_FLOATWEIGHT
}
return 1;
}
}

@ -4,4 +4,5 @@ static int click_bartabgroups(Bar *bar, Arg *arg, BarArg *a);
static void bartabdraw(Monitor *m, Client *c, int unused, int x, int w, int groupactive, Arg *arg, BarArg *barg);
static void bartabclick(Monitor *m, Client *c, int passx, int x, int w, int unused, Arg *arg, BarArg *barg);
static int bartabcalculate(Monitor *m, int offx, int w, int passx, void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg), Arg *arg, BarArg *barg);
static int bartabcalculate(Monitor *m, int offx, int w, int passx, void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg), Arg *arg, BarArg *barg);

@ -146,4 +146,5 @@ switchtag(const Arg *arg)
if (arg->ui & SWITCHTAG_TOGGLEVIEW) {
toggleview (&new_arg);
}
}
}

@ -1,4 +1,5 @@
static int width_taggrid(Bar *bar, BarArg *a);
static int draw_taggrid(Bar *bar, BarArg *a);
static int click_taggrid(Bar *bar, Arg *arg, BarArg *a);
static void switchtag(const Arg *arg);
static void switchtag(const Arg *arg);

@ -17,4 +17,5 @@ tagicon(Monitor *m, int tag)
return tagicons[ALTERNATIVE_TAGS][tagindex];
#endif // BAR_ALTERNATIVE_TAGS_PATCH
return tagicons[DEFAULT_TAGS][tagindex];
}
}

@ -4,4 +4,5 @@ enum {
ALT_TAGS_DECORATION,
};
static char * tagicon(Monitor *m, int tag);
static char * tagicon(Monitor *m, int tag);

@ -86,3 +86,4 @@ click_tags(Bar *bar, Arg *arg, BarArg *a)
}
return ClkTagBar;
}

@ -1,3 +1,4 @@
static int width_tags(Bar *bar, BarArg *a);
static int draw_tags(Bar *bar, BarArg *a);
static int click_tags(Bar *bar, Arg *arg, BarArg *a);
static int click_tags(Bar *bar, Arg *arg, BarArg *a);

@ -65,4 +65,5 @@ int get_luminance(char *r)
}
return (0.299 * n[0] + 0.587 * n[1] + 0.114 * n[2]) / 2.55;
}
}

@ -1,2 +1,3 @@
static void get_vt_colors(void);
static int get_luminance(char *rgb);
static int get_luminance(char *rgb);

@ -48,4 +48,3 @@ click_wintitle(Bar *bar, Arg *arg, BarArg *a)
return ClkWinTitle;
}

@ -1,3 +1,4 @@
static int width_wintitle(Bar *bar, BarArg *a);
static int draw_wintitle(Bar *bar, BarArg *a);
static int click_wintitle(Bar *bar, Arg *arg, BarArg *a);
static int click_wintitle(Bar *bar, Arg *arg, BarArg *a);

@ -42,4 +42,5 @@ calc_wintitle_floating(
r = tabw % clientsnfloating;
c = flextitledrawarea(m, m->clients, offx, r, w, clientsnfloating, SCHEMEFOR(GRP_FLOAT), 0, 0, 1, passx, tabfn, arg, barg);
return 1;
}
}

@ -5,4 +5,5 @@ static int calc_wintitle_floating(
Monitor *m, int offx, int tabw, int passx,
void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg),
Arg *arg, BarArg *barg
);
);

@ -42,4 +42,5 @@ calc_wintitle_hidden(
r = tabw % clientsnhidden;
c = flextitledrawarea(m, m->clients, offx, r, w, clientsnhidden, SCHEMEFOR(GRP_HIDDEN), 0, 1, 0, passx, tabfn, arg, barg);
return 1;
}
}

@ -5,4 +5,5 @@ static int calc_wintitle_hidden(
Monitor *m, int offx, int tabw, int passx,
void(*tabfn)(Monitor *, Client *, int, int, int, int, Arg *arg, BarArg *barg),
Arg *arg, BarArg *barg
);
);

@ -90,4 +90,5 @@ showhideclient(const Arg *arg)
} else {
hide(c);
}
}
}

@ -2,4 +2,5 @@ static void hide(Client *c);
static void show(Client *c);
static void togglewin(const Arg *arg);
static Client * prevtiled(Client *c);
static void showhideclient(const Arg *arg);
static void showhideclient(const Arg *arg);

@ -20,4 +20,5 @@ setcfact(const Arg *arg)
f = 4.0;
c->cfact = f;
arrange(selmon);
}
}

@ -1 +1,2 @@
static void setcfact(const Arg *arg);
static void setcfact(const Arg *arg);

@ -2,4 +2,5 @@ char*
help(void)
{
return "usage: dwm [-hv] [-fn font] [-nb color] [-nf color] [-sb color] [-sf color]\n[-df font] [-dnf color] [-dnb color] [-dsf color] [-dsb color]\n";
}
}

@ -1 +1,2 @@
static char* help();
static char* help();

@ -46,4 +46,5 @@ comboview(const Arg *arg)
}
focus(NULL);
arrange(selmon);
}
}

@ -2,4 +2,5 @@
static void keyrelease(XEvent *e);
#endif // !BAR_HOLDBAR_PATCH
static void combotag(const Arg *arg);
static void comboview(const Arg *arg);
static void comboview(const Arg *arg);

@ -25,4 +25,5 @@ autostart_exec()
/* skip arguments */
while (*++p);
}
}
}

@ -1 +1,2 @@
static void autostart_exec(void);
static void autostart_exec(void);

@ -15,3 +15,4 @@ cyclelayout(const Arg *arg)
setlayout(&((Arg) { .v = &layouts[LENGTH(layouts) - 2] }));
}
}

@ -1 +1,2 @@
static void cyclelayout(const Arg *arg);
static void cyclelayout(const Arg *arg);

@ -35,4 +35,5 @@ updatemotifhints(Client *c)
}
XFree(p);
}
}
}

@ -5,4 +5,5 @@
#define MWM_DECOR_BORDER (1 << 1)
#define MWM_DECOR_TITLE (1 << 3)
static void updatemotifhints(Client *c);
static void updatemotifhints(Client *c);

@ -13,4 +13,5 @@ distributetags(const Arg *arg)
}
focus(NULL);
arrange(selmon);
}
}

@ -1 +1,2 @@
static void distributetags(const Arg *arg);
static void distributetags(const Arg *arg);

@ -79,4 +79,5 @@ dragcfact(const Arg *arg)
XUngrabPointer(dpy, CurrentTime);
while (XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}
}

@ -1 +1,2 @@
static void dragcfact(const Arg *arg);
static void dragcfact(const Arg *arg);

@ -228,4 +228,5 @@ dragmfact(const Arg *arg)
XUngrabPointer(dpy, CurrentTime);
while (XCheckMaskEvent(dpy, EnterWindowMask, &ev));
}
}

@ -1 +1,2 @@
static void dragmfact(const Arg *arg);
static void dragmfact(const Arg *arg);

@ -127,3 +127,4 @@ case $# in
exit 1
;;
esac

@ -98,3 +98,4 @@ fake_signal(void)
// No fake signal was sent, so proceed with update
return 0;
}

@ -11,3 +11,4 @@ static void tagex(const Arg *arg);
static void toggletagex(const Arg *arg);
static void tagallex(const Arg *arg);
static int fake_signal(void);

@ -193,3 +193,4 @@ togglehorizontalexpand(const Arg *arg)
else if (arg->i > 0) expand(EXPAND_RIGHT);
else expand(EXPAND_LEFT | EXPAND_RIGHT);
}

@ -5,4 +5,5 @@ void togglemaximize(const Arg *arg);
void toggleverticalexpand(const Arg *arg);
void togglehorizontalexpand(const Arg *arg);
void exresize(const Arg *arg);
void explace(const Arg *arg);
void explace(const Arg *arg);

@ -16,3 +16,4 @@ togglefakefullscreen(const Arg *arg)
setfullscreen(c, 1);
}
}

@ -1 +1,2 @@
static void togglefakefullscreen(const Arg *arg);
static void togglefakefullscreen(const Arg *arg);

@ -192,3 +192,4 @@ getfloatpos(int pos, char pCh, int size, char sCh, int min_p, int max_s, int cp,
*out_p = cp;
*out_s = MAX(cs - 2*cbw, 1);
}

@ -1,3 +1,4 @@
static void floatpos(const Arg *arg);
static void setfloatpos(Client *c, const char *floatpos);
static void getfloatpos(int pos, char pCh, int size, char sCh, int min_p, int max_s, int cp, int cs, int cbw, int defgrid, int *out_p, int *out_s);
static void getfloatpos(int pos, char pCh, int size, char sCh, int min_p, int max_s, int cp, int cs, int cbw, int defgrid, int *out_p, int *out_s);

@ -98,4 +98,5 @@ tagandviewtoright(const Arg *arg)
updatecurrentdesktop();
#endif // BAR_EWMHTAGS_PATCH
}
}
}

@ -3,4 +3,5 @@ static void tagtoright(const Arg *arg);
static void viewtoleft(const Arg *arg);
static void viewtoright(const Arg *arg);
static void tagandviewtoleft(const Arg *arg);
static void tagandviewtoright(const Arg *arg);
static void tagandviewtoright(const Arg *arg);

@ -62,4 +62,5 @@ focusdir(const Arg *arg)
focus(f);
restack(f->mon);
}
}
}

@ -1 +1,2 @@
static void focusdir(const Arg *arg);
static void focusdir(const Arg *arg);

@ -10,4 +10,5 @@ focusmaster(const Arg *arg)
if (c)
focus(c);
}
}

@ -1 +1,2 @@
static void focusmaster(const Arg *arg);
static void focusmaster(const Arg *arg);

@ -12,4 +12,5 @@ focusurgent(const Arg *arg)
focus(c);
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save