forked from KolibriOS/kolibrios
uPDF: clean warnings, move opj_config.h to libopenjpeg folder
git-svn-id: svn://kolibrios.org@8416 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
0fe62da5c4
commit
08aecd42a8
@ -19,3 +19,6 @@ default: $(patsubst %.c,%.o,$(APPS_SRC))
|
|||||||
|
|
||||||
%.o : %.c Makefile $(APPS_SRC)
|
%.o : %.c Makefile $(APPS_SRC)
|
||||||
$(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
|
$(CC) $(CFLAGS) $(INCLUDES) -o $@ $<
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm *.o
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#include "kolibri.h"
|
#include "kolibri.h"
|
||||||
#include "string.h"
|
#include "string.h"
|
||||||
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
|
||||||
extern char KOL_PATH[256];
|
extern char KOL_PATH[256];
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
|
|
||||||
|
#ifndef NULL
|
||||||
#define NULL ((void*)0)
|
#define NULL ((void*)0)
|
||||||
|
#endif
|
||||||
|
|
||||||
#define SHM_OPEN 0
|
#define SHM_OPEN 0
|
||||||
#define SHM_OPEN_ALWAYS 0x04
|
#define SHM_OPEN_ALWAYS 0x04
|
||||||
@ -46,7 +48,7 @@ typedef struct
|
|||||||
{
|
{
|
||||||
unsigned p00;
|
unsigned p00;
|
||||||
unsigned p04;
|
unsigned p04;
|
||||||
unsigned p08;
|
char *p08;
|
||||||
unsigned p12;
|
unsigned p12;
|
||||||
unsigned p16;
|
unsigned p16;
|
||||||
char p20;
|
char p20;
|
||||||
@ -143,3 +145,6 @@ int kol_clip_num();
|
|||||||
char* kol_clip_get(int n);
|
char* kol_clip_get(int n);
|
||||||
int kol_clip_set(int n, char buffer[]);
|
int kol_clip_set(int n, char buffer[]);
|
||||||
|
|
||||||
|
void kos_blit(int dstx, int dsty, int w, int h, int srcx,
|
||||||
|
int srcy,int srcw, int srch, int stride, char *d);
|
||||||
|
int kos_random(int num);
|
||||||
|
@ -2,7 +2,6 @@
|
|||||||
#include "resource.h"
|
#include "resource.h"
|
||||||
|
|
||||||
#include <menuet/os.h>
|
#include <menuet/os.h>
|
||||||
#define _WIN32
|
|
||||||
#include "fitz.h"
|
#include "fitz.h"
|
||||||
#include "mupdf.h"
|
#include "mupdf.h"
|
||||||
#include "pdfapp.h"
|
#include "pdfapp.h"
|
||||||
@ -56,6 +55,13 @@ const char *help[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/*==== CODE ====*/
|
/*==== CODE ====*/
|
||||||
|
// Prototypes //
|
||||||
|
void RunApp(char app[], char param[]);
|
||||||
|
void winblit(pdfapp_t *app);
|
||||||
|
void DrawPagination(void);
|
||||||
|
void HandleNewPageNumber(unsigned char key);
|
||||||
|
void ApplyNewPageNumber(void);
|
||||||
|
void DrawWindow(void);
|
||||||
|
|
||||||
|
|
||||||
// not implemented yet
|
// not implemented yet
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
#include "mupdf.h"
|
#include "mupdf.h"
|
||||||
#include "pdfapp.h"
|
#include "pdfapp.h"
|
||||||
|
|
||||||
// #include <ctype.h> /* for tolower() */
|
#include <ctype.h> /* for tolower() */
|
||||||
|
|
||||||
#define ZOOMSTEP 1.142857
|
#define ZOOMSTEP 1.142857
|
||||||
#define BEYOND_THRESHHOLD 40
|
#define BEYOND_THRESHHOLD 40
|
||||||
|
@ -1,21 +1,5 @@
|
|||||||
#ifndef __dj_include_sys_resource_h_
|
|
||||||
#define __dj_include_sys_resource_h_
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __dj_ENFORCE_ANSI_FREESTANDING
|
|
||||||
|
|
||||||
#ifndef __STRICT_ANSI__
|
|
||||||
|
|
||||||
#ifndef _POSIX_SOURCE
|
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
|
|
||||||
#define RUSAGE_SELF 0 /* calling process */
|
|
||||||
#define RUSAGE_CHILDREN -1 /* terminated child processes */
|
|
||||||
|
|
||||||
struct rusage {
|
struct rusage {
|
||||||
struct timeval ru_utime; /* user time used */
|
struct timeval ru_utime; /* user time used */
|
||||||
struct timeval ru_stime; /* system time used */
|
struct timeval ru_stime; /* system time used */
|
||||||
@ -35,36 +19,5 @@ struct rusage {
|
|||||||
long ru_nivcsw; /* involuntary context switches */
|
long ru_nivcsw; /* involuntary context switches */
|
||||||
};
|
};
|
||||||
|
|
||||||
#define RLIMIT_CPU 0 /* cpu time in milliseconds */
|
|
||||||
#define RLIMIT_FSIZE 1 /* maximum file size */
|
|
||||||
#define RLIMIT_DATA 2 /* data size */
|
|
||||||
#define RLIMIT_STACK 3 /* stack size */
|
|
||||||
#define RLIMIT_CORE 4 /* core file size */
|
|
||||||
#define RLIMIT_RSS 5 /* resident set size */
|
|
||||||
#define RLIMIT_MEMLOCK 6 /* locked-in-memory address space */
|
|
||||||
#define RLIMIT_NPROC 7 /* number of processes */
|
|
||||||
#define RLIMIT_NOFILE 8 /* number of open files */
|
|
||||||
|
|
||||||
#define RLIM_NLIMITS 9 /* number of resource limits */
|
|
||||||
#define RLIM_INFINITY ((long) ((1UL << 31) - 1UL))
|
|
||||||
|
|
||||||
struct rlimit {
|
|
||||||
long rlim_cur; /* current (soft) limit */
|
|
||||||
long rlim_max; /* maximum value for rlim_cur */
|
|
||||||
};
|
|
||||||
|
|
||||||
/// STUB ///
|
/// STUB ///
|
||||||
int getrusage(int _who, struct rusage *_rusage) {};
|
int getrusage(int _who, struct rusage *_rusage) {};
|
||||||
|
|
||||||
#endif /* !_POSIX_SOURCE */
|
|
||||||
#endif /* !__STRICT_ANSI__ */
|
|
||||||
#endif /* !__dj_ENFORCE_ANSI_FREESTANDING */
|
|
||||||
|
|
||||||
#ifndef __dj_ENFORCE_FUNCTION_CALLS
|
|
||||||
#endif /* !__dj_ENFORCE_FUNCTION_CALLS */
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* !__dj_include_sys_resource_h_ */
|
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#endif /* _WIN32 */
|
#endif /* _WIN32 */
|
||||||
|
|
||||||
#include "../opj_config.h"
|
#include "opj_config.h"
|
||||||
#include "opj_includes.h"
|
#include "opj_includes.h"
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user