使用 JavaScript能使本网站更好的工作。
首页
探索
帮助
登录
Immanuel
/
sxiv
关注
1
点赞
0
派生
0
代码
工单
0
合并请求
0
版本发布
0
百科
动态
浏览代码
Shorter typedefs
master
Bert
14 年前
父节点
8919fbd676
当前提交
955c39a5c5
共有
6 个文件被更改
,包括
12 次插入
和
12 次删除
分列视图
Diff 选项
显示统计
下载 Patch 文件
下载 Diff 文件
+1
-1
Makefile
+3
-3
image.h
+1
-1
main.c
+1
-1
options.h
+3
-3
thumbs.h
+3
-3
window.h
+ 1
- 1
Makefile
查看文件
@@ -1,6 +1,6 @@
all: sxiv
VERSION=git-20110
227
VERSION=git-20110
301
CC?=gcc
PREFIX?=/usr/local
+ 3
- 3
image.h
查看文件
@@ -23,20 +23,20 @@
#include "window.h"
typedef enum
scalemode_e
{
typedef enum {
SCALE_DOWN = 0,
SCALE_FIT,
SCALE_ZOOM
} scalemode_t;
typedef enum
pandir_e
{
typedef enum {
PAN_LEFT = 0,
PAN_RIGHT,
PAN_UP,
PAN_DOWN
} pandir_t;
typedef struct
img_s
{
typedef struct {
Imlib_Image *im;
float zoom;
+ 1
- 1
main.c
查看文件
@@ -34,7 +34,7 @@
#include "util.h"
#include "window.h"
typedef enum
appmode_e
{
typedef enum {
MODE_NORMAL = 0,
MODE_THUMBS
} appmode_t;
+ 1
- 1
options.h
查看文件
@@ -21,7 +21,7 @@
#include "image.h"
typedef struct
options_s
{
typedef struct {
const char **filenames;
int filecnt;
unsigned char from_stdin;
+ 3
- 3
thumbs.h
查看文件
@@ -21,14 +21,14 @@
#include "window.h"
typedef enum
tnsdir_e
{
typedef enum {
TNS_LEFT = 0,
TNS_RIGHT,
TNS_UP,
TNS_DOWN
} tnsdir_t;
typedef struct
thumb_s
{
typedef struct {
Pixmap pm;
int x;
int y;
@@ -36,7 +36,7 @@ typedef struct thumb_s {
int h;
} thumb_t;
typedef struct
tns_s
{
typedef struct {
thumb_t *thumbs;
int cap;
int cnt;
+ 3
- 3
window.h
查看文件
@@ -23,14 +23,14 @@
#define CLEANMASK(mask) ((mask) & ~LockMask)
typedef enum
win_cur_e
{
typedef enum {
CURSOR_ARROW = 0,
CURSOR_NONE,
CURSOR_HAND,
CURSOR_WATCH
} win_cur_t;
typedef struct
win_env_s
{
typedef struct {
Display *dpy;
int scr;
int scrw, scrh;
@@ -39,7 +39,7 @@ typedef struct win_env_s {
int depth;
} win_env_t;
typedef struct
win_s
{
typedef struct {
Window xwin;
win_env_t env;
撰写
预览
正在加载...
取消
保存