input stringlengths 16 454k | output stringlengths 13 350k | function_name stringlengths 1 100 | repo_name stringlengths 6 43 | category stringclasses 76
values | sample_id stringlengths 22 88 | decompiler stringclasses 1
value | opt_level stringclasses 1
value |
|---|---|---|---|---|---|---|---|
double TryOptimizeHuffmanForRle(const ZopfliLZ77Store *lz77, size_t lstart,
size_t lend, const size_t *ll_counts,
const size_t *d_counts,
unsigned int *ll_lengths,
unsigned int *d_lengths) {
... | static double TryOptimizeHuffmanForRle(const ZopfliLZ77Store *lz77,
size_t lstart, size_t lend,
const size_t *ll_counts,
const size_t *d_counts,
unsigned *ll_length... | TryOptimizeHuffmanForRle | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void UpdateHashValue(ZopfliHash *h, unsigned char c) {
h->val = ((unsigned short)(32 * h->val) ^ c) & 0x7FFF;
} | static void UpdateHashValue(ZopfliHash *h, unsigned char c) {
h->val = (((h->val) << HASH_SHIFT) ^ (c)) & HASH_MASK;
} | UpdateHashValue | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliAllocHash(size_t window_size, ZopfliHash *h) {
h->head = (int *)malloc(0x40000u);
h->prev = (unsigned short *)malloc(2 * window_size);
h->hashval = (int *)malloc(4 * window_size);
h->same = (unsigned short *)malloc(2 * window_size);
h->head2 = (int *)malloc(0x40000u);
h->prev2 = (unsigned short *... | void ZopfliAllocHash(size_t window_size, ZopfliHash *h) {
h->head = (int *)malloc(sizeof(*h->head) * 65536);
h->prev = (unsigned short *)malloc(sizeof(*h->prev) * window_size);
h->hashval = (int *)malloc(sizeof(*h->hashval) * window_size);
#ifdef ZOPFLI_HASH_SAME
h->same = (unsigned short *)malloc(sizeof(*h->s... | ZopfliAllocHash | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliAppendLZ77Store(const ZopfliLZ77Store *store,
ZopfliLZ77Store *target) {
size_t i;
for (i = 0; i < store->size; ++i)
ZopfliStoreLitLenDist(store->litlens[i], store->dists[i], store->pos[i],
target);
} | void ZopfliAppendLZ77Store(const ZopfliLZ77Store *store,
ZopfliLZ77Store *target) {
size_t i;
for (i = 0; i < store->size; i++) {
ZopfliStoreLitLenDist(store->litlens[i], store->dists[i], store->pos[i],
target);
}
} | ZopfliAppendLZ77Store | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliBlockSplit(const ZopfliOptions *options, const unsigned char *in,
size_t instart, size_t inend, size_t maxblocks,
size_t **splitpoints, size_t *npoints) {
size_t v7;
size_t *v8;
size_t *lz77splitpoints;
size_t nlz77points;
size_t pos;
size_t i;
Zopfli... | void ZopfliBlockSplit(const ZopfliOptions *options, const unsigned char *in,
size_t instart, size_t inend, size_t maxblocks,
size_t **splitpoints, size_t *npoints) {
size_t pos = 0;
size_t i;
ZopfliBlockState s;
size_t *lz77splitpoints = 0;
size_t nlz77points = 0;
... | ZopfliBlockSplit | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliBlockSplitLZ77(const ZopfliOptions *options,
const ZopfliLZ77Store *lz77, size_t maxblocks,
size_t **splitpoints, size_t *npoints) {
size_t lstart;
size_t lend;
double splitcost;
size_t i;
size_t numblocks;
size_t llpos;
unsigned char *done;
... | void ZopfliBlockSplitLZ77(const ZopfliOptions *options,
const ZopfliLZ77Store *lz77, size_t maxblocks,
size_t **splitpoints, size_t *npoints) {
size_t lstart, lend;
size_t i;
size_t llpos = 0;
size_t numblocks = 1;
unsigned char *done;
double splitcost, or... | ZopfliBlockSplitLZ77 | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliBlockSplitSimple(const unsigned char *in, size_t instart,
size_t inend, size_t blocksize,
size_t **splitpoints, size_t *npoints) {
size_t *v6;
while (instart < inend) {
if ((*npoints & (*npoints - 1)) == 0) {
if (*npoints)
v6 = (s... | void ZopfliBlockSplitSimple(const unsigned char *in, size_t instart,
size_t inend, size_t blocksize,
size_t **splitpoints, size_t *npoints) {
size_t i = instart;
while (i < inend) {
ZOPFLI_APPEND_DATA(i, splitpoints, npoints);
i += blocksize;
}
(vo... | ZopfliBlockSplitSimple | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliCacheToSublen(const ZopfliLongestMatchCache *lmc, size_t pos,
size_t length, unsigned short *sublen) {
unsigned int prevlength;
unsigned int maxlength;
unsigned int length_0;
unsigned short dist;
size_t i;
size_t j;
unsigned char *cache;
maxlength = ZopfliMaxCachedSu... | void ZopfliCacheToSublen(const ZopfliLongestMatchCache *lmc, size_t pos,
size_t length, unsigned short *sublen) {
size_t i, j;
unsigned maxlength = ZopfliMaxCachedSublen(lmc, pos, length);
unsigned prevlength = 0;
unsigned char *cache;
#if ZOPFLI_CACHE_LENGTH == 0
return;
#endif
if ... | ZopfliCacheToSublen | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliCalculateBitLengths(const size_t *count, size_t n, int maxbits,
unsigned int *bitlengths) {
if (ZopfliLengthLimitedCodeLengths(count, n, maxbits, bitlengths))
__assert_fail("!error",
"/var/tmp/portage/app-arch/zopfli-1.0.3/work/"
"zopfl... | void ZopfliCalculateBitLengths(const size_t *count, size_t n, int maxbits,
unsigned *bitlengths) {
int error = ZopfliLengthLimitedCodeLengths(count, n, maxbits, bitlengths);
(void)error;
assert(!error);
} | ZopfliCalculateBitLengths | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
double ZopfliCalculateBlockSize(const ZopfliLZ77Store *lz77, size_t lstart,
size_t lend, int btype) {
unsigned long v4;
size_t v6;
double v7;
size_t length;
unsigned int d_lengths[32];
unsigned int ll_lengths[290];
unsigned long v13;
v13 = __readfsqword(0x28u);
if (bty... | double ZopfliCalculateBlockSize(const ZopfliLZ77Store *lz77, size_t lstart,
size_t lend, int btype) {
unsigned ll_lengths[ZOPFLI_NUM_LL];
unsigned d_lengths[ZOPFLI_NUM_D];
double result = 3;
if (btype == 0) {
size_t length = ZopfliLZ77GetByteRange(lz77, lstart, lend);
s... | ZopfliCalculateBlockSize | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
double ZopfliCalculateBlockSizeAutoType(const ZopfliLZ77Store *lz77,
size_t lstart, size_t lend) {
double v3;
double result;
double uncompressedcost;
double fixedcost;
uncompressedcost = ZopfliCalculateBlockSize(lz77, lstart, lend, 0);
if (lz77->size > 0x3E8)
v3 ... | double ZopfliCalculateBlockSizeAutoType(const ZopfliLZ77Store *lz77,
size_t lstart, size_t lend) {
double uncompressedcost = ZopfliCalculateBlockSize(lz77, lstart, lend, 0);
double fixedcost = (lz77->size > 1000)
? uncompressedcost
... | ZopfliCalculateBlockSizeAutoType | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliCalculateEntropy(const size_t *count, size_t n, double *bitlengths) {
double v3;
double v4;
long v5;
long v6;
double v7;
size_t v8;
signed int sum;
unsigned int i;
unsigned int ia;
double log2sum;
sum = 0;
for (i = 0; n > i; ++i)
sum += count[i];
if (sum) {
v4 = log((double... | void ZopfliCalculateEntropy(const size_t *count, size_t n, double *bitlengths) {
static const double kInvLog2 = 1.4426950408889;
unsigned sum = 0;
unsigned i;
double log2sum;
for (i = 0; i < n; ++i) {
sum += count[i];
}
log2sum = (sum == 0 ? log(n) : log(sum)) * kInvLog2;
for (i = 0; i < n; ++i) {
... | ZopfliCalculateEntropy | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliCleanBlockState(ZopfliBlockState *s) {
if (s->lmc) {
ZopfliCleanCache(s->lmc);
free(s->lmc);
}
} | void ZopfliCleanBlockState(ZopfliBlockState *s) {
#ifdef ZOPFLI_LONGEST_MATCH_CACHE
if (s->lmc) {
ZopfliCleanCache(s->lmc);
free(s->lmc);
}
#endif
} | ZopfliCleanBlockState | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliCleanCache(ZopfliLongestMatchCache *lmc) {
free(lmc->length);
free(lmc->dist);
free(lmc->sublen);
} | void ZopfliCleanCache(ZopfliLongestMatchCache *lmc) {
free(lmc->length);
free(lmc->dist);
free(lmc->sublen);
} | ZopfliCleanCache | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliCleanHash(ZopfliHash *h) {
free(h->head);
free(h->prev);
free(h->hashval);
free(h->head2);
free(h->prev2);
free(h->hashval2);
free(h->same);
} | void ZopfliCleanHash(ZopfliHash *h) {
free(h->head);
free(h->prev);
free(h->hashval);
#ifdef ZOPFLI_HASH_SAME_HASH
free(h->head2);
free(h->prev2);
free(h->hashval2);
#endif
#ifdef ZOPFLI_HASH_SAME
free(h->same);
#endif
} | ZopfliCleanHash | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliCleanLZ77Store(ZopfliLZ77Store *store) {
free(store->litlens);
free(store->dists);
free(store->pos);
free(store->ll_symbol);
free(store->d_symbol);
free(store->ll_counts);
free(store->d_counts);
} | void ZopfliCleanLZ77Store(ZopfliLZ77Store *store) {
free(store->litlens);
free(store->dists);
free(store->pos);
free(store->ll_symbol);
free(store->d_symbol);
free(store->ll_counts);
free(store->d_counts);
} | ZopfliCleanLZ77Store | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliCompress(const ZopfliOptions *options, ZopfliFormat output_type,
const unsigned char *in, size_t insize, unsigned char **out,
size_t *outsize) {
unsigned char bp_0;
unsigned long v7;
v7 = __readfsqword(0x28u);
if (output_type) {
if (output_type == ZOPFLI_F... | void ZopfliCompress(const ZopfliOptions *options, ZopfliFormat output_type,
const unsigned char *in, size_t insize, unsigned char **out,
size_t *outsize) {
if (output_type == ZOPFLI_FORMAT_GZIP) {
ZopfliGzipCompress(options, in, insize, out, outsize);
} else if (output_ty... | ZopfliCompress | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliCopyLZ77Store(const ZopfliLZ77Store *source, ZopfliLZ77Store *dest) {
size_t i;
size_t ia;
size_t ib;
size_t llsize;
size_t dsize;
llsize = 288 * CeilDiv(source->size, 0x120u);
dsize = 32 * CeilDiv(source->size, 0x20u);
ZopfliCleanLZ77Store(dest);
ZopfliInitLZ77Store(source->data, dest);
... | void ZopfliCopyLZ77Store(const ZopfliLZ77Store *source, ZopfliLZ77Store *dest) {
size_t i;
size_t llsize = ZOPFLI_NUM_LL * CeilDiv(source->size, ZOPFLI_NUM_LL);
size_t dsize = ZOPFLI_NUM_D * CeilDiv(source->size, ZOPFLI_NUM_D);
ZopfliCleanLZ77Store(dest);
ZopfliInitLZ77Store(source->data, dest);
dest->litle... | ZopfliCopyLZ77Store | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliDeflate(const ZopfliOptions *options, int btype, int final,
const unsigned char *in, size_t insize, unsigned char *bp_0,
unsigned char **out, size_t *outsize) {
_BOOL4 v8;
long v9;
size_t v10;
double v11;
double v12;
double v13;
int final2;
size_t i;
si... | void ZopfliDeflate(const ZopfliOptions *options, int btype, int final,
const unsigned char *in, size_t insize, unsigned char *bp,
unsigned char **out, size_t *outsize) {
size_t offset = *outsize;
#if ZOPFLI_MASTER_BLOCK_SIZE == 0
ZopfliDeflatePart(options, btype, final, in, 0, ... | ZopfliDeflate | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliDeflatePart(const ZopfliOptions *options, int btype, int final,
const unsigned char *in, size_t instart, size_t inend,
unsigned char *bp_0, unsigned char **out,
size_t *outsize) {
size_t v9;
size_t v10;
double v11;
size_t v12;
siz... | void ZopfliDeflatePart(const ZopfliOptions *options, int btype, int final,
const unsigned char *in, size_t instart, size_t inend,
unsigned char *bp, unsigned char **out,
size_t *outsize) {
size_t i;
size_t *splitpoints_uncompressed = 0;
size_t ... | ZopfliDeflatePart | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliFindLongestMatch(ZopfliBlockState *s, const ZopfliHash *h,
const unsigned char *array, size_t pos, size_t size,
size_t limit, unsigned short *sublen,
unsigned short *distance, unsigned short *length) {
unsigned int v9;
un... | void ZopfliFindLongestMatch(ZopfliBlockState *s, const ZopfliHash *h,
const unsigned char *array, size_t pos, size_t size,
size_t limit, unsigned short *sublen,
unsigned short *distance, unsigned short *length) {
unsigned short hpos =... | ZopfliFindLongestMatch | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliGzipCompress(const ZopfliOptions *options, const unsigned char *in,
size_t insize, unsigned char **out, size_t *outsize) {
unsigned char *v5;
unsigned char *v6;
unsigned char *v7;
unsigned char *v8;
unsigned char *v9;
unsigned char *v10;
unsigned char *v11;
unsigned ch... | void ZopfliGzipCompress(const ZopfliOptions *options, const unsigned char *in,
size_t insize, unsigned char **out, size_t *outsize) {
unsigned long crcvalue = CRC(in, insize);
unsigned char bp = 0;
ZOPFLI_APPEND_DATA(31, out, outsize);
ZOPFLI_APPEND_DATA(139, out, outsize);
ZOPFLI_APP... | ZopfliGzipCompress | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliInitBlockState(const ZopfliOptions *options, size_t blockstart,
size_t blockend, int add_lmc, ZopfliBlockState *s) {
s->options = options;
s->blockstart = blockstart;
s->blockend = blockend;
if (add_lmc) {
s->lmc = (ZopfliLongestMatchCache *)malloc(0x18u);
ZopfliInit... | void ZopfliInitBlockState(const ZopfliOptions *options, size_t blockstart,
size_t blockend, int add_lmc, ZopfliBlockState *s) {
s->options = options;
s->blockstart = blockstart;
s->blockend = blockend;
#ifdef ZOPFLI_LONGEST_MATCH_CACHE
if (add_lmc) {
s->lmc = (ZopfliLongestMatchCac... | ZopfliInitBlockState | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliInitCache(size_t blocksize, ZopfliLongestMatchCache *lmc) {
size_t i;
size_t ia;
size_t ib;
lmc->length = (unsigned short *)malloc(2 * blocksize);
lmc->dist = (unsigned short *)malloc(2 * blocksize);
lmc->sublen = (unsigned char *)malloc(24 * blocksize);
if (!lmc->sublen) {
fprintf(stderr,... | void ZopfliInitCache(size_t blocksize, ZopfliLongestMatchCache *lmc) {
size_t i;
lmc->length = (unsigned short *)malloc(sizeof(unsigned short) * blocksize);
lmc->dist = (unsigned short *)malloc(sizeof(unsigned short) * blocksize);
lmc->sublen = (unsigned char *)malloc(ZOPFLI_CACHE_LENGTH * 3 * blocksize);
if... | ZopfliInitCache | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliInitLZ77Store(const unsigned char *data, ZopfliLZ77Store *store) {
store->size = 0;
store->litlens = 0;
store->dists = 0;
store->pos = 0;
store->data = data;
store->ll_symbol = 0;
store->d_symbol = 0;
store->ll_counts = 0;
store->d_counts = 0;
} | void ZopfliInitLZ77Store(const unsigned char *data, ZopfliLZ77Store *store) {
store->size = 0;
store->litlens = 0;
store->dists = 0;
store->pos = 0;
store->data = data;
store->ll_symbol = 0;
store->d_symbol = 0;
store->ll_counts = 0;
store->d_counts = 0;
} | ZopfliInitLZ77Store | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliInitOptions(ZopfliOptions *options) {
options->verbose = 0;
options->verbose_more = 0;
options->numiterations = 15;
options->blocksplitting = 1;
options->blocksplittinglast = 0;
options->blocksplittingmax = 15;
} | void ZopfliInitOptions(ZopfliOptions *options) {
options->verbose = 0;
options->verbose_more = 0;
options->numiterations = 15;
options->blocksplitting = 1;
options->blocksplittinglast = 0;
options->blocksplittingmax = 15;
} | ZopfliInitOptions | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
size_t ZopfliLZ77GetByteRange(const ZopfliLZ77Store *lz77, size_t lstart,
size_t lend) {
long v4;
size_t l;
l = lend - 1;
if (lstart == lend)
return 0;
if (lz77->dists[l])
v4 = lz77->litlens[l];
else
v4 = 1;
return v4 + lz77->pos[l] - lz77->pos[lstart];
} | size_t ZopfliLZ77GetByteRange(const ZopfliLZ77Store *lz77, size_t lstart,
size_t lend) {
size_t l = lend - 1;
if (lstart == lend)
return 0;
return lz77->pos[l] + ((lz77->dists[l] == 0) ? 1 : lz77->litlens[l]) -
lz77->pos[lstart];
} | ZopfliLZ77GetByteRange | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliLZ77GetHistogram(const ZopfliLZ77Store *lz77, size_t lstart,
size_t lend, size_t *ll_counts, size_t *d_counts) {
size_t *v5;
size_t *v6;
size_t i;
size_t ia;
size_t ib;
size_t d_counts2[32];
size_t ll_counts2[289];
unsigned long v15;
v15 = __readfsqword(0x28u);
... | void ZopfliLZ77GetHistogram(const ZopfliLZ77Store *lz77, size_t lstart,
size_t lend, size_t *ll_counts, size_t *d_counts) {
size_t i;
if (lstart + ZOPFLI_NUM_LL * 3 > lend) {
memset(ll_counts, 0, sizeof(*ll_counts) * ZOPFLI_NUM_LL);
memset(d_counts, 0, sizeof(*d_counts) * ZOPFLI_... | ZopfliLZ77GetHistogram | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliLZ77GetHistogramAt(const ZopfliLZ77Store *lz77, size_t lpos,
size_t *ll_counts, size_t *d_counts) {
size_t *v4;
size_t *v5;
size_t i;
size_t ia;
size_t ib;
size_t ic;
size_t llpos;
size_t dpos;
llpos = 288 * (lpos / 0x120);
dpos = lpos & 0xFFFFFFFFFFFFFFE0LL... | static void ZopfliLZ77GetHistogramAt(const ZopfliLZ77Store *lz77, size_t lpos,
size_t *ll_counts, size_t *d_counts) {
size_t llpos = ZOPFLI_NUM_LL * (lpos / ZOPFLI_NUM_LL);
size_t dpos = ZOPFLI_NUM_D * (lpos / ZOPFLI_NUM_D);
size_t i;
for (i = 0; i < ZOPFLI_NUM_LL; i++) {
... | ZopfliLZ77GetHistogramAt | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliLZ77Greedy(ZopfliBlockState *s, const unsigned char *in,
size_t instart, size_t inend, ZopfliLZ77Store *store,
ZopfliHash *h) {
size_t v6;
unsigned short leng;
unsigned short dist;
unsigned int prev_length;
unsigned int prev_match;
int match_available;
... | void ZopfliLZ77Greedy(ZopfliBlockState *s, const unsigned char *in,
size_t instart, size_t inend, ZopfliLZ77Store *store,
ZopfliHash *h) {
size_t i = 0, j;
unsigned short leng;
unsigned short dist;
int lengthscore;
size_t windowstart =
instart > ZOPFLI_WINDOW_... | ZopfliLZ77Greedy | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliLZ77Optimal(ZopfliBlockState *s, const unsigned char *in,
size_t instart, size_t inend, int numiterations,
ZopfliLZ77Store *store) {
int i;
int lastrandomstep;
unsigned short *path;
size_t pathsize;
double bestcost;
double lastcost;
size_t blocksize... | void ZopfliLZ77Optimal(ZopfliBlockState *s, const unsigned char *in,
size_t instart, size_t inend, int numiterations,
ZopfliLZ77Store *store) {
size_t blocksize = inend - instart;
unsigned short *length_array =
(unsigned short *)malloc(sizeof(unsigned short) * (b... | ZopfliLZ77Optimal | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliLZ77OptimalFixed(ZopfliBlockState *s, const unsigned char *in,
size_t instart, size_t inend,
ZopfliLZ77Store *store) {
unsigned short *path;
size_t pathsize;
size_t blocksize;
unsigned short *length_array;
ZopfliHash *h;
float *costs;
Zopf... | void ZopfliLZ77OptimalFixed(ZopfliBlockState *s, const unsigned char *in,
size_t instart, size_t inend,
ZopfliLZ77Store *store) {
size_t blocksize = inend - instart;
unsigned short *length_array =
(unsigned short *)malloc(sizeof(unsigned short) * (block... | ZopfliLZ77OptimalFixed | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
int ZopfliLengthLimitedCodeLengths(const size_t *frequencies, int n,
int maxbits, unsigned int *bitlengths) {
unsigned int *v5;
unsigned int *v6;
int i;
int ia;
int ib;
int ic;
int id;
int numsymbols;
NodePool pool;
Node *leaves;
Node *nodes;
Node *(*lists)[2];... | int ZopfliLengthLimitedCodeLengths(const size_t *frequencies, int n,
int maxbits, unsigned *bitlengths) {
NodePool pool;
int i;
int numsymbols = 0;
int numBoundaryPMRuns;
Node *nodes;
Node *(*lists)[2];
Node *leaves = (Node *)malloc(n * sizeof(*leaves));
for (i = 0;... | ZopfliLengthLimitedCodeLengths | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliLengthsToSymbols(const unsigned int *lengths, size_t n,
unsigned int maxbits, unsigned int *symbols) {
size_t *v4;
unsigned int bits;
unsigned int bitsa;
unsigned int i;
unsigned int ia;
unsigned int ib;
unsigned int code;
unsigned int len;
size_t *bl_count;
si... | void ZopfliLengthsToSymbols(const unsigned *lengths, size_t n, unsigned maxbits,
unsigned *symbols) {
size_t *bl_count = (size_t *)malloc(sizeof(size_t) * (maxbits + 1));
size_t *next_code = (size_t *)malloc(sizeof(size_t) * (maxbits + 1));
unsigned bits, i;
unsigned code;
for (i ... | ZopfliLengthsToSymbols | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
unsigned int ZopfliMaxCachedSublen(const ZopfliLongestMatchCache *lmc,
size_t pos, size_t length) {
unsigned char *cache;
cache = &lmc->sublen[24 * pos];
if (*(_WORD *)(cache + 1))
return cache[21] + 3;
else
return 0;
} | unsigned ZopfliMaxCachedSublen(const ZopfliLongestMatchCache *lmc, size_t pos,
size_t length) {
unsigned char *cache;
#if ZOPFLI_CACHE_LENGTH == 0
return 0;
#endif
cache = &lmc->sublen[ZOPFLI_CACHE_LENGTH * pos * 3];
(void)length;
if (cache[1] == 0 && cache[2] == 0)
return 0... | ZopfliMaxCachedSublen | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliResetHash(size_t window_size, ZopfliHash *h) {
size_t i;
size_t ia;
size_t ib;
size_t ic;
size_t id;
h->val = 0;
for (i = 0; i <= 0xFFFF; ++i)
h->head[i] = -1;
for (ia = 0; ia < window_size; ++ia) {
h->prev[ia] = ia;
h->hashval[ia] = -1;
}
for (ib = 0; ib < window_size; ++ib)... | void ZopfliResetHash(size_t window_size, ZopfliHash *h) {
size_t i;
h->val = 0;
for (i = 0; i < 65536; i++) {
h->head[i] = -1;
}
for (i = 0; i < window_size; i++) {
h->prev[i] = i;
h->hashval[i] = -1;
}
#ifdef ZOPFLI_HASH_SAME
for (i = 0; i < window_size; i++) {
h->same[i] = 0;
}
#endi... | ZopfliResetHash | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliStoreLitLenDist(unsigned short length, unsigned short dist,
size_t pos, ZopfliLZ77Store *store) {
size_t *v4;
size_t v5;
size_t *v6;
size_t v7;
unsigned short *v8;
unsigned short *v9;
size_t *v10;
unsigned short *v11;
unsigned short *v12;
size_t *v13;
unsigned... | void ZopfliStoreLitLenDist(unsigned short length, unsigned short dist,
size_t pos, ZopfliLZ77Store *store) {
size_t i;
size_t origsize = store->size;
size_t llstart = ZOPFLI_NUM_LL * (origsize / ZOPFLI_NUM_LL);
size_t dstart = ZOPFLI_NUM_D * (origsize / ZOPFLI_NUM_D);
if (origsize... | ZopfliStoreLitLenDist | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliSublenToCache(const unsigned short *sublen, size_t pos,
size_t length, ZopfliLongestMatchCache *lmc) {
unsigned int bestlength;
size_t i;
size_t j;
unsigned char *cache;
j = 0;
bestlength = 0;
cache = &lmc->sublen[24 * pos];
if (length > 2) {
for (i = 3; i <= len... | void ZopfliSublenToCache(const unsigned short *sublen, size_t pos,
size_t length, ZopfliLongestMatchCache *lmc) {
size_t i;
size_t j = 0;
unsigned bestlength = 0;
unsigned char *cache;
#if ZOPFLI_CACHE_LENGTH == 0
return;
#endif
cache = &lmc->sublen[ZOPFLI_CACHE_LENGTH * pos * 3];... | ZopfliSublenToCache | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliUpdateHash(const unsigned char *array, size_t pos, size_t end,
ZopfliHash *h) {
unsigned char v4;
unsigned short hpos;
size_t amount;
hpos = pos & 0x7FFF;
amount = 0;
if (end < pos + 3)
v4 = 0;
else
v4 = array[pos + 2];
UpdateHashValue(h, v4);
h->hashval[hpos]... | void ZopfliUpdateHash(const unsigned char *array, size_t pos, size_t end,
ZopfliHash *h) {
unsigned short hpos = pos & ZOPFLI_WINDOW_MASK;
#ifdef ZOPFLI_HASH_SAME
size_t amount = 0;
#endif
UpdateHashValue(
h, pos + ZOPFLI_MIN_MATCH <= end ? array[pos + ZOPFLI_MIN_MATCH - 1] : 0);
h-... | ZopfliUpdateHash | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliVerifyLenDist(const unsigned char *data, size_t datasize, size_t pos,
unsigned short dist, unsigned short length) {
size_t i;
if (datasize < length + pos)
__assert_fail("pos + length <= datasize",
"/var/tmp/portage/app-arch/zopfli-1.0.3/work/"
... | void ZopfliVerifyLenDist(const unsigned char *data, size_t datasize, size_t pos,
unsigned short dist, unsigned short length) {
size_t i;
assert(pos + length <= datasize);
for (i = 0; i < length; i++) {
if (data[pos - dist + i] != data[pos + i]) {
assert(data[pos - dist + i] ==... | ZopfliVerifyLenDist | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliWarmupHash(const unsigned char *array, size_t pos, size_t end,
ZopfliHash *h) {
UpdateHashValue(h, array[pos]);
if (end > pos + 1)
UpdateHashValue(h, array[pos + 1]);
} | void ZopfliWarmupHash(const unsigned char *array, size_t pos, size_t end,
ZopfliHash *h) {
UpdateHashValue(h, array[pos + 0]);
if (pos + 1 < end)
UpdateHashValue(h, array[pos + 1]);
} | ZopfliWarmupHash | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
void ZopfliZlibCompress(const ZopfliOptions *options, const unsigned char *in,
size_t insize, unsigned char **out, size_t *outsize) {
unsigned char *v5;
unsigned char *v6;
unsigned char *v7;
unsigned char *v8;
unsigned char *v9;
unsigned char *v10;
size_t v11;
double v12;
doubl... | void ZopfliZlibCompress(const ZopfliOptions *options, const unsigned char *in,
size_t insize, unsigned char **out, size_t *outsize) {
unsigned char bitpointer = 0;
unsigned checksum = adler32(in, (unsigned)insize);
unsigned cmf = 120;
unsigned flevel = 3;
unsigned fdict = 0;
unsigned... | ZopfliZlibCompress | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
unsigned int adler32(const unsigned char *data, size_t size) {
size_t v2;
const unsigned char *v3;
unsigned int s1;
_BYTE s2[12];
s1 = 1;
*(_DWORD *)s2 = 0;
while (size) {
v2 = sums_overflow_0;
if (size <= sums_overflow_0)
v2 = size;
*(_QWORD *)&s2[4] = v2;
size -= v2;
while (*(... | static unsigned adler32(const unsigned char *data, size_t size) {
static const unsigned sums_overflow = 5550;
unsigned s1 = 1;
unsigned s2 = 1 >> 16;
while (size > 0) {
size_t amount = size > sums_overflow ? sums_overflow : size;
size -= amount;
while (amount > 0) {
s1 += (*data++);
s2 ... | adler32 | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
size_t zopfli_min(size_t a, size_t b) {
size_t result;
result = a;
if (b <= a)
return b;
return result;
} | static size_t zopfli_min(size_t a, size_t b) { return a < b ? a : b; } | zopfli_min | zopfli-1.0.3 | app-arch | O0/app-arch/zopfli-1.0.3/libzopfli.so.1.0.3 | ida | O0 |
int AddCompoundMembers(xmlNodePtr compound, const char *name, const char *url) {
size_t v3;
size_t v4;
size_t v5;
size_t v6;
size_t v7;
const char *v8;
int ret;
_xmlNode *child;
const char *member_name;
const char *member_anchor;
const char *member_args;
char *member_name_copy;
char *member_ur... | inline int AddCompoundMembers(xmlNodePtr compound, const char *name,
const char *url) {
xmlNodePtr child = compound->xmlChildrenNode;
int ret = 0;
while (child && !ret) {
if (!xmlStrcmp(child->name, (const xmlChar *)"member")) {
char *member_name = XMLTagChild(child, "name... | AddCompoundMembers | doxymacs-1.8.0-r4 | app-emacs | O0/app-emacs/doxymacs-1.8.0-r4/doxymacs_parser | ida | O0 |
int AddToCompletionList(const char *name, const char *desc, const char *url) {
completion_list *check;
completion_list *new_entry;
desc_url_list *new_desc;
check = LookUpSymbol(name);
if (check) {
if (!LookUpDesc(check, desc)) {
new_desc = (desc_url_list *)malloc(0x18u);
if (!new_desc) {
... | inline int AddToCompletionList(const char *name, const char *desc,
const char *url) {
completion_list *check;
check = LookUpSymbol(name);
if (check) {
if (!LookUpDesc(check, desc)) {
desc_url_list *new_desc = (desc_url_list *)malloc(sizeof(desc_url_list));
if (!... | AddToCompletionList | doxymacs-1.8.0-r4 | app-emacs | O0/app-emacs/doxymacs-1.8.0-r4/doxymacs_parser | ida | O0 |
void AddToHash(completion_list *cl_0) {
hash_entry **cur;
hash_entry *v2;
cur = &symbol_hash[hash(cl_0->symbol)];
v2 = (hash_entry *)malloc(0x10u);
v2->cl = cl_0;
v2->next = *cur;
*cur = v2;
} | inline void AddToHash(completion_list *cl) {
unsigned int h = hash(cl->symbol);
hash_entry **cur = &symbol_hash[h];
hash_entry *new = (hash_entry *)malloc(sizeof(hash_entry));
new->cl = cl;
new->next = *cur;
*cur = new;
} | AddToHash | doxymacs-1.8.0-r4 | app-emacs | O0/app-emacs/doxymacs-1.8.0-r4/doxymacs_parser | ida | O0 |
char *Encode(const char *s) {
size_t v2;
_BYTE *v3;
_BYTE *v4;
char *v5;
const char *sa;
unsigned int extra_len;
char *c;
char *r;
char *ret_0;
char *ret;
sa = s;
extra_len = 0;
c = (char *)s;
if (!s)
return 0;
while (*c) {
if (*c == 92 || *c == 34)
++extra_len;
++c;
}... | inline char *Encode(const char *s) {
unsigned int extra_len = 0;
char *c = (char *)s;
if (!s) {
return NULL;
}
while (*c) {
if (*c == '\\' || *c == '"') {
extra_len++;
}
c++;
}
if (!extra_len) {
char *ret = strdup(s);
if (!ret) {
fprintf(stderr, "malloc failed\n");... | Encode | doxymacs-1.8.0-r4 | app-emacs | O0/app-emacs/doxymacs-1.8.0-r4/doxymacs_parser | ida | O0 |
void FreeCompletionList() {
completion_list *cur;
desc_url_list *desc;
completion_list *tmp_cl;
desc_url_list *tmp_desc;
cur = comp_list;
while (cur) {
desc = cur->descs;
tmp_cl = cur;
while (desc) {
tmp_desc = desc;
desc = desc->next;
free(tmp_desc->desc);
free(tmp_desc... | inline void FreeCompletionList(void) {
completion_list *cur = comp_list;
while (cur) {
desc_url_list *desc = cur->descs;
completion_list *tmp_cl = cur;
while (desc) {
desc_url_list *tmp_desc = desc;
desc = desc->next;
free(tmp_desc->desc);
free(tmp_desc->url);
free(tmp_... | FreeCompletionList | doxymacs-1.8.0-r4 | app-emacs | O0/app-emacs/doxymacs-1.8.0-r4/doxymacs_parser | ida | O0 |
void FreeHash() {
long i;
hash_entry *cur;
hash_entry *tmp;
LODWORD(i) = 0;
while ((unsigned int)i <= 0x2BCC) {
cur = symbol_hash[(unsigned int)i];
while (cur) {
tmp = cur;
cur = cur->next;
free(tmp);
}
i = (unsigned int)(i + 1);
}
} | inline void FreeHash(void) {
unsigned int i;
for (i = 0; i < HASH_SIZE; i++) {
hash_entry *cur = symbol_hash[i];
while (cur) {
hash_entry *tmp = cur;
cur = cur->next;
free(tmp);
}
}
} | FreeHash | doxymacs-1.8.0-r4 | app-emacs | O0/app-emacs/doxymacs-1.8.0-r4/doxymacs_parser | ida | O0 |
desc_url_list *LookUpDesc(completion_list *entry, const char *desc) {
desc_url_list *cur;
for (cur = entry->descs; cur && strcmp(cur->desc, desc); cur = cur->next)
;
return cur;
} | inline desc_url_list *LookUpDesc(completion_list *entry, const char *desc) {
desc_url_list *cur = entry->descs;
while (cur) {
if (!strcmp(cur->desc, desc)) {
break;
}
cur = cur->next;
}
return cur;
} | LookUpDesc | doxymacs-1.8.0-r4 | app-emacs | O0/app-emacs/doxymacs-1.8.0-r4/doxymacs_parser | ida | O0 |
completion_list *LookUpSymbol(const char *symbol) {
hash_entry *cur;
completion_list *cl_0;
for (cur = symbol_hash[hash(symbol)]; cur; cur = cur->next) {
cl_0 = cur->cl;
if (!strcmp(cur->cl->symbol, symbol))
return cl_0;
}
return 0;
} | inline completion_list *LookUpSymbol(const char *symbol) {
unsigned int h = hash(symbol);
hash_entry *cur = symbol_hash[h];
while (cur) {
completion_list *cl = cur->cl;
if (!strcmp(cl->symbol, symbol)) {
return cl;
}
cur = cur->next;
}
return NULL;
} | LookUpSymbol | doxymacs-1.8.0-r4 | app-emacs | O0/app-emacs/doxymacs-1.8.0-r4/doxymacs_parser | ida | O0 |
int OutputCompletionList() {
completion_list *cur;
desc_url_list *desc;
char *encoded_symbol;
char *encoded_desc;
char *encoded_url;
cur = comp_list;
putchar(40);
while (cur) {
desc = cur->descs;
encoded_symbol = Encode(cur->symbol);
if (!encoded_symbol)
return -1;
printf("(\"%s\"... | inline int OutputCompletionList(void) {
completion_list *cur = comp_list;
printf("(");
while (cur) {
desc_url_list *desc = cur->descs;
char *encoded_symbol = Encode(cur->symbol);
if (!encoded_symbol) {
return -1;
}
printf("(\"%s\" ", encoded_symbol);
free(encoded_symbol);
w... | OutputCompletionList | doxymacs-1.8.0-r4 | app-emacs | O0/app-emacs/doxymacs-1.8.0-r4/doxymacs_parser | ida | O0 |
char *XMLTagAttr(xmlNodePtr node, const char *attr) {
_xmlAttr *props;
xmlNodePtr props_child;
props = node->properties;
do {
if (!props)
return 0;
} while ((unsigned int)xmlStrcmp(props->name, attr));
props_child = props->children;
if (props_child)
return (char *)props_child->content;
el... | inline char *XMLTagAttr(xmlNodePtr node, const char *attr) {
xmlAttrPtr props = node->properties;
while (props) {
if (!xmlStrcmp(props->name, (const xmlChar *)attr)) {
xmlNodePtr props_child = props->xmlChildrenNode;
if (props_child) {
return (char *)props_child->content;
} else {
... | XMLTagAttr | doxymacs-1.8.0-r4 | app-emacs | O0/app-emacs/doxymacs-1.8.0-r4/doxymacs_parser | ida | O0 |
char *XMLTagChild(xmlNodePtr node, const char *name) {
_xmlNode *cur;
xmlNodePtr cur_child;
for (cur = node->children;; cur = cur->next) {
if (!cur)
return 0;
if (!(unsigned int)xmlStrcmp(cur->name, name))
break;
}
cur_child = cur->children;
if (cur_child)
return (char *)cur_child->... | inline char *XMLTagChild(xmlNodePtr node, const char *name) {
xmlNodePtr cur = node->xmlChildrenNode;
while (cur) {
if (!xmlStrcmp(cur->name, (const xmlChar *)name)) {
xmlNodePtr cur_child = cur->xmlChildrenNode;
if (cur_child) {
return (char *)cur_child->content;
} else {
ret... | XMLTagChild | doxymacs-1.8.0-r4 | app-emacs | O0/app-emacs/doxymacs-1.8.0-r4/doxymacs_parser | ida | O0 |
unsigned int hash(const char *s) {
const char *v1;
unsigned int h;
h = 0;
while (*s) {
v1 = s++;
h += *v1;
}
return h % 0x2BCD;
} | inline unsigned int hash(const char *s) {
unsigned int h = 0;
while (*s) {
h += *s++;
}
return abs(h % HASH_SIZE);
} | hash | doxymacs-1.8.0-r4 | app-emacs | O0/app-emacs/doxymacs-1.8.0-r4/doxymacs_parser | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
size_t v3;
size_t v4;
size_t v5;
size_t v6;
int ret;
int copy_url;
_BYTE res[12];
int resa;
xmlNodePtr cur;
xmlNodePtr cura;
const char *compound_url;
char *compound_url_copya;
char *compound_url_copy;
xmlParserCtxtPtr ctxt;
const ... | int main(int argc, char *argv[]) {
xmlDocPtr doc = NULL;
xmlNodePtr cur;
int ret = 0;
int res;
#define BUFF_SIZE 25 * 1024
char buff[BUFF_SIZE];
LIBXML_TEST_VERSION;
comp_list = NULL;
memset(symbol_hash, 0, sizeof(symbol_hash));
res = fread(buff, 1, 4, stdin);
if (res > 0) {
xmlParserCtxtPtr ... | main | doxymacs-1.8.0-r4 | app-emacs | O0/app-emacs/doxymacs-1.8.0-r4/doxymacs_parser | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
GType type;
WApplication *v4;
char **argva;
int argca;
int resolution;
GObject *application;
argca = argc;
argva = (char **)argv;
setlocale(6, &locale);
bindtextdomain("gwaei", "/usr/share/locale");
bind_textdomain_codeset("gwaei", "UTF-8... | int main(int argc, char *argv[]) {
GObject *application;
int resolution;
setlocale(LC_ALL, "");
bindtextdomain(GETTEXT_PACKAGE, GWAEI_LOCALEDIR);
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
textdomain(GETTEXT_PACKAGE);
g_type_init();
application = w_application_new();
resolution = w_applicat... | main | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_application_class_init(WApplicationClass *klass) {
GObjectClass *object_class;
object_class = (GObjectClass *)g_type_check_class_cast(klass, 80);
object_class->constructed = (void (*)(GObject *))w_application_constructed;
object_class->finalize = (void (*)(GObject *))w_application_finalize;
g_type_cla... | static void w_application_class_init(WApplicationClass *klass) {
GObjectClass *object_class;
object_class = G_OBJECT_CLASS(klass);
object_class->constructed = w_application_constructed;
object_class->finalize = w_application_finalize;
g_type_class_add_private(object_class, sizeof(WApplicationPrivate));
} | w_application_class_init | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_application_constructed(GObject *object) {
void (*v1)(GObject *);
v1 = *(void (**)(GObject *))(
g_type_check_class_cast(w_application_parent_class, 80) + 72);
v1(object);
lw_regex_initialize();
} | static void w_application_constructed(GObject *object) {
{
G_OBJECT_CLASS(w_application_parent_class)->constructed(object);
}
lw_regex_initialize();
} | w_application_constructed | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_application_finalize(GObject *object) {
GType type;
void (*v2)(GObject *);
WApplicationPrivate *priv;
type = w_application_get_type();
priv =
*(WApplicationPrivate **)(g_type_check_instance_cast(object, type) + 24);
if (priv->installed_dictionarylist)
g_object_unref(priv->installed_diction... | static void w_application_finalize(GObject *object) {
WApplication *application;
WApplicationPrivate *priv;
application = W_APPLICATION(object);
priv = application->priv;
if (priv->installed_dictionarylist != NULL)
g_object_unref(priv->installed_dictionarylist);
priv->installed_dictionarylist = NULL;... | w_application_finalize | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
gboolean w_application_get_color_switch(WApplication *application) {
return application->priv->arg_color_switch;
} | gboolean w_application_get_color_switch(WApplication *application) {
WApplicationPrivate *priv;
priv = application->priv;
return priv->arg_color_switch;
} | w_application_get_color_switch | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
const gchar *
w_application_get_dictionary_switch_data(WApplication *application) {
return application->priv->arg_dictionary_switch_data;
} | const gchar *
w_application_get_dictionary_switch_data(WApplication *application) {
WApplicationPrivate *priv;
priv = application->priv;
return priv->arg_dictionary_switch_data;
} | w_application_get_dictionary_switch_data | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
gboolean w_application_get_exact_switch(WApplication *application) {
return application->priv->arg_exact_switch;
} | gboolean w_application_get_exact_switch(WApplication *application) {
WApplicationPrivate *priv;
priv = application->priv;
return priv->arg_exact_switch;
} | w_application_get_exact_switch | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
const gchar *w_application_get_install_switch_data(WApplication *application) {
return application->priv->arg_install_switch_data;
} | const gchar *w_application_get_install_switch_data(WApplication *application) {
WApplicationPrivate *priv;
priv = application->priv;
return priv->arg_install_switch_data;
} | w_application_get_install_switch_data | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
LwDictionaryList *
w_application_get_installable_dictionarylist(WApplication *application) {
WApplicationPrivate *priv;
LwPreferences *preferences;
priv = application->priv;
if (!priv->installable_dictionarylist) {
priv->installable_dictionarylist =
(LwDictionaryList *)lw_dictionarylist_new();
... | LwDictionaryList *
w_application_get_installable_dictionarylist(WApplication *application) {
WApplicationPrivate *priv;
LwPreferences *preferences;
priv = application->priv;
if (priv->installable_dictionarylist == NULL) {
priv->installable_dictionarylist = lw_dictionarylist_new();
preferences = w_appl... | w_application_get_installable_dictionarylist | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
LwDictionaryList *
w_application_get_installed_dictionarylist(WApplication *application) {
WApplicationPrivate *priv;
LwPreferences *preferences;
priv = application->priv;
preferences = w_application_get_preferences(application);
if (!priv->installed_dictionarylist) {
priv->installed_dictionarylist =
... | LwDictionaryList *
w_application_get_installed_dictionarylist(WApplication *application) {
WApplicationPrivate *priv;
LwPreferences *preferences;
priv = application->priv;
preferences = w_application_get_preferences(application);
if (priv->installed_dictionarylist == NULL) {
priv->installed_dictionaryli... | w_application_get_installed_dictionarylist | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
gboolean w_application_get_list_switch(WApplication *application) {
return application->priv->arg_list_switch;
} | gboolean w_application_get_list_switch(WApplication *application) {
WApplicationPrivate *priv;
priv = application->priv;
return priv->arg_list_switch;
} | w_application_get_list_switch | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
LwPreferences *w_application_get_preferences(WApplication *application) {
long v1;
WApplicationPrivate *priv;
priv = application->priv;
if (!priv->preferences) {
g_io_extension_point_register("gsettings-backend");
v1 = g_memory_settings_backend_new();
priv->preferences = (LwPreferences *)lw_prefere... | LwPreferences *w_application_get_preferences(WApplication *application) {
WApplicationPrivate *priv;
priv = application->priv;
if (priv->preferences == NULL) {
g_io_extension_point_register("gsettings-backend");
priv->preferences = lw_preferences_new(g_memory_settings_backend_new());
}
return priv-... | w_application_get_preferences | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
const char *w_application_get_program_name(WApplication *application) {
return gettext("Waei Japanese-English Dictionary");
} | const char *w_application_get_program_name(WApplication *application) {
return gettext("Waei Japanese-English Dictionary");
} | w_application_get_program_name | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
const gchar *w_application_get_query_text_data(WApplication *application) {
return application->priv->arg_query_text_data;
} | const gchar *w_application_get_query_text_data(WApplication *application) {
WApplicationPrivate *priv;
priv = application->priv;
return priv->arg_query_text_data;
} | w_application_get_query_text_data | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
gboolean w_application_get_quiet_switch(WApplication *application) {
return application->priv->arg_quiet_switch;
} | gboolean w_application_get_quiet_switch(WApplication *application) {
WApplicationPrivate *priv;
priv = application->priv;
return priv->arg_quiet_switch;
} | w_application_get_quiet_switch | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
const gchar *
w_application_get_uninstall_switch_data(WApplication *application) {
return application->priv->arg_uninstall_switch_data;
} | const gchar *
w_application_get_uninstall_switch_data(WApplication *application) {
WApplicationPrivate *priv;
priv = application->priv;
return priv->arg_uninstall_switch_data;
} | w_application_get_uninstall_switch_data | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
gboolean w_application_get_version_switch(WApplication *application) {
return application->priv->arg_version_switch;
} | gboolean w_application_get_version_switch(WApplication *application) {
WApplicationPrivate *priv;
priv = application->priv;
return priv->arg_version_switch;
} | w_application_get_version_switch | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_application_handle_error(WApplication *application, GError **error) {
if (error) {
if (*error) {
fprintf(stderr, "ERROR: %s\n", (*error)->message);
g_error_free(*error);
*error = 0;
}
}
} | void w_application_handle_error(WApplication *application, GError **error) {
if (error == NULL || *error == NULL)
return;
fprintf(stderr, "ERROR: %s\n", (*error)->message);
g_error_free(*error);
*error = NULL;
} | w_application_handle_error | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_application_init(WApplication *application) {
GType type;
type = w_application_get_type();
application->priv =
(WApplicationPrivate *)g_type_instance_get_private(application, type);
memset(application->priv, 0, sizeof(WApplicationPrivate));
} | static void w_application_init(WApplication *application) {
application->priv = W_APPLICATION_GET_PRIVATE(application);
memset(application->priv, 0, sizeof(WApplicationPrivate));
} | w_application_init | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
GObject *w_application_new() {
GType type;
WApplication *application;
type = w_application_get_type();
application = (WApplication *)g_object_new(type, 0);
return (GObject *)g_type_check_instance_cast(application, 80);
} | GObject *w_application_new() {
WApplication *application;
application = g_object_new(W_TYPE_APPLICATION, NULL);
return G_OBJECT(application);
} | w_application_new | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_application_parse_args(WApplication *application, int *argc,
char ***argv) {
char *v3;
char *v4;
gchar *query_from_args;
GError *error;
WApplicationPrivate *priv;
const gchar *summary_text;
const gchar *description_text;
GOptionEntry entries[9];
unsigned long v12;
... | static void w_application_parse_args(WApplication *application, int *argc,
char **argv[]) {
WApplicationPrivate *priv;
const gchar *summary_text;
const gchar *description_text;
GError *error;
priv = application->priv;
if (priv->arg_dictionary_switch_data != NULL)
g... | w_application_parse_args | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_application_print_about(WApplication *application) {
GType type;
WApplication *v2;
char *v3;
const char *name;
type = w_application_get_type();
v2 = (WApplication *)g_type_check_instance_cast(application, type);
name = w_application_get_program_name(v2);
v3 = gettext("%s version %s");
printf(v... | void w_application_print_about(WApplication *application) {
const gchar *name;
name = w_application_get_program_name(W_APPLICATION(application));
printf(gettext("%s version %s"), name, VERSION);
printf("\n\n");
printf("Check for the latest updates at <http://gwaei.sourceforge.net/>\n");
printf("Code Copy... | w_application_print_about | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
gint w_application_run(WApplication *application, int *argc, char ***argv) {
int resolution;
GError *error;
WApplicationPrivate *priv;
gchar *text;
unsigned long v8;
v8 = __readfsqword(0x28u);
w_application_parse_args(application, argc, argv);
resolution = 0;
priv = application->priv;
error = 0;
... | gint w_application_run(WApplication *application, int *argc, char **argv[]) {
w_application_parse_args(application, argc, argv);
WApplicationPrivate *priv;
GError *error;
int resolution;
resolution = 0;
priv = application->priv;
error = NULL;
if (priv->arg_list_switch)
w_console_list(application)... | w_application_run | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_console_about(WApplication *app) {
printf("waei version %s", "3.6.2");
puts("\n");
puts("Check for the latest updates at <http://gwaei.sourceforge.net/>");
puts("Code Copyright (C) 2009-2011 Zachary Dovel\n");
puts("License:");
puts("Copyright (C) 2008 Free Software Foundation, Inc.\n"
"Licens... | void w_console_about(WApplication *app) {
printf("waei version %s", VERSION);
printf("\n\n");
printf("Check for the latest updates at <http://gwaei.sourceforge.net/>\n");
printf("Code Copyright (C) 2009-2011 Zachary Dovel\n\n");
printf("License:\n");
printf("Copyright (C) 2008 Free Software Foundation, I... | w_console_about | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_console_append_edict_result(WApplication *application,
LwSearch *search) {
gint cont;
gboolean color_switch;
LwResult *result;
result = (LwResult *)lw_search_get_result(search);
if (result) {
color_switch = w_application_get_color_switch(application);
cont = ... | static void w_console_append_edict_result(WApplication *application,
LwSearch *search) {
LwResult *result;
gboolean color_switch;
gint cont;
result = lw_search_get_result(search);
if (result == NULL)
return;
color_switch = w_application_get_color_switch(applic... | w_console_append_edict_result | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_console_append_examplesdict_result(WApplication *application,
LwSearch *search) {
char *v2;
char *v3;
char *v4;
gboolean color_switch;
LwResult *result;
if (search) {
result = (LwResult *)lw_search_get_result(search);
if (result) {
color_switch... | static void w_console_append_examplesdict_result(WApplication *application,
LwSearch *search) {
if (search == NULL)
return;
LwResult *result;
gboolean color_switch;
result = lw_search_get_result(search);
if (result == NULL)
return;
color_switch = w_... | w_console_append_examplesdict_result | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_console_append_kanjidict_result(WApplication *application,
LwSearch *search) {
const char *radicals;
char *v3;
const char *strokes;
char *v5;
const char *frequency;
char *v7;
const char *grade;
char *v9;
const char *jlpt;
char *v11;
const char *v12;
... | static void w_console_append_kanjidict_result(WApplication *application,
LwSearch *search) {
if (search == NULL)
return;
LwResult *result;
gboolean color_switch;
gboolean line_started;
result = lw_search_get_result(search);
if (result == NULL)
return;
... | w_console_append_kanjidict_result | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_console_append_result(WApplication *application, LwSearch *search) {
long v2;
long v3;
long v4;
long v5;
char *v6;
GType type;
if (application) {
if (search) {
type = search->dictionary->object.g_type_instance.g_class->g_type;
v2 = lw_edictionary_get_type();
if ((unsigned int... | void w_console_append_result(WApplication *application, LwSearch *search) {
g_return_if_fail(application != NULL);
g_return_if_fail(search != NULL);
GType type;
type = G_OBJECT_TYPE(search->dictionary);
if (g_type_is_a(type, LW_TYPE_EDICTIONARY))
w_console_append_edict_result(application, search);
e... | w_console_append_result | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
gboolean w_console_append_result_timeout(gpointer data) {
int v2;
gint chunk;
LwSearchStatus status;
WSearchData *sdata;
if (data) {
status = (unsigned int)lw_search_get_status(data);
sdata = (WSearchData *)lw_search_get_data(data);
chunk = 50;
if (status) {
while ((unsigned int)lw_sear... | gboolean w_console_append_result_timeout(gpointer data) {
g_return_val_if_fail(data != NULL, FALSE);
LwSearch *search;
LwSearchStatus status;
WSearchData *sdata;
gint chunk;
gboolean keep_appending;
search = LW_SEARCH(data);
status = lw_search_get_status(search);
sdata = W_SEARCHDATA(lw_search_get_... | w_console_append_result_timeout | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_console_append_unknowndict_result(WApplication *application,
LwSearch *search) {
LwResult *result;
if (search) {
result = (LwResult *)lw_search_get_result(search);
if (result) {
puts(result->text);
lw_result_free(result);
}
}
} | static void w_console_append_unknowndict_result(WApplication *application,
LwSearch *search) {
if (search == NULL)
return;
LwResult *result;
result = lw_search_get_result(search);
if (result == NULL)
return;
printf("%s\n", result->text);
lw_result_... | w_console_append_unknowndict_result | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_console_handle_error(WApplication *app, GError **error) {
if (error) {
if (*error) {
fprintf(stderr, "Error: %s\n", (*error)->message);
g_error_free(*error);
*error = 0;
}
}
} | void w_console_handle_error(WApplication *app, GError **error) {
if (error != NULL && *error != NULL) {
fprintf(stderr, "Error: %s\n", (*error)->message);
g_error_free(*error);
*error = NULL;
}
} | w_console_handle_error | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
gint w_console_install_dictionary(WApplication *application, GError **error) {
long name;
char *v4;
long v5;
long v6;
long v7;
char *v8;
gint resolution;
const char *install_switch_data;
LwDictionaryList *dictionarylist;
LwDictionary *dictionary;
gulong signalid;
if (error && *error)
return... | gint w_console_install_dictionary(WApplication *application, GError **error) {
if (error != NULL && *error != NULL)
return 1;
LwDictionaryList *dictionarylist;
LwDictionary *dictionary;
gint resolution;
gulong signalid;
const gchar *install_switch_data;
install_switch_data = w_application_get_insta... | w_console_install_dictionary | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_console_list(WApplication *app) {
w_console_print_available_dictionaries(app);
w_console_print_installable_dictionaries(app);
} | void w_console_list(WApplication *app) {
w_console_print_available_dictionaries(app);
w_console_print_installable_dictionaries(app);
} | w_console_list | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_console_no_result(WApplication *application, LwSearch *search) {
char *v2;
if (application && search && search->dictionary &&
search->status == LW_SEARCHSTATUS_IDLE && search->current &&
search == (LwSearch *)-68LL) {
w_application_get_color_switch(application);
if (!w_application_get_qu... | void w_console_no_result(WApplication *application, LwSearch *search) {
if (application == NULL || search == NULL || search->dictionary == NULL)
return;
if (search->status != LW_SEARCHSTATUS_IDLE || search->current == 0L ||
search->total_results > 0)
return;
gboolean color_switch;
gboolean quiet... | w_console_no_result | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_console_print_available_dictionaries(WApplication *application) {
char *v1;
long type;
const char *name;
char *v4;
gint i;
gint j;
GList *link;
LwDictionaryList *dictionarylist;
LwDictionary *dictionary;
const char *filename;
i = 0;
dictionarylist = w_application_get_installed_dictionary... | void w_console_print_available_dictionaries(WApplication *application) {
gint i;
gint j;
LwDictionaryList *dictionarylist;
LwDictionary *dictionary;
GList *link;
const gchar *filename;
i = 0;
j = 0;
dictionarylist = w_application_get_installed_dictionarylist(application);
link = lw_dictionarylist_... | w_console_print_available_dictionaries | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_console_print_installable_dictionaries(WApplication *application) {
char *v1;
LwDictionaryList *installable_dictionarylist;
long type;
const char *name;
char *v5;
gint i;
gint j;
GList *iter;
LwDictionary *dictionary;
const char *filename;
v1 = gettext("Installable dictionaries are:\n");
... | void w_console_print_installable_dictionaries(WApplication *application) {
printf(gettext("Installable dictionaries are:\n"));
gint i;
gint j;
GList *iter;
LwDictionaryList *dictionarylist;
LwDictionary *dictionary;
const gchar *filename;
i = 0;
dictionarylist = w_application_get_installable_diction... | w_console_print_installable_dictionaries | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
gint w_console_search(WApplication *application, GError **error) {
char *v3;
long name;
char *v5;
WSearchData *v6;
LwSearchFlags flags;
gboolean quiet_switch;
gint total_results;
gint total_relevant_results;
LwDictionaryList *dictionarylist;
const gchar *dictionary_switch_data;
const gchar *query_... | gint w_console_search(WApplication *application, GError **error) {
if (error != NULL && *error != NULL)
return FALSE;
WSearchData *sdata;
LwSearch *search;
LwDictionaryList *dictionarylist;
const gchar *dictionary_switch_data;
const gchar *query_text_data;
gboolean quiet_switch;
gboolean exact_sw... | w_console_search | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
gint w_console_uninstall_dictionary(WApplication *application, GError **error) {
long name;
char *v4;
gint resolution;
const char *uninstall_switch_data;
LwDictionaryList *dictionarylist;
LwDictionary *dictionary;
if (error && *error)
return 1;
uninstall_switch_data = w_application_get_uninstall_sw... | gint w_console_uninstall_dictionary(WApplication *application, GError **error) {
if (error != NULL && *error != NULL)
return 1;
LwDictionaryList *dictionarylist;
LwDictionary *dictionary;
gint resolution;
const gchar *uninstall_switch_data;
uninstall_switch_data = w_application_get_uninstall_switch_d... | w_console_uninstall_dictionary | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
gint w_console_uninstall_progress_cb(gdouble fraction, gpointer data) {
long v2;
long v3;
long v4;
long v5;
long v6;
gchar *path;
path = (gchar *)lw_dictionary_get_path(data, v4, v2, v3, v5, v6, data,
*(_QWORD *)&fraction, data);
if (path) {
printf("Removing... | gint w_console_uninstall_progress_cb(gdouble fraction, gpointer data) {
LwDictionary *dictionary;
gchar *path;
dictionary = data;
path = lw_dictionary_get_path(dictionary);
if (path != NULL) {
printf("Removing %s...\n", path);
g_free(path);
path = NULL;
}
return FALSE;
} | w_console_uninstall_progress_cb | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_console_update_progress_cb(LwDictionary *dictionary, gpointer data) {
gint stage_percent;
gchar *message;
stage_percent =
(int)(100.0 * lw_dictionary_installer_get_stage_progress(dictionary));
if (stage_percent <= 99 && group_index_changed) {
group_index_changed = 0;
putchar(10);
} else ... | void w_console_update_progress_cb(LwDictionary *dictionary, gpointer data) {
gchar *message;
gdouble stage_fraction;
gint stage_percent;
stage_fraction = lw_dictionary_installer_get_stage_progress(dictionary);
stage_percent = (gint)(100.0 * stage_fraction);
if (stage_percent < 100 && _group_index_changed... | w_console_update_progress_cb | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
void w_searchdata_free(WSearchData *sdata) { g_free(sdata); } | void w_searchdata_free(WSearchData *sdata) { g_free(sdata); } | w_searchdata_free | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
WSearchData *w_searchdata_new(GMainLoop *loop, WApplication *application) {
WSearchData *temp;
if (!loop || !application)
g_assertion_message_expr(0, "search-data.c", 41, "w_searchdata_new",
"loop != NULL && application != NULL");
temp = (WSearchData *)g_malloc_n(1, 24);
if (te... | WSearchData *w_searchdata_new(GMainLoop *loop, WApplication *application) {
g_assert(loop != NULL && application != NULL);
WSearchData *temp;
temp = g_new(WSearchData, 1);
if (temp != NULL) {
temp->loop = loop;
temp->application = application;
temp->less_relevant_header_set = FALSE;
}
retur... | w_searchdata_new | gwaei-3.6.2 | app-dicts | O0/app-dicts/gwaei-3.6.2/waei | ida | O0 |
int ydpdict_append(char **buf, int *len, const char *str) {
int len1;
int len2;
char *tmp;
len1 = strlen(*buf);
len2 = strlen(str);
if (*len <= len1 + len2) {
while (*len <= len1 + len2)
*len *= 2;
tmp = (char *)realloc(*buf, *len);
if (!tmp) {
free(*buf);
return -1;
}
... | static int ydpdict_append(char **buf, int *len, const char *str) {
int len1, len2;
char *tmp;
len1 = strlen(*buf);
len2 = strlen(str);
if (len1 + len2 > *len - 1) {
while (len1 + len2 > *len - 1)
*len <<= 1;
if (!(tmp = realloc(*buf, *len))) {
free(*buf);
return -1;
}
*bu... | ydpdict_append | libydpdict-1.0.4 | app-dicts | O0/app-dicts/libydpdict-1.0.4/libydpdict.so.2.2.0 | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.