shithub: npe

Download patch

ref: 2eb9412c338b44fcefaf28aa438a3965071f0ba4
parent: 4390e4f277befd6de69812dd5ec12748eb5e6e44
author: Sigrid Solveig Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Oct 11 16:57:35 EDT 2021

missed some spaces, convert to tabs

--- a/include/npe/SDL2/SDL_image.h
+++ b/include/npe/SDL2/SDL_image.h
@@ -6,9 +6,9 @@
 #define SDL_IMAGE_PATCHLEVEL 6
 
 enum {
-    IMG_INIT_JPG = 1<<0,
-    IMG_INIT_PNG = 1<<1,
-    IMG_INIT_TIF = 1<<2,
+	IMG_INIT_JPG = 1<<0,
+	IMG_INIT_PNG = 1<<1,
+	IMG_INIT_TIF = 1<<2,
 };
 
 int IMG_Init(int flags);
--- a/include/npe/SDL2/SDL_rwops.h
+++ b/include/npe/SDL2/SDL_rwops.h
@@ -12,12 +12,12 @@
 };
 
 struct SDL_RWops {
-    vlong (*size)(struct SDL_RWops *);
-    vlong (*seek)(struct SDL_RWops *, vlong, int);
-    size_t (*read)(struct SDL_RWops *, void *, size_t, size_t);
-    size_t (*write)(struct SDL_RWops *, const void *, size_t, size_t);
-    int (*close)(struct SDL_RWops *);
-    npe_sdl_rwops *p;
+	vlong (*size)(struct SDL_RWops *);
+	vlong (*seek)(struct SDL_RWops *, vlong, int);
+	size_t (*read)(struct SDL_RWops *, void *, size_t, size_t);
+	size_t (*write)(struct SDL_RWops *, const void *, size_t, size_t);
+	int (*close)(struct SDL_RWops *);
+	npe_sdl_rwops *p;
 };
 
 SDL_RWops *SDL_RWFromFile(const char *, const char *);
--- a/libnpe_pthread/_pthread.h
+++ b/libnpe_pthread/_pthread.h
@@ -3,12 +3,12 @@
 #include <thread.h>
 
 struct pthread_attr_t {
-    unsigned stack_size;
+	unsigned stack_size;
 };
 
 struct pthread_cond_t {
-    Rendez;
-    QLock lock;
+	Rendez;
+	QLock lock;
 };
 
 struct pthread_once_t {
@@ -21,8 +21,8 @@
 };
 
 struct npe_pthread_t {
-    void *waitchan;
-    void *(*func)(void*);
-    void *arg;
-    int pid;
+	void *waitchan;
+	void *(*func)(void*);
+	void *arg;
+	int pid;
 };
--- a/libnpe_pthread/pthread_attr_destroy.c
+++ b/libnpe_pthread/pthread_attr_destroy.c
@@ -4,5 +4,5 @@
 pthread_attr_destroy(pthread_attr_t *const attr)
 {
 	USED(attr);
-    return 0;
+	return 0;
 }
--- a/libnpe_pthread/pthread_attr_init.c
+++ b/libnpe_pthread/pthread_attr_init.c
@@ -3,6 +3,6 @@
 int
 pthread_attr_init(pthread_attr_t *const attr)
 {
-    attr->stack_size = 0;
-    return 0;
+	attr->stack_size = 0;
+	return 0;
 }
--- a/libnpe_pthread/pthread_attr_setstacksize.c
+++ b/libnpe_pthread/pthread_attr_setstacksize.c
@@ -3,6 +3,6 @@
 int
 pthread_attr_setstacksize(pthread_attr_t *const attr, const int stack_size)
 {
-    attr->stack_size = stack_size;
-    return 0;
+	attr->stack_size = stack_size;
+	return 0;
 }
--- a/libnpe_pthread/pthread_cond_broadcast.c
+++ b/libnpe_pthread/pthread_cond_broadcast.c
@@ -7,5 +7,5 @@
 	rwakeupall(cond);
 	qunlock(cond->l);
 
-    return 0;
+	return 0;
 }
--- a/libnpe_pthread/pthread_cond_destroy.c
+++ b/libnpe_pthread/pthread_cond_destroy.c
@@ -4,5 +4,5 @@
 pthread_cond_destroy(pthread_cond_t *const cond)
 {
 	USED(cond);
-    return 0;
+	return 0;
 }
--- a/libnpe_pthread/pthread_cond_init.c
+++ b/libnpe_pthread/pthread_cond_init.c
@@ -4,8 +4,8 @@
 pthread_cond_init(pthread_cond_t *const cond, const void *const attr)
 {
 	USED(attr);
-    memset(cond, 0, sizeof(*cond));
-    cond->l = &cond->lock;
+	memset(cond, 0, sizeof(*cond));
+	cond->l = &cond->lock;
 
-    return 0;
+	return 0;
 }
--- a/libnpe_pthread/pthread_cond_signal.c
+++ b/libnpe_pthread/pthread_cond_signal.c
@@ -7,5 +7,5 @@
 	rwakeup(cond);
 	qunlock(cond->l);
 
-    return 0;
+	return 0;
 }
--- a/libnpe_pthread/pthread_cond_wait.c
+++ b/libnpe_pthread/pthread_cond_wait.c
@@ -9,5 +9,5 @@
 	qunlock(cond->l);
 	qlock(mutex);
 
-    return 0;
+	return 0;
 }
--- a/libnpe_pthread/pthread_mutex_destroy.c
+++ b/libnpe_pthread/pthread_mutex_destroy.c
@@ -4,5 +4,5 @@
 pthread_mutex_destroy(pthread_mutex_t *const mutex)
 {
 	USED(mutex);
-    return 0;
+	return 0;
 }
--- a/libnpe_pthread/pthread_mutex_init.c
+++ b/libnpe_pthread/pthread_mutex_init.c
@@ -6,5 +6,5 @@
 	USED(attr);
 	memset(mutex, 0, sizeof(*mutex));
 
-    return 0;
+	return 0;
 }
--- a/libnpe_pthread/pthread_mutex_lock.c
+++ b/libnpe_pthread/pthread_mutex_lock.c
@@ -3,6 +3,6 @@
 int
 pthread_mutex_lock(pthread_mutex_t *const mutex)
 {
-    qlock(mutex);
-    return 0;
+	qlock(mutex);
+	return 0;
 }
--- a/libnpe_pthread/pthread_mutex_unlock.c
+++ b/libnpe_pthread/pthread_mutex_unlock.c
@@ -3,6 +3,6 @@
 int
 pthread_mutex_unlock(pthread_mutex_t *const mutex)
 {
-    qunlock(mutex);
-    return 0;
+	qunlock(mutex);
+	return 0;
 }
--- a/libnpe_sdl2/rwops.c
+++ b/libnpe_sdl2/rwops.c
@@ -38,7 +38,7 @@
 
 	if((f = open(file, mode|OCEXEC)) >= 0 &&
 	    (o = calloc(1, sizeof(*o)+sizeof(npe_sdl_rwops))) != nil &&
-	    Binit((o->p = (void*)(o+1)), f, mode) == 0){
+		Binit((o->p = (void*)(o+1)), f, mode) == 0){
 		o->size = bsize;
 		o->seek = bseek;
 		o->read = bread;