run/usage/xinit are now all internal to x.c
Signed-off-by: Devin J. Pohly <[email protected]>
#include <X11/cursorfont.h>
#include <X11/Xft/Xft.h>
#include <X11/cursorfont.h>
#include <X11/Xft/Xft.h>
#define Glyph Glyph_
#define Font Font_
#define Glyph Glyph_
#define Font Font_
tresize(col, row);
xresize(col, row);
}
tresize(col, row);
xresize(col, row);
}
-
-void
-usage(void)
-{
- die("usage: %s [-aiv] [-c class] [-f font] [-g geometry]"
- " [-n name] [-o file]\n"
- " [-T title] [-t title] [-w windowid]"
- " [[-e] command [args ...]]\n"
- " %s [-aiv] [-c class] [-f font] [-g geometry]"
- " [-n name] [-o file]\n"
- " [-T title] [-t title] [-w windowid] -l line"
- " [stty_args ...]\n", argv0, argv0);
-}
void *xmalloc(size_t);
char *xstrdup(char *);
void *xmalloc(size_t);
char *xstrdup(char *);
/* Globals */
extern TermWindow win;
extern Term term;
/* Globals */
extern TermWindow win;
extern Term term;
void draw(void);
void drawregion(int, int, int, int);
void draw(void);
void drawregion(int, int, int, int);
void xbell(int);
void xclipcopy(void);
void xclippaste(void);
void xhints(void);
void xbell(int);
void xclipcopy(void);
void xclippaste(void);
void xhints(void);
void xloadcols(void);
int xsetcolorname(int, const char *);
void xloadfonts(char *, double);
void xloadcols(void);
int xsetcolorname(int, const char *);
void xloadfonts(char *, double);
#include <X11/Xft/Xft.h>
#include <X11/XKBlib.h>
#include <X11/Xft/Xft.h>
#include <X11/XKBlib.h>
#include "arg.h"
#define Glyph Glyph_
#include "arg.h"
#define Glyph Glyph_
static void xclear(int, int, int, int);
static void xdrawcursor(void);
static int xgeommasktogravity(int);
static void xclear(int, int, int, int);
static void xdrawcursor(void);
static int xgeommasktogravity(int);
+static void xinit(void);
static int xloadfont(Font *, FcPattern *);
static void xunloadfont(Font *);
static void xsetenv(void);
static int xloadfont(Font *, FcPattern *);
static void xunloadfont(Font *);
static void xsetenv(void);
static void getbuttoninfo(XEvent *);
static void mousereport(XEvent *);
static void getbuttoninfo(XEvent *);
static void mousereport(XEvent *);
+static void run(void);
+static void usage(void);
+
static void (*handler[LASTEvent])(XEvent *) = {
[KeyPress] = kpress,
[ClientMessage] = cmessage,
static void (*handler[LASTEvent])(XEvent *) = {
[KeyPress] = kpress,
[ClientMessage] = cmessage,
+void
+usage(void)
+{
+ die("usage: %s [-aiv] [-c class] [-f font] [-g geometry]"
+ " [-n name] [-o file]\n"
+ " [-T title] [-t title] [-w windowid]"
+ " [[-e] command [args ...]]\n"
+ " %s [-aiv] [-c class] [-f font] [-g geometry]"
+ " [-n name] [-o file]\n"
+ " [-T title] [-t title] [-w windowid] -l line"
+ " [stty_args ...]\n", argv0, argv0);
+}
+
int
main(int argc, char *argv[])
{
int
main(int argc, char *argv[])
{