[hackers] [libdraw] simplifications || Connor Lane Smith

From: <hg_AT_suckless.org>
Date: Wed, 18 Aug 2010 16:32:55 +0000 (UTC)

changeset: 17:f9c295f1b669
tag: tip
user: Connor Lane Smith <cls_AT_lubutu.com>
date: Wed Aug 18 17:32:51 2010 +0100
files: draw.h eprintf.c weprintf.c
description:
simplifications

diff -r 1a440caf66f6 -r f9c295f1b669 draw.h
--- a/draw.h Wed Aug 11 15:35:29 2010 +0100
+++ b/draw.h Wed Aug 18 17:32:51 2010 +0100
@@ -10,8 +10,7 @@
 enum { ColBG, ColFG, ColBorder, ColLast };
 
 typedef struct {
- int x, y;
- unsigned int w, h;
+ int x, y, w, h;
         Bool invert;
         Display *dpy;
         GC gc;
@@ -39,6 +38,6 @@
 int textw(DC *dc, const char *text);
 void weprintf(const char *fmt, ...);
 
-extern const char *progname;
+const char *progname;
 
 #endif
diff -r 1a440caf66f6 -r f9c295f1b669 eprintf.c
--- a/eprintf.c Wed Aug 11 15:35:29 2010 +0100
+++ b/eprintf.c Wed Aug 18 17:32:51 2010 +0100
@@ -4,8 +4,6 @@
 #include <stdlib.h>
 #include "draw.h"
 
-const char *progname;
-
 void
 eprintf(const char *fmt, ...) {
         va_list ap;
diff -r 1a440caf66f6 -r f9c295f1b669 weprintf.c
--- a/weprintf.c Wed Aug 11 15:35:29 2010 +0100
+++ b/weprintf.c Wed Aug 18 17:32:51 2010 +0100
@@ -3,8 +3,6 @@
 #include <stdio.h>
 #include "draw.h"
 
-const char *progname;
-
 void
 weprintf(const char *fmt, ...) {
         va_list ap;
Received on Wed Aug 18 2010 - 18:32:55 CEST

This archive was generated by hypermail 2.2.0 : Wed Aug 18 2010 - 18:36:04 CEST