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 |
|---|---|---|---|---|---|---|---|
int open_snd() {
int *v1;
char *v2;
int i;
const char *ext;
const char *snd_tstr[4];
open_snd_ext_t snd_ext_tab[6];
unsigned long v7;
v7 = __readfsqword(0x28u);
snd_ext_tab[0].type = TYPE_WAV;
snd_ext_tab[0].extension = "wav";
snd_ext_tab[1].type = TYPE_AU;
snd_ext_tab[1].extension = "au";
sn... | static int open_snd(void) {
char *ext;
typedef struct {
type_t type;
const char *extension;
} ext_t;
int i;
ext_t snd_ext_tab[] = {{TYPE_WAV, "wav"}, {TYPE_AU, "au"},
{TYPE_AU, "snd"}, {TYPE_AIFF, "aif"},
{TYPE_AIFF, "aiff"}, {0, NULL}};
const... | open_snd | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
void out_2_pix() {
int v0;
int v1;
int v2;
int idx;
int i;
int w;
int y;
int h;
int bits;
int x;
int inv;
int ix;
int fx;
int px;
libspectrum_byte *bitmap;
libspectrum_byte *attr;
unsigned long v16;
v16 = __readfsqword(0x28u);
x = frm_slice_x;
y = frm_slice_y;
inv = ((frm_rte ... | static void out_2_pix(void) {
libspectrum_byte *bitmap, *attr;
int i, w, idx;
int x = frm_slice_x, y = frm_slice_y, h = frm_slice_h;
int inv = (frame_no * frm_rte % 32) > 15 ? 1 : 0;
w = frm_slice_w;
for (h = frm_slice_h; h > 0; h--, y++, w = frm_slice_w) {
if (scr_t != HIRES)
idx = y * OUT_PITCH... | out_2_pix | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
void out_finalize_avi() {
int v0;
int v1;
int v2;
int v3;
int v4;
int v5;
int v6;
int v7;
int v8;
int v9;
int v10;
int v11;
int pos1;
long pos2;
int pos2a;
size_t len;
char buff[4096];
unsigned long v17;
v17 = __readfsqword(0x28u);
if (out_to_stdout) {
if (verbose > 0)
... | void out_finalize_avi(void) {
char buff[4096];
long pos1, pos2;
if (out_to_stdout) {
printi(1, "out_finalize_avi(): cannot finalize output on stdout.\n");
return;
}
fflush(ifile);
pos1 = ftell(out);
pos2 = ftell(ifile);
WSTRING("idx1");
WDWORD(pos2);
rewind(ifile);
while (!feof(ifile)) {... | out_finalize_avi | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int out_write_avi() {
int v1;
int v2;
int v3;
int v4;
int v5;
int v6;
int v7;
int v8;
int v9;
int v10;
int v11;
int v12;
int v13;
int v14;
int v15;
int v16;
int v17;
int v18;
int v19;
int v20;
int *v21;
char *v22;
int *v23;
char *v24;
int err;
int erra;
long pos1;
... | int out_write_avi(void) {
int err;
FILE *tmp;
long pos1, pos2;
static int avi_seq_no = 1;
if (!out_header_ok && (err = out_write_aviheader()))
return err;
if (!out_to_stdout)
pos1 = ftell(out);
else
pos1 = 0;
#ifdef USE_LIBJPEG
if (avi_subtype != TYPE_AVI_DIB) {
err = out_build_avi_mj... | out_write_avi | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int out_write_aviheader() {
int v0;
size_t v1;
int *v3;
char *v4;
int v5;
int v6;
int v7;
int v8;
int v9;
int v10;
int v11;
int v12;
int v13;
int v14;
int v15;
int v16;
int v17;
int v18;
int v19;
int v20;
int v21;
int v22;
int v23;
int v24;
int v25;
int v26;
int v27... | fwrite(buffer, 16, 1, out)
static int out_write_aviheader(void) {
int diBitCount;
#ifdef USE_LIBJPEG
if (avi_subtype != TYPE_AVI_DIB)
diBitCount = 16, vid_stream_id = 0x63643030;
else
#endif
diBitCount = 8 * (greyscale ? 1 : 3), vid_stream_id = 0x62643030;
if (!out_to_stdout) {
if (!(idx_name... | out_write_aviheader | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int out_write_frame() {
int add_frame;
int n;
int err;
int erra;
int errb;
int errc;
int errd;
add_frame = 0;
n = -fmf_fps_2 / inp_fps;
if (fmf_fps_2 <= 0) {
if (!cut_cut)
goto LABEL_33;
++drop_no;
if (verbose > 1)
fwrite("*INF out_write_frame(): cut this frame.\n", 1u, 0x28... | static int out_write_frame(void) {
static int fmf_fps = 0;
int err;
int add_frame = 0;
int n = -fmf_fps / inp_fps;
if (fmf_fps > 0) {
drop_no++;
printi(2, "out_write_frame(): drop this frame.\n");
} else if (cut_cut) {
drop_no++;
printi(2, "out_write_frame(): cut this frame.\n");
retur... | out_write_frame | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int out_write_ppm() {
int v0;
if (greyscale)
fprintf(out, "P5\n");
else
fprintf(out, "P6\n");
fprintf(out,
"#ZX Spectrum screenshot created by fmfconv: "
"http://fuse-emulator.sourceforge.net/\n%d %d 255\n",
frm_w, frm_h);
if (greyscale)
v0 = 1;
else
v0 = 3;
... | int out_write_ppm(void) {
fprintf(out, (greyscale ? "P5\n" : "P6\n"));
fprintf(out,
"#ZX Spectrum screenshot created by fmfconv: "
"http://fuse-emulator.sourceforge.net/\n"
"%d %d 255\n",
frm_w, frm_h);
if (fwrite(pix_rgb, frm_w * frm_h * (greyscale ? 1 : 3), 1, out) != 1)... | out_write_ppm | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int out_write_scr() {
int i;
int ia;
for (i = 0; i <= 191; ++i) {
if (fwrite(&zxscr[screl_start[i]], 0x20u, 1u, out) != 1)
return 11;
}
for (ia = 0; ia <= 23; ++ia) {
if (fwrite(&attrs[attrb_start[ia]], 0x20u, 1u, out) != 1)
return 11;
}
if (verbose > 1)
fwrite("*INF out_write_scr... | int out_write_scr(void) {
int i;
for (i = 0; i < 192; i++) {
if (fwrite(zxscr + screl_start[i], 32, 1, out) != 1)
return ERR_WRITE_OUT;
}
for (i = 0; i < 24; i++) {
if (fwrite(attrs + attrb_start[i], 32, 1, out) != 1)
return ERR_WRITE_OUT;
}
printi(2, "out_write_scr()\n");
return 0;... | out_write_scr | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int out_write_yuv() {
int err;
if (!out_header_ok) {
err = out_write_yuvheader();
if (err)
return err;
}
fwrite("FRAME\n", 1u, 6u, out);
if (fwrite(pix_yuv[0], yuv_ylen, 1u, out) != 1)
return 11;
if (!greyscale) {
if (yuv_t == TYPE_444) {
if (fwrite(pix_yuv[1], yuv_ylen, 1u, out... | int out_write_yuv(void) {
int err;
if (!out_header_ok && (err = out_write_yuvheader()))
return err;
fprintf(out, "FRAME\n");
if (fwrite(pix_yuv[0], yuv_ylen, 1, out) != 1)
return ERR_WRITE_OUT;
if (!greyscale) {
if (yuv_t != TYPE_444) {
uv_subsample();
if (fwrite(pix_uv[0], yuv_uvlen... | out_write_yuv | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int out_write_yuvheader() {
const char *yuv4mpeg2[7];
unsigned long v2;
v2 = __readfsqword(0x28u);
yuv4mpeg2[0] = "444";
yuv4mpeg2[1] = "422";
yuv4mpeg2[2] = "420jpeg";
yuv4mpeg2[3] = "420mpeg2";
yuv4mpeg2[4] = "420";
yuv4mpeg2[5] = "410";
yuv4mpeg2[6] = "mono";
if (greyscale)
yuv_t = TYPE_mo... | static int out_write_yuvheader(void) {
const char *yuv4mpeg2[] = {"444", "422", "420jpeg", "420mpeg2",
"420", "410", "mono"};
if (greyscale)
yuv_t = TYPE_mono;
fprintf(out,
"YUV4MPEG2"
" W%d H%d F%d:1000 Ip A%c:1 C%s\n",
frm_w, frm_h, out_fps, (scr_t... | out_write_yuvheader | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int parse_args(int argc, char **argv) {
int result;
int v3;
int v4;
int v5;
char t;
int i;
int c;
int fd;
option long_options[27];
unsigned long v11;
v11 = __readfsqword(0x28u);
qmemcpy(long_options, &off_144C0, sizeof(long_options));
while (1) {
while (1) {
while (1) {
whil... | static int parse_args(int argc, char *argv[]) {
struct option long_options[] = {{"input", 1, NULL, 'i'},
{"output", 1, NULL, 'o'},
{"sound", 1, NULL, 's'},
{"overwrite", 0, NULL, 'y'},
... | parse_args | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int parse_outname() {
size_t v0;
char *v1;
int n;
int len;
const char *f;
const char *perc;
char *ext;
char c1[2];
char c2[2];
unsigned long v10;
v10 = __readfsqword(0x28u);
f = out_name;
perc = out_name;
out_orig = out_name;
while (f && *f) {
while (1) {
perc = strchr(f, 37);
... | static int parse_outname(void) {
const char *f = out_name, *perc;
char c1[2], c2[2];
int n, len;
perc = f;
out_orig = out_name;
while (f && *f) {
while ((perc = strchr(f, '%')) != NULL && *(perc + 1) == '%') {
f = perc + 1;
}
f = perc;
if (!f)
break;
if (sscanf(perc, "%%%1[0... | parse_outname | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
void pcm_swap_endian() {
int len;
libspectrum_word *s;
len = snd_len / 2;
s = (libspectrum_word *)sound16;
while (len > 0) {
*s = (*s << 8) | HIBYTE(*s);
++s;
--len;
}
if (verbose > 2)
fprintf(stderr, "*INF pcm_swap_endian(): %d sample converted\n",
snd_len / 2);
} | void pcm_swap_endian(void) {
libspectrum_word *s;
int len = snd_len / 2;
for (s = (void *)sound16; len > 0; len--) {
*s = ((*s & 0x00ff) << 8) | (*s >> 8);
s++;
}
printi(3, "pcm_swap_endian(): %d sample converted\n", snd_len / 2);
} | pcm_swap_endian | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
void pix_pix(int *idx, int xx, int i) {
if (out_t <= TYPE_AVI) {
if (out_t > TYPE_SCR) {
if (png_palette <= 0) {
if (greyscale) {
pix_rgb[*idx] = yuv_pal[3 * xx];
} else {
pix_rgb[(*idx)++] = rgb_pal[3 * xx];
pix_rgb[(*idx)++] = rgb_pal[3 * xx + 1];
pi... | static void pix_pix(int *idx, int xx, int i) {
if (out_t >= TYPE_YUV) {
pix_yuv[0][*idx] = yuv_pal[xx * 3 + 0];
if (!greyscale) {
pix_yuv[1][*idx] = yuv_pal[xx * 3 + 1];
pix_yuv[2][*idx] = yuv_pal[xx * 3 + 2];
}
(*idx)++;
} else if (out_t >= TYPE_PPM) {
if (png_palette > 0) {
i... | pix_pix | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
void prepare_next_file() {
if (input_no <= input_last_no)
++input_no;
else
do_now = DO_EOP;
} | static void prepare_next_file(void) {
if (input_no > input_last_no)
do_now = DO_EOP;
else
input_no++;
} | prepare_next_file | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
void print_help() {
printf(
"\n"
"Usage: %s [OPTION]... [infile [outfile [soundfile]]]\n"
"Converts Fuse movie files to different multimedia files.\n"
"\n"
"Options:\n"
"\n"
" -i --input <filename> Input file.\n"
" -o --output <filename> Output file.\n"
... | static void print_help(void) {
printf(
"\n"
"Usage: %s [OPTION]... [infile [outfile [soundfile]]]\n"
"Converts Fuse movie files to different multimedia files.\n"
"\n"
"Options:\n"
"\n"
" -i --input <filename> Input file.\n"
" -o --output <filename> Output... | print_help | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
void print_progress(int force) {
int perc;
long npos;
if (inp_ftell) {
npos = ftell(inp_file);
if (npos > fpos_1) {
perc = 1009 * npos / inp_ftell / 10;
if (force || perc != last_perc_0) {
if (perc > 100)
perc = 100;
switch (prg_t) {
case TYPE_PERC:
... | static void print_progress(int force) {
static long int fpos = 0;
long int npos;
int perc;
static int last_perc = -1;
const char *bar = "##########################################################"
"####################";
const char *spc = " ... | print_progress | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
void print_version() {
puts("fmfconv (fuse-utils 1.4.3) 0.5\n"
"Copyright (c) 2004-2005 Gergely Szasz\n"
"License GPLv2+: GNU GPL version 2 or later "
"<http://gnu.org/licenses/gpl.html>\n"
"This is free software: you are free to change and redistribute it.\n"
"There is NO WARRANTY,... | static void print_version(void) {
printf(PROGRAM_NAME
" (" PACKAGE " " PACKAGE_VERSION ") " FMFCONV_VER_STRING "\n"
"Copyright (c) 2004-2005 Gergely Szasz\n"
"License GPLv2+: GNU GPL version 2 or later "
"<http://gnu.org/licenses/gpl.html>\n"
"This is free software: you ar... | print_version | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int resample_sound() {
_BYTE *v2;
int nsamples;
int err;
int n;
libspectrum_signed_byte *snd8_w;
libspectrum_signed_byte *snd8_r;
libspectrum_signed_word *snd16_w;
libspectrum_signed_word *snd16_r;
unsigned long new_len;
size_t new_lena;
if (snd_t == TYPE_NONE)
return 0;
snd16_w = sound16;
... | static int resample_sound(void) {
int err, nsamples;
static int fmf_rte = -1;
static int snd_cpy = 0;
static int last_l = 0, last_r = 0;
size_t new_len;
libspectrum_signed_byte *snd8_w, *snd8_r;
libspectrum_signed_word *snd16_w, *snd16_r;
if (snd_t == TYPE_NONE)
return 0;
snd16_r = snd16_w = sou... | resample_sound | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
void setup_frame_wh(libspectrum_byte screen_type) {
scr_t = get_screen_type(screen_type);
if (scr_t == HIRES) {
if (frm_w != 640) {
frm_w = 640;
frm_h = 480;
pix_yuv[1] = &pix_rgb[307200];
pix_yuv[2] = &pix_rgb[614400];
}
} else if (frm_w != 320) {
frm_w = 320;
frm_h = 240;... | static void setup_frame_wh(libspectrum_byte screen_type) {
if ((scr_t = get_screen_type(screen_type)) == HIRES) {
if (frm_w != 640) {
frm_w = 640;
frm_h = 480;
pix_yuv[1] = &pix_rgb[640 * 480];
pix_yuv[2] = &pix_rgb[640 * 480 * 2];
}
} else {
if (frm_w != 320) {
frm_w = 320... | setup_frame_wh | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
void snd_finalize_aiff() {
long v0;
long v1;
long v2;
unsigned int v3;
long pos;
long posa;
long posb;
long dsz;
libspectrum_byte buff[4];
unsigned long v9;
v9 = __readfsqword(0x28u);
pos = ftell(snd);
if (fseek(snd, 4, 0) == -1) {
if (aifc)
v0 = 99;
else
v0 = 102;
fpr... | void snd_finalize_aiff(void) {
libspectrum_byte buff[4];
long pos = ftell(snd);
long dsz = pos;
if (fseek(snd, AIFF_POS_FILELEN, SEEK_SET) == -1) {
printw("snd_finalize_aif%c(): cannot finalize sound output file (not "
"seekable).\n",
aifc ? 'c' : 'f');
} else {
pos -= 8;
bu... | snd_finalize_aiff | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
void snd_finalize_au() {
libspectrum_dword len;
long pos;
unsigned long v2;
v2 = __readfsqword(0x28u);
pos = ftell(snd);
if (fseek(snd, 8, 0) == -1) {
if (verbose > 1)
fwrite("*INF snd_finalize_au(): cannot finalize sound output file (not "
"seekable).\n",
1u, 0x4Au, std... | void snd_finalize_au(void) {
libspectrum_dword len;
long pos = ftell(snd);
if (fseek(snd, 8, SEEK_SET) == -1) {
printi(2, "snd_finalize_au(): cannot finalize sound output file (not "
"seekable).\n");
} else {
#ifdef WORDS_BIGENDIAN
len = pos - 24 - 64;
#else
len = swap_endian_dword(po... | snd_finalize_au | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
void snd_finalize_wav() {
long pos;
long posa;
long dsz;
long dsza;
libspectrum_byte buff[4];
unsigned long v5;
v5 = __readfsqword(0x28u);
pos = ftell(snd);
dsz = pos;
if (fseek(snd, 4, 0) == -1) {
fwrite("*WRN snd_finalize_wav(): cannot finalize sound output file (not "
"seekable).\... | void snd_finalize_wav(void) {
libspectrum_byte buff[4];
long pos = ftell(snd);
long dsz = pos;
if (fseek(snd, WAV_POS_FILELEN, SEEK_SET) == -1) {
printw("snd_finalize_wav(): cannot finalize sound output file (not "
"seekable).\n");
} else {
if (pos & 1) {
buff[0] = 0;
fwrite(bu... | snd_finalize_wav | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int snd_write_aiff() {
long v1;
int err;
if (!snd_header_ok) {
err = snd_write_aiffheader();
if (err)
return err;
}
if (snd_enc == PCM && snd_little_endian)
pcm_swap_endian();
if (fwrite(sound8, snd_len, 1u, snd) != 1)
return 12;
if (verbose > 1) {
if (aifc)
v1 = 99;
e... | int snd_write_aiff(void) {
int err;
if (!snd_header_ok && (err = snd_write_aiffheader()))
return err;
if (snd_enc == PCM && snd_little_endian) {
pcm_swap_endian();
}
if (fwrite(sound8, snd_len, 1, snd) != 1)
return ERR_WRITE_SND;
printi(2, "snd_write_aif%c(): %d samples (%d bytes) sound\n",
... | snd_write_aiff | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int snd_write_aiffheader() {
const char *v0;
unsigned int v1;
libspectrum_byte buff[10];
unsigned long v4;
v4 = __readfsqword(0x28u);
if (force_aifc || snd_enc)
aifc = 1;
if (aifc)
fwrite(&unk_115F0, 0x14u, 1u, snd);
else
fwrite(&unk_11605, 0x14u, 1u, snd);
if (snd_chn == 2)
fwrite(&u... | static int snd_write_aiffheader(void) {
libspectrum_byte buff[10];
if (force_aifc || snd_enc != PCM)
aifc = 1;
if (aifc)
fwrite("FORM\377\377\377\377AIFCCOMM\000\000\000\046", 20, 1, snd);
else
fwrite("FORM\377\377\377\377AIFFCOMM\000\000\000\022", 20, 1, snd);
if (snd_chn == 2)
fwrite("\00... | snd_write_aiffheader | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int snd_write_au() {
int err;
if (!snd_header_ok) {
err = snd_write_auheader();
if (err)
return err;
}
if (snd_enc == PCM && snd_little_endian)
pcm_swap_endian();
if (fwrite(sound8, snd_len, 1u, snd) != 1)
return 12;
if (verbose > 1)
fprintf(stderr, "*INF snd_write_au(): %d sample... | int snd_write_au(void) {
int err;
if (!snd_header_ok && (err = snd_write_auheader()))
return err;
if (snd_enc == PCM && snd_little_endian) {
pcm_swap_endian();
}
if (fwrite(sound8, snd_len, 1, snd) != 1)
return ERR_WRITE_SND;
printi(2, "snd_write_au(): %d samples (%d bytes) sound\n", snd_len /... | snd_write_au | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int snd_write_auheader() {
libspectrum_dword v0;
const char *v1;
libspectrum_dword buff[6];
char zeros[7];
char str[88];
unsigned long v6;
v6 = __readfsqword(0x28u);
strcpy(str, "ZX Spectrum audio created by fmfconv: "
"http://fuse-emulator.sourceforge.net/");
buff[0] = swap_endian_dwor... | static int snd_write_auheader(void) {
const char str[] = "ZX Spectrum audio created by fmfconv: "
"http://fuse-emulator.sourceforge.net/";
size_t len = sizeof(str);
int padding = len % 8;
libspectrum_dword buff[6];
#ifdef WORDS_BIGENDIAN
buff[0] = 0x2e736e64UL;
buff[1] = 24 + 64;
buf... | snd_write_auheader | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int snd_write_avi() {
int v1;
int v2;
int v3;
int v4;
int v5;
int v6;
int v7;
int v8;
int v9;
int v10;
int v11;
int v12;
int v13;
int v14;
int v15;
int v16;
int v17;
int v18;
int v19;
int v20;
int err;
int pos1;
FILE *tmp;
if (!out_header_ok) {
err = out_write_avihea... | int snd_write_avi(void) {
int err;
FILE *tmp;
long pos1;
if (!out_header_ok && (err = out_write_aviheader()))
return err;
if (snd_enc == PCM && !snd_little_endian) {
pcm_swap_endian();
}
if (!out_to_stdout)
pos1 = ftell(out);
else
pos1 = 0;
W2DWORD(0x62773130, snd_len);
if (fwrite... | snd_write_avi | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int snd_write_sound() {
int err;
if (snd_len <= 0)
return 0;
if (snd_enc) {
if (sound_pcm) {
err = law_2_pcm();
if (err)
return err;
}
}
if (snd_chn == 2 && !sound_stereo) {
err = stereo_2_mono();
if (err)
return err;
}
if (snd_rte != out_rte || snd_frg) {
... | static int snd_write_sound(void) {
int err;
if (snd_len <= 0)
return 0;
if (snd_enc != PCM && sound_pcm && (err = law_2_pcm()))
return err;
if (snd_chn == 2 && sound_stereo == 0 && (err = stereo_2_mono()))
return err;
if ((snd_rte != out_rte || snd_frg) && (err = resample_sound()))
return er... | snd_write_sound | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int snd_write_wav() {
int err;
if (!snd_header_ok) {
err = snd_write_wavheader();
if (err)
return err;
}
if (snd_enc == PCM && !snd_little_endian)
pcm_swap_endian();
if (fwrite(sound8, snd_len, 1u, snd) != 1)
return 12;
if (verbose > 1)
fprintf(stderr, "*INF snd_write_wav(): %d sa... | int snd_write_wav(void) {
int err;
if (!snd_header_ok && (err = snd_write_wavheader()))
return err;
if (snd_enc == PCM && !snd_little_endian) {
pcm_swap_endian();
}
if (fwrite(sound8, snd_len, 1, snd) != 1)
return ERR_WRITE_SND;
printi(2, "snd_write_wav(): %d samples (%d bytes) sound\n", snd_l... | snd_write_wav | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int snd_write_wavheader() {
const char *v0;
libspectrum_byte buff[4];
unsigned long v3;
v3 = __readfsqword(0x28u);
fwrite(&unk_11DB0, 0x10u, 1u, snd);
if (snd_enc) {
if (snd_enc == ALW)
fwrite(&unk_11DC8, 6u, 1u, snd);
else
fwrite(&unk_11DCF, 6u, 1u, snd);
} else {
fwrite(&unk_11D... | static int snd_write_wavheader(void) {
libspectrum_byte buff[4];
int tmp;
fwrite("RIFF\377\377\377\377WAVEfmt ", 16, 1, snd);
if (snd_enc == PCM)
fwrite("\020\000\000\000\001\000", 6, 1, snd);
else if (snd_enc == ALW)
fwrite("\022\000\000\000\006\000", 6, 1, snd);
else
fwrite("\022\000\000\000... | snd_write_wavheader | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int stereo_2_mono() {
libspectrum_signed_word *s;
libspectrum_signed_word *sa;
libspectrum_signed_word *t;
libspectrum_signed_byte *s_0;
libspectrum_signed_byte *s_0a;
libspectrum_signed_byte *t_0;
libspectrum_signed_word *buff_end;
libspectrum_signed_word *buff_enda;
if (snd_t == TYPE_NONE)
retu... | static int stereo_2_mono(void) {
void *buff_end;
if (snd_t == TYPE_NONE)
return 0;
sound8 += snd_frg;
sound16 = (void *)sound8;
if (snd_enc == PCM) {
libspectrum_signed_word *s;
libspectrum_signed_word *t;
buff_end = sound16 + snd_len / 2;
for (s = t = sound16; (void *)s < buff_end; s++,... | stereo_2_mono | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
libspectrum_dword swap_endian_dword(libspectrum_dword d) {
return (d >> 8) & 0xFF00 | (d << 8) & 0xFF0000 | (d << 24) | HIBYTE(d);
} | libspectrum_dword swap_endian_dword(libspectrum_dword d) {
return ((d & 0x000000ff) << 24) | ((d & 0x0000ff00) << 8) |
((d & 0x00ff0000) >> 8) | (d >> 24);
} | swap_endian_dword | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
void uv_subsample() {
libspectrum_byte *v0;
libspectrum_byte *v1;
libspectrum_byte *v2;
libspectrum_byte *v3;
libspectrum_byte *v4;
libspectrum_byte *v5;
int v6;
int v7;
libspectrum_byte *v8;
libspectrum_byte *v9;
int v10;
int v11;
libspectrum_byte *v12;
libspectrum_byte *v13;
libspectrum_... | static void uv_subsample(void) {
libspectrum_byte *u, *v, *u_out, *v_out;
int i, j;
u_out = pix_uv[0];
v_out = pix_uv[1];
if (yuv_t == TYPE_444) {
yuv_uvlen = yuv_ylen;
} else if (yuv_t == TYPE_420J) {
for (j = 0; j < frm_h; j += 2) {
u = &pix_yuv[1][j * frm_w];
for (i = 0; i < frm_w;... | uv_subsample | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/fmfconv | ida | O0 |
int bind_device_ex(DEVBLK *dev, char *spec, ONCONNECT fn, void *arg) {
int v6;
bind_struct *bs;
bind_struct *v9;
bind_struct *v10;
char *v11;
int v12;
_LIST_ENTRY *Blink;
LIST_ENTRY *Flink;
int *v15;
int v16;
char *v17;
_LIST_ENTRY *v18;
_LIST_ENTRY *v19;
int sd;
BYTE c;
unsigned long v2... | int bind_device_ex(DEVBLK *dev, char *spec, ONCONNECT fn, void *arg) {
bind_struct *bs;
int was_list_empty;
if (!init_done)
init_sockdev();
if (sysblk.shutdown)
return 0;
logdebug("bind_device (%4.4X, %s)\n", dev->devnum, spec);
if (dev->bs) {
logmsg(_("HHCSD001E Device %4.4X already bound t... | bind_device_ex | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/hdt1403.so | ida | O0 |
int onconnect_callback(DEVBLK *dev) {
int v1;
int result;
int *v3;
char *v4;
TID tid[5];
tid[1] = __readfsqword(0x28u);
v1 = ptt_pthread_create(tid, &sysblk[368], spthread, dev, 0, "printer.c:209");
result = 1;
if (v1) {
v3 = __errno_location();
v4 = strerror(*v3);
logmsg("HHCPR015E Creat... | static int onconnect_callback(DEVBLK *dev) {
TID tid;
if (create_thread(&tid, DETACHED, spthread, dev, NULL)) {
logmsg(_("HHCPR015E Create spthread failed for %4.4X: errno=%d: %s\n"),
dev->devnum, errno, strerror(errno));
return 0;
}
return 1;
} | onconnect_callback | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/hdt1403.so | ida | O0 |
int open_printer(DEVBLK *dev) {
__pid_t v3;
pid_t v4;
int devnum;
__pid_t v6;
int v7;
int v8;
int v9;
int v10;
__pid_t v11;
int v12;
int v13;
int *v14;
char *v15;
int *v16;
char *v17;
int *v18;
char *v19;
int *v20;
char *v21;
int *v22;
char *v23;
int pipefd[2];
char pathnam... | static int open_printer(DEVBLK *dev) {
pid_t pid;
char pathname[MAX_PATH];
int open_flags;
#if !defined(_MSVC_)
int pipefd[2];
int rc;
#endif
if (!dev->ispiped) {
int fd;
if (dev->bs)
return (dev->fd < 0 ? -1 : 0);
hostpath(pathname, dev->filename, sizeof(pathname));
open_flags = O_... | open_printer | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/hdt1403.so | ida | O0 |
int printer_close_device(DEVBLK *dev) {
int fd;
char v3;
fd = dev->fd;
if (fd == -1)
return 0;
v3 = *((_BYTE *)dev + 5812);
dev->fd = -1;
*((_BYTE *)dev + 5812) = v3 & 0xEF;
if ((v3 & 8) != 0) {
close(fd);
dev->ptpcpid = 0;
return 0;
} else {
if (dev->bs) {
close(fd);
... | static int printer_close_device(DEVBLK *dev) {
int fd = dev->fd;
if (fd == -1)
return 0;
dev->fd = -1;
dev->stopprt = 0;
if (dev->ispiped) {
#if !defined(_MSVC_)
close_pipe(fd);
#else
close(fd);
logmsg(_("HHCPR011I pipe receiver (pid=%d) terminating for %4.4X\n"),
dev->ptpcpid, ... | printer_close_device | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/hdt1403.so | ida | O0 |
void printer_execute_ccw(DEVBLK *dev, BYTE code, BYTE flags, BYTE chained,
U16 count, BYTE prevcode, int ccwseq, BYTE *iobuf,
BYTE *more, BYTE *unitstat, U16 *residual) {
BYTE *v16;
BYTE *v17;
U16 *v18;
int v19;
int v20;
U32 numdevid;
U32 v22;
char v23;
... | static void printer_execute_ccw(DEVBLK *dev, BYTE code, BYTE flags,
BYTE chained, U16 count, BYTE prevcode,
int ccwseq, BYTE *iobuf, BYTE *more,
BYTE *unitstat, U16 *residual) {
int rc = 0;
int i;
int num;
char *eor;... | printer_execute_ccw | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/hdt1403.so | ida | O0 |
int printer_init_handler(DEVBLK *dev, int argc, char **argv) {
int v3;
DEVBLK *v5;
char *v6;
bool v7;
short v8;
long i;
long v10;
const char **v11;
int v12;
int v13;
const char *v14;
int *v15;
DEVBLK *v16;
unsigned int v17;
char v19;
U16 devtype;
short v21;
short v22;
int *v23;
i... | static int printer_init_handler(DEVBLK *dev, int argc, char *argv[]) {
int iarg, i, j;
char *ptr;
char *nxt;
int sockdev = 0;
if (dev->bs && !unbind_device_ex(dev, 1))
return -1;
if (argc == 0 || strlen(argv[0]) > sizeof(dev->filename) - 1) {
logmsg(_("HHCPR001E File name missing or invalid for pr... | printer_init_handler | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/hdt1403.so | ida | O0 |
void printer_query_device(DEVBLK *dev, char **a2, int buflen, char *buffer) {
char v5;
const char *v6;
const char *v7;
const char *v8;
const char *v9;
const char *v10;
const char *v11;
if (a2) {
*a2 = "PRT";
if (dev) {
if (buflen && buffer) {
v5 = *((_BYTE *)dev + 5812);
v... | static void printer_query_device(DEVBLK *dev, char **class, int buflen,
char *buffer) {
BEGIN_DEVICE_CLASS_QUERY("PRT", dev, class, buflen, buffer);
snprintf(buffer, buflen, "%s%s%s%s%s%s%s", dev->filename,
(dev->bs ? " sockdev" : ""), (dev->crlf ? " crlf" : ""),
... | printer_query_device | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/hdt1403.so | ida | O0 |
void *socket_thread(void *arg) {
__pid_t v1;
pthread_t v2;
int *v3;
int v4;
long v5;
int v6;
int v7;
int v8;
int v9;
char *v11;
BYTE c;
fd_set sockset;
unsigned long v14;
v14 = __readfsqword(0x28u);
v1 = getpid();
v2 = pthread_self();
logmsg("HHCSD020I Socketdevice listener thread sta... | void *socket_thread(void *arg) {
int rc;
fd_set sockset;
int maxfd = 0;
int select_errno;
int exit_now;
UNREFERENCED(arg);
logmsg(_("HHCSD020I Socketdevice listener thread started: "
"tid=" TIDPAT ", pid=%d\n"),
thread_id(), getpid());
for (;;) {
FD_ZERO(&sockset);
maxfd ... | socket_thread | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/hdt1403.so | ida | O0 |
void *spthread(DEVBLK *dev) {
int devnum;
int fd;
long v3;
long v4;
long v5;
int v6;
int v7;
int v8;
BYTE byte;
timeval tv;
fd_set readset;
fd_set errorset;
char thread_name[40];
unsigned long v15;
devnum = dev->devnum;
fd = dev->fd;
v15 = __readfsqword(0x28u);
thread_name[31] = 0;
... | static void *spthread(DEVBLK *dev) {
BYTE byte;
fd_set readset, errorset;
struct timeval tv;
int rc, fd = dev->fd;
{
char thread_name[32];
thread_name[sizeof(thread_name) - 1] = 0;
snprintf(thread_name, sizeof(thread_name) - 1, "spthread %4.4X",
dev->devnum);
SET_THREAD_NAME(thre... | spthread | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/hdt1403.so | ida | O0 |
void term_sockdev(void *arg) {
int *v1;
int v2;
int *v3;
BYTE c;
unsigned long v5;
v5 = __readfsqword(0x28u);
if (!init_done) {
bind_head.Blink = &bind_head;
bind_head.Flink = &bind_head;
ptt_pthread_mutex_init(&bind_lock, 0, "sockdev.c:47");
hdl_adsc("term_sockdev", term_sockdev, 0);
... | static void term_sockdev(void *arg) {
UNREFERENCED(arg);
if (!init_done)
init_sockdev();
SIGNAL_SOCKDEV_THREAD();
join_thread(sysblk.socktid, NULL);
detach_thread(sysblk.socktid);
} | term_sockdev | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/hdt1403.so | ida | O0 |
int unbind_device_ex(DEVBLK *dev, int forced) {
bind_struct *bs;
int fd;
bind_struct *v5;
int devnum;
_LIST_ENTRY *Flink;
_LIST_ENTRY *Blink;
int *v9;
int v10;
int *v11;
int sd;
char *clientname;
char *clientip;
BYTE c;
unsigned long v17;
bs = dev->bs;
v17 = __readfsqword(0x28u);
if (... | int unbind_device_ex(DEVBLK *dev, int forced) {
bind_struct *bs;
logdebug("unbind_device(%4.4X)\n", dev->devnum);
if (!(bs = dev->bs)) {
logmsg(_("HHCSD005E Device %4.4X not bound to any socket\n"), dev->devnum);
return 0;
}
if (dev->fd != -1) {
if (forced) {
close_socket(dev->fd);
... | unbind_device_ex | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/hdt1403.so | ida | O0 |
void write_buffer(DEVBLK *dev, char *buf, int len, BYTE *unitstat) {
long fd;
int v7;
int *v8;
char *v9;
fd = (unsigned int)dev->fd;
if (dev->bs) {
if (len > (int)write_socket(fd, buf)) {
v7 = dev->fd;
if (v7 == -1) {
dev->sense[0] = 64;
*unitstat = 14;
} else {
... | static void write_buffer(DEVBLK *dev, char *buf, int len, BYTE *unitstat) {
int rc;
if (dev->bs) {
rc = write_socket(dev->fd, buf, len);
if (rc < len) {
if (dev->fd != -1) {
int fd = dev->fd;
dev->fd = -1;
close_socket(fd);
logmsg(_("HHCPR017I %s (%s) disconnected f... | write_buffer | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/hdt1403.so | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int v3;
const char **v4;
const char *v5;
int v6;
long v7;
int v8;
int v9;
int v10;
int v11;
BYTE *v12;
int v13;
long v14;
long v15;
long i;
int v17;
int v18;
FILE *v20;
int *v21;
char *v22;
int *v23;
char *v24;
int *v... | int main(int argc, char *argv[]) {
int i;
int len;
int prevlen;
char *filename;
int infd = -1;
int fileno;
int blkcount;
int curblkl;
int minblksz;
int maxblksz;
BYTE labelrec[81];
AWSTAPE_BLKHDR awshdr;
char pathname[MAX_PATH];
INITIALIZE_UTILITY("tapemap");
display_version(stderr, "Her... | main | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/tapemap | ida | O0 |
void clear_line() {
std_operator < < <std_char_traits<char>>(&std_cout,
" "
" \r");
} | void clear_line() {
cout << " \r";
} | clear_line | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl compare(adv_scroll *scroll, int *x, int *y, unsigned int width,
unsigned int height, unsigned __int8 *p0,
unsigned __int8 *p1, unsigned int pixel,
unsigned int line) {
int i;
int j;
int best_x;
int best_y;
unsigned int best_count;
u... | static void compare(adv_scroll *scroll, int *x, int *y, unsigned width,
unsigned height, unsigned char *p0, unsigned char *p1,
unsigned pixel, unsigned line) {
int i, j;
int best_x;
int best_y;
unsigned best_count;
unsigned prev_count;
unsigned total;
best_x = 0;
... | compare | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
unsigned int __cdecl compare_line(unsigned int width, unsigned int height,
unsigned __int8 *p0, unsigned __int8 *p1,
unsigned int line) {
unsigned int i;
unsigned int j;
unsigned int count;
count = 0;
for (i = 0; i < height; ++i) {
for (... | static unsigned compare_line(unsigned width, unsigned height, unsigned char *p0,
unsigned char *p1, unsigned line) {
unsigned i, j;
unsigned count = 0;
for (i = 0; i < height; ++i) {
#if defined(USE_MMX)
j = width;
while (j >= 8) {
unsigned char data[16] = {0, 0, 0, 0,... | compare_line | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
unsigned int __cdecl compare_shift(int x, int y, unsigned int width,
unsigned int height, unsigned __int8 *p0,
unsigned __int8 *p1, unsigned int pixel,
unsigned int line) {
unsigned __int8 *p1a;
unsigned __int8 ... | static unsigned compare_shift(int x, int y, unsigned width, unsigned height,
unsigned char *p0, unsigned char *p1,
unsigned pixel, unsigned line) {
unsigned count;
int dx = width - abs(x);
int dy = height - abs(y);
if (x < 0)
p1 += -x * pixel;
... | compare_shift | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl compute_image_range(adv_mng_write *mng, unsigned int *out_x,
unsigned int *out_y, unsigned int *out_dx,
unsigned int *out_dy, unsigned __int8 *img_ptr,
unsigned int img_scanline) {
unsigned int x;
unsigne... | static void compute_image_range(adv_mng_write *mng, unsigned *out_x,
unsigned *out_y, unsigned *out_dx,
unsigned *out_dy, unsigned char *img_ptr,
unsigned img_scanline) {
unsigned x;
unsigned dx;
unsigned y;
unsigned... | compute_image_range | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void convert_header(adv_mng_write *mng, adv_fz *f, unsigned int *fc,
unsigned int frame_width, unsigned int frame_height,
unsigned int frame_frequency, adv_scroll_info *info,
bool alpha) {
if (info)
mng_write_header(mng, f, fc, frame_width, frame_height,... | void convert_header(adv_mng_write *mng, adv_fz *f, unsigned *fc,
unsigned frame_width, unsigned frame_height,
unsigned frame_frequency, adv_scroll_info *info,
bool alpha) {
if (info) {
mng_write_header(mng, f, fc, frame_width, frame_height, frame_frequen... | convert_header | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void convert_image(adv_mng_write *mng, adv_fz *f_out, unsigned int *fc,
unsigned int pix_width, unsigned int pix_height,
unsigned int pix_pixel, unsigned char *pix_ptr,
unsigned int pix_scanline, unsigned char *pal_ptr,
unsigned int pal_size, a... | void convert_image(adv_mng_write *mng, adv_fz *f_out, unsigned *fc,
unsigned pix_width, unsigned pix_height, unsigned pix_pixel,
unsigned char *pix_ptr, unsigned pix_scanline,
unsigned char *pal_ptr, unsigned pal_size,
adv_scroll_coord *scc) {
... | convert_image | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void convert_mng(const std_string *path_src, const std_string *path_dst) {
error *exception;
error *v3;
error *v4;
error *v5;
const char *v6;
error *v7;
error *v8;
error *v9;
const char *v10;
error *v11;
error *v12;
error *v13;
bool reduce;
bool expand;
unsigned int filec;
unsigned int f... | void convert_mng(const string &path_src, const string &path_dst) {
adv_scroll_info *info;
bool reduce;
bool expand;
if (opt_scroll && opt_type == mng_vlc) {
throw error() << "The --scroll and --vlc options are incompatible";
}
if (opt_scroll && opt_type == mng_lc) {
throw error() << "The --scroll ... | convert_mng | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
size_t __cdecl deflate_compress_greedy(libdeflate_compressor *c, const u8 *in,
size_t in_nbytes, u8 *out,
size_t out_nbytes_avail) {
unsigned int nice_match_length;
signed __int64 v6;
int v7;
unsigned int max_search_depth;
__int64 v... | static size_t deflate_compress_greedy(struct libdeflate_compressor *restrict c,
const u8 *restrict in, size_t in_nbytes,
u8 *restrict out,
size_t out_nbytes_avail) {
const u8 *in_next = in;
const u8 *in... | deflate_compress_greedy | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
size_t __cdecl deflate_compress_lazy(libdeflate_compressor *c, const u8 *in,
size_t in_nbytes, u8 *out,
size_t out_nbytes_avail) {
unsigned int nice_match_length;
signed __int64 v6;
int v7;
unsigned int max_search_depth;
__int64 v9;
_... | static size_t deflate_compress_lazy(struct libdeflate_compressor *restrict c,
const u8 *restrict in, size_t in_nbytes,
u8 *restrict out, size_t out_nbytes_avail) {
const u8 *in_next = in;
const u8 *in_end = in_next + in_nbytes;
struct deflate... | deflate_compress_lazy | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
size_t __cdecl deflate_compress_near_optimal(libdeflate_compressor *c,
const u8 *in, size_t in_nbytes,
u8 *out, size_t out_nbytes_avail) {
size_t v6;
unsigned int nice_match_length;
signed __int64 v8;
signed __int64 v9;
... | static size_t
deflate_compress_near_optimal(struct libdeflate_compressor *restrict c,
const u8 *restrict in, size_t in_nbytes,
u8 *restrict out, size_t out_nbytes_avail) {
const u8 *in_next = in;
const u8 *in_end = in_next + in_nbytes;
struct deflate_out... | deflate_compress_near_optimal | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void extract_all(int argc, char **argv) {
char v2;
int i;
std_string path_src;
unsigned long v5;
v5 = __readfsqword(0x28u);
for (i = 0; i < argc; ++i) {
std_allocator<char> _allocator(&v2);
std_string_basic_string(&path_src, argv[i], &v2);
extract(&path_src);
std_string_ ~string(&path_src);... | void extract_all(int argc, char *argv[]) {
for (int i = 0; i < argc; ++i) {
extract(argv[i]);
}
} | extract_all | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl insert(adv_scroll_info *info, int x, int y) {
if (info->mac == info->max) {
info->max *= 2;
if (!info->max)
info->max = 64;
info->map = (adv_scroll_coord *)realloc(info->map, 8LL * info->max);
}
info->map[info->mac].x = x;
info->map[info->mac++].y = y;
} | static void insert(adv_scroll_info *info, int x, int y) {
if (info->mac == info->max) {
info->max *= 2;
if (!info->max)
info->max = 64;
info->map = (adv_scroll_coord *)realloc(
info->map, info->max * sizeof(adv_scroll_coord));
}
info->map[info->mac].x = x;
info->map[info->mac].y = y;
... | insert | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
bool is_reducible_image(unsigned int img_width, unsigned int img_height,
unsigned int img_pixel, unsigned char *img_ptr,
unsigned int img_scanline) {
unsigned int col_count;
unsigned int i;
unsigned int j;
unsigned int k;
unsigned char *p0;
unsigned char col_p... | bool is_reducible_image(unsigned img_width, unsigned img_height,
unsigned img_pixel, unsigned char *img_ptr,
unsigned img_scanline) {
unsigned char col_ptr[256 * 3];
unsigned col_count;
unsigned i, j, k;
if (img_pixel != 3 && !opt_noalpha)
return false;
co... | is_reducible_image | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
bool is_reducible_mng(const std_string *path) {
const char *v1;
error *exception;
error *v3;
error *v4;
error *v5;
error *v6;
char reducible;
unsigned int pix_width;
unsigned int pix_height;
unsigned int pix_pixel;
unsigned int pix_scanline;
unsigned int dat_size;
unsigned int pal_size;
unsi... | bool is_reducible_mng(const string &path) {
bool reducible;
adv_fz *f;
f = fzopen(path.c_str(), "rb");
if (!f) {
throw error() << "Failed open for reading " << path;
}
try {
reducible = true;
adv_mng *mng;
mng = adv_mng_init(f);
if (!mng) {
throw error() << "Error in the mng str... | is_reducible_mng | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void list_all(int argc, char **argv) {
long v2;
long v3;
char v4;
int i;
std_string path;
unsigned long v7;
v7 = __readfsqword(0x28u);
for (i = 0; i < argc; ++i) {
if (argc > 1 && !opt_crc) {
v2 = std_operator < < <std_char_traits<char>>(&std_cout, "File: ");
v3 = std_operator < < <std_... | void list_all(int argc, char *argv[]) {
for (int i = 0; i < argc; ++i) {
if (argc > 1 && !opt_crc)
cout << "File: " << argv[i] << endl;
mng_print(argv[i]);
}
} | list_all | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl mng_write_delta_image(adv_mng_write *mng, adv_fz *f,
unsigned int *fc, unsigned __int8 *img_ptr,
unsigned int img_scanline,
unsigned __int8 *pal_ptr,
unsigned int pal_... | static void mng_write_delta_image(adv_mng_write *mng, adv_fz *f, unsigned *fc,
unsigned char *img_ptr, unsigned img_scanline,
unsigned char *pal_ptr, unsigned pal_size) {
unsigned x, y, dx, dy;
data_ptr pal_d_ptr;
unsigned pal_d_size;
data_ptr ... | mng_write_delta_image | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl mng_write_done(adv_mng_write *mng) {
free(mng->scroll_ptr);
free(mng);
} | void mng_write_done(adv_mng_write *mng) {
free(mng->scroll_ptr);
free(mng);
} | mng_write_done | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl mng_write_expand(adv_mng_write *mng, data_ptr *out_ptr,
unsigned int *out_scanline,
const unsigned __int8 *img_ptr,
unsigned int img_scanline,
unsigned __int8 *pal_ptr) {
unsigned int i... | static void mng_write_expand(adv_mng_write *mng, data_ptr &out_ptr,
unsigned &out_scanline,
const unsigned char *img_ptr,
unsigned img_scanline, unsigned char *pal_ptr) {
unsigned char *new_ptr;
unsigned new_scanline;
unsigned ... | mng_write_expand | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl mng_write_first(adv_mng_write *mng, adv_fz *f, unsigned int *fc) {
unsigned int v3;
unsigned __int8 *v4;
unsigned int z_size;
unsigned int defi_size;
data_ptr z_ptr;
unsigned __int8 defi[12];
unsigned __int8 ihdr[13];
unsigned __int64 v11;
v11 = __readfsqword(0x28u);
data_ptr::data_ptr... | static void mng_write_first(adv_mng_write *mng, adv_fz *f, unsigned *fc) {
unsigned char defi[12];
unsigned defi_size;
unsigned char ihdr[13];
data_ptr z_ptr;
unsigned z_size;
if (mng->type == mng_std) {
be_uint16_write(defi + 0, 1);
defi[2] = 0;
defi[3] = 1;
if (mng->scroll_x != 0 || mng->... | mng_write_first | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl mng_write_footer(adv_mng_write *mng, adv_fz *f, unsigned int *fc) {
if (adv_png_write_chunk(f, 0x4D454E44u, 0, 0, fc))
throw_png_error();
} | void mng_write_footer(adv_mng_write *mng, adv_fz *f, unsigned *fc) {
if (adv_png_write_chunk(f, ADV_MNG_CN_MEND, 0, 0, fc) != 0) {
throw_png_error();
}
} | mng_write_footer | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl mng_write_frame(adv_mng_write *mng, adv_fz *f, unsigned int *fc,
unsigned int tick) {
int fram_size;
unsigned __int8 fram[10];
unsigned __int64 v8;
v8 = __readfsqword(0x28u);
if (tick == mng->tick) {
fram[0] = 1;
fram_size = 1;
} else {
fram[0] = 1;
... | void mng_write_frame(adv_mng_write *mng, adv_fz *f, unsigned *fc,
unsigned tick) {
unsigned char fram[10];
unsigned fram_size;
if (tick == mng->tick) {
fram[0] = 1;
fram_size = 1;
} else {
fram[0] = 1;
fram[1] = 0;
fram[2] = 2;
fram[3] = 0;
fram[4] = 0;
fram... | mng_write_frame | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
adv_bool __cdecl mng_write_has_header(adv_mng_write *mng) {
return mng->header_written;
} | adv_bool mng_write_has_header(adv_mng_write *mng) {
return mng->header_written;
} | mng_write_has_header | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl mng_write_header(adv_mng_write *mng, adv_fz *f, unsigned int *fc,
unsigned int width, unsigned int height,
unsigned int frequency, int scroll_x,
int scroll_y, unsigned int scroll_width,
u... | void mng_write_header(adv_mng_write *mng, adv_fz *f, unsigned *fc,
unsigned width, unsigned height, unsigned frequency,
int scroll_x, int scroll_y, unsigned scroll_width,
unsigned scroll_height, adv_bool alpha) {
unsigned simplicity;
unsigned char mh... | mng_write_header | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl
mng_write_image_raw(adv_mng_write *mng, adv_fz *f, unsigned int *fc,
unsigned int width, unsigned int height, unsigned int pixel,
unsigned __int8 *img_ptr, unsigned int img_scanline,
unsigned __int8 *pal_ptr, unsigned int pal_size,
... | static void mng_write_image_raw(adv_mng_write *mng, adv_fz *f, unsigned *fc,
unsigned width, unsigned height, unsigned pixel,
unsigned char *img_ptr, unsigned img_scanline,
unsigned char *pal_ptr, unsigned pal_size,
... | mng_write_image_raw | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
adv_mng_write *__cdecl mng_write_init(adv_mng_type type, shrink_t level,
adv_bool reduce, adv_bool expand) {
adv_mng_write *result;
result = (adv_mng_write *)malloc(0x368u);
result->type = type;
result->level = level;
result->reduce = reduce;
result->expa... | adv_mng_write *mng_write_init(adv_mng_type type, shrink_t level,
adv_bool reduce, adv_bool expand) {
adv_mng_write *mng;
mng = (adv_mng_write *)malloc(sizeof(adv_mng_write));
mng->type = type;
mng->level = level;
mng->reduce = reduce;
mng->expand = expand;
mng->header_writt... | mng_write_init | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl mng_write_move(adv_mng_write * mng, adv_fz * f, unsigned int *fc,
int shift_x, int shift_y) {
unsigned __int8 move[13];
unsigned __int64 v9;
v9 = __readfsqword(0x28u);
if (shift_x || shift_y) {
be_uint16_write(move, 1u);
be_uint16_write(&move[2], 1... | static void mng_write_move(adv_mng_write *mng, adv_fz *f, unsigned *fc,
int shift_x, int shift_y) {
unsigned char move[13];
if (shift_x != 0 || shift_y != 0) {
be_uint16_write(move + 0, 1);
be_uint16_write(move + 2, 1);
move[4] = 1;
be_uint32_write(move + 5, -shift_x);
... | mng_write_move | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
bool __cdecl mng_write_reduce(
adv_mng_write * mng, data_ptr * out_ptr, unsigned int *out_scanline,
unsigned __int8 *ovr_ptr, unsigned __int8 *img_ptr,
unsigned int img_scanline) {
unsigned int col_count;
unsigned int i;
unsigned int ia;
unsigned int ib;
unsigned int ic;
unsign... | static bool mng_write_reduce(adv_mng_write *mng, data_ptr &out_ptr,
unsigned &out_scanline, unsigned char *ovr_ptr,
unsigned char *img_ptr, unsigned img_scanline) {
unsigned char col_ptr[256 * 3];
unsigned col_mapped[256];
unsigned col_count;
adv_bool ov... | mng_write_reduce | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl mng_write_store(
adv_mng_write * mng, unsigned __int8 *img_ptr, unsigned int img_scanline,
unsigned __int8 *pal_ptr, unsigned int pal_size) {
unsigned int i;
if (pal_size) {
memcpy(mng->pal_ptr, pal_ptr, pal_size);
memset(&mng->pal_ptr[pal_size], 0, 768 - pal_size);
i... | static void mng_write_store(adv_mng_write *mng, unsigned char *img_ptr,
unsigned img_scanline, unsigned char *pal_ptr,
unsigned pal_size) {
unsigned i;
if (pal_size) {
memcpy(mng->pal_ptr, pal_ptr, pal_size);
memset(mng->pal_ptr + pal_size, 0, 256 * 3... | mng_write_store | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
unsigned int __cdecl oversize_deflate(unsigned int size) {
return size / 0xA + size + 12;
} | unsigned oversize_deflate(unsigned size) { return size + size / 10 + 12; } | oversize_deflate | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
unsigned int __cdecl oversize_zlib(unsigned int size) {
return oversize_deflate(size) + 10;
} | unsigned oversize_zlib(unsigned size) { return oversize_deflate(size) + 10; } | oversize_zlib | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl png_compress_palette_delta(
data_ptr * out_ptr, unsigned int *out_size,
const unsigned __int8 *pal_ptr, unsigned int pal_size,
const unsigned __int8 *prev_ptr, unsigned int prev_size) {
unsigned int v6;
unsigned int v7;
const unsigned __int8 *v8;
unsigned int v9;
unsig... | void png_compress_palette_delta(data_ptr &out_ptr, unsigned &out_size,
const unsigned char *pal_ptr, unsigned pal_size,
const unsigned char *prev_ptr,
unsigned prev_size) {
unsigned i;
unsigned char *dst_ptr;
unsigned ... | png_compress_palette_delta | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl png_print_chunk(unsigned int type, unsigned __int8 *data,
unsigned int size) {
__int64 v3;
std::_Setw v4;
__int64 v5;
__int64 v6;
unsigned int v7;
__int64 v8;
__int64 v9;
unsigned int v10;
__int64 v11;
__int64 v12;
unsigned int v13;... | void png_print_chunk(unsigned type, unsigned char *data, unsigned size) {
char tag[5];
unsigned i;
be_uint32_write(tag, type);
tag[4] = 0;
cout << tag << setw(8) << size;
switch (type) {
case ADV_MNG_CN_MHDR:
if (size < 28) {
cout << " invalid chunk size";
break;
}
cout << " wid... | png_print_chunk | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl postprocessing(adv_scroll_info * info) {
int px;
int py;
int min_x;
int min_y;
int max_x;
int max_y;
unsigned int i;
px = 0;
py = 0;
min_x = 0;
min_y = 0;
max_x = 0;
max_y = 0;
for (i = 0; i < info->mac; ++i) {
px += info->map[i].x;
py +=... | static void postprocessing(adv_scroll_info *info) {
int px = 0;
int py = 0;
int min_x = 0;
int min_y = 0;
int max_x = 0;
int max_y = 0;
unsigned i;
for (i = 0; i < info->mac; ++i) {
px += info->map[i].x;
py += info->map[i].y;
if (px < min_x)
min_x = px;
if (py < min_y)
min_y... | postprocessing | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
u64 __cdecl read_xcr(u32 index) {
unsigned int v1;
__asm { xgetbv }
return ((unsigned __int64)v1 << 32) | index;
} | static inline u64 read_xcr(u32 index) {
u32 edx, eax;
__asm__(".byte 0x0f, 0x01, 0xd0" : "=d"(edx), "=a"(eax) : "c"(index));
return ((u64)edx << 32) | eax;
} | read_xcr | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl infopath::readonly_set(infopath *const this, bool Areadonly) {
this->readonly = Areadonly;
} | void infopath::readonly_set(bool Areadonly) { readonly = Areadonly; } | readonly_set | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void remng_all(int argc, char **argv) {
std__Setw v2;
long v3;
long v4;
std__Setw v5;
long v6;
long v7;
std__Setw v8;
long v9;
long v10;
char v11;
int i;
unsigned int perc;
unsigned long total_0;
unsigned long total_1;
std_string file;
unsigned long v17;
... | void remng_all(int argc, char *argv[]) {
unsigned long long total_0 = 0;
unsigned long long total_1 = 0;
for (int i = 0; i < argc; ++i)
remng_single(argv[i], total_0, total_1);
if (!opt_quiet) {
cout << setw(12) << total_0 << setw(12) << total_1 << " ";
if (total_0) {
unsigned perc = total_1... | remng_all | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
bool __cdecl row_equal(adv_mng_write * mng, unsigned int y,
unsigned __int8 *img_ptr, unsigned int img_scanline) {
return memcmp(&mng->current_ptr[y * mng->line], &img_ptr[img_scanline * y],
mng->width * mng->pixel) == 0;
} | static bool row_equal(adv_mng_write *mng, unsigned y, unsigned char *img_ptr,
unsigned img_scanline) {
unsigned char *p0;
unsigned char *p1;
p0 = mng->current_ptr + y * mng->line;
p1 = img_ptr + y * img_scanline;
return memcmp(p0, p1, mng->width * mng->pixel) == 0;
} | row_equal | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl scroll_analyze(adv_scroll * scroll, unsigned int pix_width,
unsigned int pix_height, unsigned int pix_pixel,
unsigned __int8 *pix_ptr,
unsigned int pix_scanline) {
int x;
int y;
unsigned int i;
unsigne... | void scroll_analyze(adv_scroll *scroll, unsigned pix_width, unsigned pix_height,
unsigned pix_pixel, unsigned char *pix_ptr,
unsigned pix_scanline) {
unsigned char *ptr;
unsigned scanline;
unsigned i;
scanline = pix_width * pix_pixel;
ptr = data_alloc(pix_height * scan... | scroll_analyze | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl scroll_done(adv_scroll * scroll) {
data_free(scroll->pre_ptr);
data_free(scroll->cur_ptr);
if (scroll->info)
scroll_info_done(scroll->info);
free(scroll);
} | void scroll_done(adv_scroll *scroll) {
data_free(scroll->pre_ptr);
data_free(scroll->cur_ptr);
if (scroll->info)
scroll_info_done(scroll->info);
free(scroll);
} | scroll_done | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl scroll_info_done(adv_scroll_info * info) {
free(info->map);
free(info);
} | void scroll_info_done(adv_scroll_info *info) {
free(info->map);
free(info);
} | scroll_info_done | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
adv_scroll_info *__cdecl scroll_info_init(adv_scroll * scroll) {
adv_scroll_info *info;
info = scroll->info;
postprocessing(scroll->info);
scroll->info = 0;
return info;
} | adv_scroll_info *scroll_info_init(adv_scroll *scroll) {
adv_scroll_info *info = scroll->info;
postprocessing(info);
scroll->info = 0;
return info;
} | scroll_info_init | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
adv_scroll *__cdecl scroll_init(int dx_0, int dy, int limit) {
adv_scroll *scroll;
scroll = (adv_scroll *)malloc(0x28u);
scroll->info = (adv_scroll_info *)malloc(0x20u);
scroll->info->map = 0;
scroll->info->mac = 0;
scroll->info->max = 0;
scroll->range_dx = dx_0;
scroll->range_dy = dy;
... | adv_scroll *scroll_init(int dx, int dy, int limit) {
adv_scroll *scroll = (adv_scroll *)malloc(sizeof(adv_scroll));
scroll->info = (adv_scroll_info *)malloc(sizeof(adv_scroll_info));
scroll->info->map = 0;
scroll->info->mac = 0;
scroll->info->max = 0;
scroll->range_dx = dx;
scroll->range_dy = dy;
scr... | scroll_init | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl scroll_last_get(adv_scroll * scroll, int *x, int *y) {
if (scroll->info && scroll->info->mac) {
*x = scroll->info->map[scroll->info->mac - 1].x;
*y = scroll->info->map[scroll->info->mac - 1].y;
} else {
*x = 0;
*y = 0;
}
} | void scroll_last_get(adv_scroll *scroll, int *x, int *y) {
if (!scroll->info || !scroll->info->mac) {
*x = 0;
*y = 0;
} else {
*x = scroll->info->map[scroll->info->mac - 1].x;
*y = scroll->info->map[scroll->info->mac - 1].y;
}
} | scroll_last_get | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
adv_bool __cdecl sglob(const char *s, const char *glob) {
while (*s && *glob) {
if (*glob == 42) {
if (sglob(s, glob + 1))
return 1;
++s;
} else if (*glob == 63) {
++glob;
++s;
} else {
if (*glob == 92 && (glob[1] == 92 || glob[1] == 42 || glob[1] ... | adv_bool sglob(const char *s, const char *glob) {
while (*s && *glob) {
if (*glob == '*') {
if (sglob(s, glob + 1))
return 1;
++s;
continue;
}
if (*glob == '?') {
++glob;
++s;
continue;
}
if (glob[0] == '\\' &&
(glob[1] == '\\' || glob[1] == '*... | sglob | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl sig_ignore(int sig) {
if (!sig_ignore_sig)
sig_ignore_sig = sig;
} | void sig_ignore(int sig) {
if (sig_ignore_sig == 0)
sig_ignore_sig = sig;
} | sig_ignore | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl sig_lock() {
sig_ignore_sig = 0;
sig_hup = signal(1, (__sighandler_t)sig_ignore);
sig_quit = signal(3, (__sighandler_t)sig_ignore);
sig_int = signal(2, (__sighandler_t)sig_ignore);
sig_term = signal(15, (__sighandler_t)sig_ignore);
} | void sig_lock() {
sig_ignore_sig = 0;
#if HAVE_SIGHUP
sig_hup = signal(SIGHUP, sig_ignore);
#endif
#if HAVE_SIGQUIT
sig_quit = signal(SIGQUIT, sig_ignore);
#endif
sig_int = signal(SIGINT, sig_ignore);
sig_term = signal(SIGTERM, sig_ignore);
} | sig_lock | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl sig_unlock() {
signal(1, sig_hup);
signal(3, sig_quit);
signal(2, sig_int);
signal(15, sig_term);
if (sig_ignore_sig)
raise(sig_ignore_sig);
} | void sig_unlock() {
#if HAVE_SIGHUP
signal(SIGHUP, sig_hup);
#endif
#if HAVE_SIGQUIT
signal(SIGQUIT, sig_quit);
#endif
signal(SIGINT, sig_int);
signal(SIGTERM, sig_term);
if (sig_ignore_sig)
raise(sig_ignore_sig);
} | sig_unlock | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl infopath::size_set(infopath *const this, unsigned int Asize) {
this->size = Asize;
} | void infopath::size_set(unsigned Asize) { size = Asize; } | size_set | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl sncat(char *dst, size_t len, const char *src) {
while (len && *dst) {
++dst;
--len;
}
sncpy(dst, len, src);
} | void sncat(char *dst, size_t len, const char *src) {
while (len && *dst) {
++dst;
--len;
}
sncpy(dst, len, src);
} | sncat | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl sncatc(char *dst, size_t len, char src) {
while (len && *dst) {
++dst;
--len;
}
sncpyc(dst, len, src);
} | void sncatc(char *dst, size_t len, char src) {
while (len && *dst) {
++dst;
--len;
}
sncpyc(dst, len, src);
} | sncatc | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void sncatf(char *str, size_t count, const char *fmt, ...) {
__int64 v3;
__int64 v4;
__int64 v5;
unsigned int l;
va_list arg;
unsigned __int64 v8;
__int64 v9;
__int64 v10;
__int64 v11;
va_start(arg, fmt);
v3 = va_arg(arg, _QWORD);
v4 = va_arg(arg, _QWORD);
v5 = va_ar... | void sncatf(char *str, size_t count, const char *fmt, ...) {
unsigned l;
va_list arg;
va_start(arg, fmt);
l = 0;
while (l < count && str[l])
++l;
if (count > l)
vsnprintf(str + l, count - l, fmt, arg);
va_end(arg);
} | sncatf | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
void __cdecl sncpy(char *dst, size_t len, const char *src) {
const char *v3;
char *v4;
char *v5;
size_t lena;
char *dstb;
if (len) {
for (lena = len - 1; lena && *src; --lena) {
v3 = src++;
v4 = dst++;
*v4 = *v3;
}
*dst = 0;
dstb = dst + 1;
... | void sncpy(char *dst, size_t len, const char *src) {
if (len) {
--len;
while (len && *src) {
*dst++ = *src++;
--len;
}
*dst = 0;
#ifndef NDEBUG
++dst;
while (len) {
*dst++ = 0x5A;
--len;
}
#endif
}
} | sncpy | advancecomp-2.3 | app-arch | O0/app-arch/advancecomp-2.3/advmng | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.