Support for LIT output via the commandline tool any2lit (thanks to Marshall Vandegrift)

This commit is contained in:
Kovid Goyal 2008-12-17 19:12:00 -08:00
commit 2d4b0c89b1
3 changed files with 8 additions and 4 deletions

View File

@ -21,7 +21,7 @@
+ ((compressor)->input.size - (compressor)->input.offset))
typedef struct buffer_t {
void *data;
char *data;
unsigned int size;
unsigned int offset;
} buffer_t;
@ -222,7 +222,7 @@ Compressor_init(Compressor *self, PyObject *args, PyObject *kwds)
static PyObject *
Compressor_compress__(
Compressor *self, unsigned char *data, unsigned int inlen, int flush)
Compressor *self, char *data, unsigned int inlen, int flush)
{
buffer_t *residue = &self->residue;
buffer_t *input = &self->input;
@ -305,7 +305,7 @@ static PyObject *
Compressor_compress(Compressor *self, PyObject *args, PyObject *kwds)
{
static char *kwlist[] = {"data", "flush", NULL};
unsigned char *data = NULL;
char *data = NULL;
unsigned int inlen = 0;
int flush = 0;

View File

@ -23,7 +23,11 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#ifdef _MSC_VER
# include "msstdint.h"
#else /* _MSC_VER */
# include <stdint.h>
#endif /* _MSC_VER */
#include <string.h> /* for memset on Linux */
#include <assert.h>
#include <math.h>