Mercurial > hg > forks > pwpunix
diff pwplib/pwplib.h @ 54:85671798fdb3
Various code cleanups, cosmetics, warning fixes.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 26 May 2010 01:22:51 +0300 |
parents | e2b6a35bcb0c |
children | c272f66c5eb8 |
line wrap: on
line diff
--- a/pwplib/pwplib.h Wed May 26 00:42:25 2010 +0300 +++ b/pwplib/pwplib.h Wed May 26 01:22:51 2010 +0300 @@ -1,5 +1,5 @@ -#ifndef __PWPLIB_H -#define __PWPLIB_H +#ifndef PWP_PWPLIB_H +#define PWP_PWPLIB_H #define PWPLIB_VERSION "1.95" @@ -11,9 +11,15 @@ int pwplib_init(int argc,char**argv); int pwplib_timer(); -void pwplib_shutdown(); +void pwplib_shutdown(void); +int pwplib_init_common(void); void pwplib_startup(); +char * pwp_get_locale(); +void pwplib_dump_rast_plain(); +int pwp_timer_nrt(); +void pwplib_getopts(); +void pwplib_printhelp(); void pwplib_regdestr(void(*func)()); #define pwplib_buf pwplib.videobuf.d @@ -157,13 +163,12 @@ #endif void pwp_timer_regframe(int bytes); -typedef struct -{ +typedef struct { char *name; int type; void *dflt; void **var; -}optab; +} pwp_optab; #define OPT_BIN 0 #define OPT_NOT 1 @@ -177,10 +182,6 @@ #define STDOUT 1 #define STDERR 2 -char* pwp_get_locale(); -void pwplib_dump_rast_plain(); -int pwp_timer_nrt(); -void pwplib_getopts(); -void pwplib_printhelp(); + -#endif +#endif /* PWP_PWPLIB_H */