Krolyxon
Commit 955c39a

Branches

Refs →

nsxiv955c39a

Shorter typedefs

Author
Bert
Date
2011-03-01 14:23 +0100
Parent
8919fbd
Commit
955c39a5c5e3193e18c21abe87110651cc2472d2

+12 −12

6 files changed

  1. M Makefile +1 −1
  2. M image.h +3 −3
  3. M main.c +1 −1
  4. M options.h +1 −1
  5. M thumbs.h +3 −3
  6. M window.h +3 −3
M Makefile View
@@ -1,6 +1,6 @@
11 all: sxiv
22
3−VERSION=git-20110227
3+VERSION=git-20110301
44
55 CC?=gcc
66 PREFIX?=/usr/local
M image.h View
@@ -23,20 +23,20 @@
2323
2424 #include "window.h"
2525
26−typedef enum scalemode_e {
26+typedef enum {
2727 SCALE_DOWN = 0,
2828 SCALE_FIT,
2929 SCALE_ZOOM
3030 } scalemode_t;
3131
32−typedef enum pandir_e {
32+typedef enum {
3333 PAN_LEFT = 0,
3434 PAN_RIGHT,
3535 PAN_UP,
3636 PAN_DOWN
3737 } pandir_t;
3838
39−typedef struct img_s {
39+typedef struct {
4040 Imlib_Image *im;
4141
4242 float zoom;
M main.c View
@@ -34,7 +34,7 @@
3434 #include "util.h"
3535 #include "window.h"
3636
37−typedef enum appmode_e {
37+typedef enum {
3838 MODE_NORMAL = 0,
3939 MODE_THUMBS
4040 } appmode_t;
M options.h View
@@ -21,7 +21,7 @@
2121
2222 #include "image.h"
2323
24−typedef struct options_s {
24+typedef struct {
2525 const char **filenames;
2626 int filecnt;
2727 unsigned char from_stdin;
M thumbs.h View
@@ -21,14 +21,14 @@
2121
2222 #include "window.h"
2323
24−typedef enum tnsdir_e {
24+typedef enum {
2525 TNS_LEFT = 0,
2626 TNS_RIGHT,
2727 TNS_UP,
2828 TNS_DOWN
2929 } tnsdir_t;
3030
31−typedef struct thumb_s {
31+typedef struct {
3232 Pixmap pm;
3333 int x;
3434 int y;
@@ -36,7 +36,7 @@ typedef struct thumb_s {
3636 int h;
3737 } thumb_t;
3838
39−typedef struct tns_s {
39+typedef struct {
4040 thumb_t *thumbs;
4141 int cap;
4242 int cnt;
M window.h View
@@ -23,14 +23,14 @@
2323
2424 #define CLEANMASK(mask) ((mask) & ~LockMask)
2525
26−typedef enum win_cur_e {
26+typedef enum {
2727 CURSOR_ARROW = 0,
2828 CURSOR_NONE,
2929 CURSOR_HAND,
3030 CURSOR_WATCH
3131 } win_cur_t;
3232
33−typedef struct win_env_s {
33+typedef struct {
3434 Display *dpy;
3535 int scr;
3636 int scrw, scrh;
@@ -39,7 +39,7 @@ typedef struct win_env_s {
3939 int depth;
4040 } win_env_t;
4141
42−typedef struct win_s {
42+typedef struct {
4343 Window xwin;
4444 win_env_t env;
4545