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 xvfprintf(FILE *fp, const char *fmt, __va_list_tag *ap) {
int len;
char buf1[10248];
unsigned long v6;
v6 = __readfsqword(0x28u);
len = vsnprintf(buf1, 0x27FFu, fmt, ap);
buf1[10239] = 0;
return xputs2(buf1, len, fp);
} | int xvfprintf(fp, fmt, ap)
FILE *fp;
const char *fmt;
va_list ap;
{
char buf1[TMP_SIZE];
int len;
#ifdef HAVE_VSNPRINTF
len = vsnprintf(buf1, TMP_SIZE - 1, fmt, ap);
buf1[TMP_SIZE - 1] = 0;
#else
len = vsprintf(buf1, fmt, ap);
#endif
return xputs2(buf1, len, fp);
} | xvfprintf | eblook-1.6.1 | app-dicts | O0/app-dicts/eblook-1.6.1/eblook | ida | O0 |
void clean() {
close(fd);
free(l1);
free(l2);
free(tbuf);
free(bulk);
} | void clean(void) {
close(fd);
free(l1);
free(l2);
free(tbuf);
free(bulk);
} | clean | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/cckddiag | ida | O0 |
int decomptrk(BYTE *ibuf, int ibuflen, BYTE *obuf, int obuflen, int heads,
int trk, char *msg) {
int v7;
long v10;
char *v11;
char v12;
int v13;
int v15;
char *v16;
long v17;
char *v18;
BYTE v19;
long v20;
const char *v21;
const char *v22;
_QWORD ubufl[9];
v7 = ibuflen;
v1... | int decomptrk(BYTE *ibuf, int ibuflen, BYTE *obuf, int obuflen, int heads,
int trk, char *msg)
{
#if defined(HAVE_LIBZ) || defined(CCKD_BZIP2)
int rc;
BYTE *bufp;
#endif
size_t bufl;
#ifdef CCKD_BZIP2
unsigned int ubufl;
#endif
#if !defined(HAVE_LIBZ) && !defined(CCKD_BZIP2)
UNREFERENCED(heads... | decomptrk | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/cckddiag | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int v3;
const char **v4;
int v5;
const char **v6;
int v7;
int v8;
int v9;
const char **v10;
const char *v11;
FILE *v12;
char *v14;
int v15;
char *v16;
int v17;
char *v18;
FILE *v19;
int v20;
int v21;
int v22;
int v23;
i... | int main(int argc, char *argv[]) {
int cckd_diag_rc = 0;
char *fn;
CKDDASD_DEVHDR devhdr;
CCKDDASD_DEVHDR cdevhdr;
CKDDEV *ckd = 0;
FBADEV *fba = 0;
int cmd_devhdr = 0;
int cmd_cdevhdr = 0;
int cmd_l1tab = 0;
int cmd_l2tab = 0;
int cmd_trkdata = 0;
int cmd_hexdump = 0;
int cmd_offset = 0;
... | main | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/cckddiag | ida | O0 |
void *makbuf(int len, char *label) {
void *v2;
void *v3;
v2 = malloc(len);
if (!v2) {
__fprintf_chk(stdout, 1, "malloc %s of length %d failed\n", label, len);
clean();
exit(4);
}
v3 = v2;
if (debug)
__fprintf_chk(stdout, 1, "\nMAKBUF malloc %s buffer of %d bytes at %p\n",
... | void *makbuf(int len, char *label) {
void *p;
p = malloc(len);
if (p == NULL) {
fprintf(stdout, "malloc %s of length %d failed\n", label, len);
clean();
exit(4);
}
if (debug)
fprintf(stdout,
"\n"
"MAKBUF malloc %s buffer of %d bytes at %p\n",
label, len, p)... | makbuf | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/cckddiag | ida | O0 |
off_t offtify(char *s) {
off_t v1;
char *v3;
const unsigned short *v4;
int v5;
if (*s == 48 && s[1] == 120) {
v3 = s + 2;
v1 = 0;
v4 = *__ctype_b_loc();
while (1) {
v5 = *v3;
if ((v4[*v3] & 0x1000) == 0)
break;
++v3;
v1 = xv_0[strchr("0123456789abcdefABCDEF", v... | off_t offtify(char *s) {
static const char xd[] = {"0123456789abcdefABCDEF"};
static const char xv[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
11, 12, 13, 14, 15, 10, 11, 12, 13, 14, 15};
off_t v;
char *p;
p = s;
if ((*s == '0') && (*(s + 1) == 'x')) {
s = s + 2;
f... | offtify | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/cckddiag | ida | O0 |
int readpos(int fd, void *buf, off_t offset, size_t len) {
int *v7;
char *v8;
int *v9;
char *v10;
if (debug)
__fprintf_chk(stdout, 1, "\nREADPOS seeking %d (0x%8.8X)\n", offset,
offset);
if (lseek(fd, offset, 0) < 0) {
v9 = __errno_location();
v10 = strerror(*v9);
__fprint... | int readpos(int fd, void *buf, off_t offset, size_t len) {
if (debug)
fprintf(stdout, "\nREADPOS seeking %d (0x%8.8X)\n", (int)offset,
(unsigned int)offset);
if (lseek(fd, offset, SEEK_SET) < 0) {
fprintf(stdout, _("lseek to pos 0x%8.8x error: %s\n"), (unsigned int)offset,
strerror(e... | readpos | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/cckddiag | ida | O0 |
BYTE *show_ckd_count(CKDDASD_RECHDR *rh, int trk) {
__fprintf_chk(stdout, 1, "\nTrack %d COUNT CC=%d HH=%d R=%d KL=%d DL=%d\n",
trk, (unsigned short)__ROL2__(*(_WORD *)rh->cyl, 8),
(unsigned short)__ROL2__(*(_WORD *)rh->head, 8), rh->rec,
rh->klen, (unsigned short)__ROL... | BYTE *show_ckd_count(CKDDASD_RECHDR *rh, int trk) {
int cc, hh, r, kl, dl;
BYTE *past;
cc = (rh->cyl[0] << 8) | (rh->cyl[1]);
hh = (rh->head[0] << 8) | (rh->head[1]);
r = rh->rec;
kl = rh->klen;
dl = (rh->dlen[0] << 8) | (rh->dlen[1]);
fprintf(stdout,
"\n"
"Track %d COUNT "
... | show_ckd_count | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/cckddiag | ida | O0 |
BYTE *show_ckd_data(CKDDASD_RECHDR *rh, BYTE *buf, int trk, int xop) {
unsigned short v4;
v4 = __ROL2__(*(_WORD *)rh->dlen, 8);
if (!v4 || !xop)
return &buf[v4];
__fprintf_chk(stdout, 1, "\nTrack %d R%d DATA (%d bytes)\n", trk, rh->rec,
v4);
data_dump(buf, v4);
return &buf[v4];
} | BYTE *show_ckd_data(CKDDASD_RECHDR *rh, BYTE *buf, int trk, int xop) {
int dl;
dl = (rh->dlen[0] << 8) | (rh->dlen[1]);
if (dl && xop) {
fprintf(stdout, "\nTrack %d R%d DATA (%d bytes)\n", trk, rh->rec, dl);
data_dump(buf, dl);
}
return buf + dl;
} | show_ckd_data | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/cckddiag | ida | O0 |
BYTE *show_ckd_key(CKDDASD_RECHDR *rh, BYTE *buf, int trk, int xop) {
long klen;
klen = rh->klen;
if (!xop || !(_BYTE)klen)
return &buf[klen];
__fprintf_chk(stdout, 1, "\nTrack %d R%d KEY (%d bytes)\n", trk, rh->rec,
(unsigned char)klen);
data_dump(buf, rh->klen);
return &buf[rh->klen];... | BYTE *show_ckd_key(CKDDASD_RECHDR *rh, BYTE *buf, int trk, int xop) {
if (rh->klen && xop) {
fprintf(stdout, "\nTrack %d R%d KEY (%d bytes)\n", trk, rh->rec, rh->klen);
data_dump(buf, rh->klen);
}
return (BYTE *)buf + rh->klen;
} | show_ckd_key | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/cckddiag | ida | O0 |
void showtrk(CKDDASD_TRKHDR *buf, int imglen, int trk, int xop) {
int v6;
CKDDASD_RECHDR *v7;
BYTE *v8;
long klen;
BYTE *v10;
char msg[96];
BYTE buf2[65536];
CKDDASD_RECHDR v13;
unsigned long v14;
v14 = __readfsqword(0x28u);
if (debug)
snap("\nSHOWTRK Compressed track header and data", buf, i... | void showtrk(CKDDASD_TRKHDR *buf, int imglen, int trk, int xop) {
BYTE buf2[64 * 1024];
char msg[81];
CKDDASD_RECHDR *rh;
BYTE *bufp;
int len;
if (debug)
snap("\nSHOWTRK Compressed track header and data", buf, imglen);
len = decomptrk((BYTE *)buf, imglen, buf2, sizeof(buf2), 1, trk, msg);
if (debug... | showtrk | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/cckddiag | ida | O0 |
void snap(char *msg, void *data, int len) {
if (msg)
__fprintf_chk(stdout, 1, "%s\n", msg);
data_dump(data, (unsigned int)len);
if (pausesnap) {
fwrite("Press enter to continue\n", 1u, 0x18u, stdout);
getc(stdin);
}
} | void snap(char *msg, void *data, int len) {
int x;
if (msg != NULL)
fprintf(stdout, "%s\n", msg);
data_dump(data, len);
if (pausesnap) {
fprintf(stdout, "Press enter to continue\n");
x = getc(stdin);
}
} | snap | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/cckddiag | ida | O0 |
int syntax() {
fwrite("\n"
"cckddiag [options] file-name\n"
"Valid options are one or more of the following:\n"
" -v display version and exit\n"
" -d display DEVHDR\n"
" -c display CDEVHDR\n"
" -1 display L1TAB (numeric one)\n"
... | int syntax() {
fprintf(stdout, "\n"
"cckddiag [options] file-name\n"
"Valid options are one or more of the following:\n"
" -v display version and exit\n"
" -d display DEVHDR\n"
" -c display CDEVHDR\n"
... | syntax | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/cckddiag | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int v3;
const char **v4;
const char **v5;
unsigned char v6;
const char *v7;
int v8;
long v9;
int v10;
const char *v11;
size_t v12;
const char *v13;
_WORD *v14;
unsigned short v15;
long v16;
long v17;
const char *v18;
size_t v19... | int main(int argc, char *argv[]) {
int altcylflag = 0;
int rawflag = 0;
int volsize_argnum = 4;
U32 size = 0;
U32 altsize = 0;
U32 heads = 0;
U32 maxdlen = 0;
U32 sectsize = 0;
U16 devtype = 0;
BYTE comp = 0xff;
BYTE type = 0;
char fname[1024];
char volser[7];
BYTE c;
CKDDEV *ckd;
FBADEV... | main | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdinit | ida | O0 |
void argexit(int code) {
fwrite(
"Syntax:\tdasdconv [options] infile outfile\n"
"where:\n"
"\tinfile = name of input HDR-30 CKD image file (\"-\" means stdin)\n"
"\t\t (input file may be compressed)\n"
"\toutfile = name of AWSCKD image file to be created\n"
"options:\n"
... | static void argexit(int code) {
fprintf(stderr, "Syntax:\tdasdconv [options] infile outfile\n"
"where:\n\tinfile = name of input HDR-30 CKD image file"
" (\"-\" means stdin)\n"
#if defined(HAVE_LIBZ)
"\t\t (input file may be compressed)\n"
#endif
... | argexit | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdconv | ida | O0 |
void convert_ckd_file(gzFile ifd, char *ifname, int itrklen, BYTE *itrkbuf,
int repl, int quiet, char *ofname, int fseqn, U16 devtype,
U32 heads, U32 trksize, BYTE *obuf, U32 start, U32 end,
U32 volcyls) {
BYTE v16;
U32 v17;
short v18;
uint8_t v1... | static void convert_ckd_file(IFD ifd, char *ifname, int itrklen, BYTE *itrkbuf,
int repl, int quiet, char *ofname, int fseqn,
U16 devtype, U32 heads, U32 trksize, BYTE *obuf,
U32 start, U32 end, U32 volcyls, BYTE *volser) {
int rc;... | convert_ckd_file | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdconv | ida | O0 |
long find_input_record(BYTE *buf, BYTE **ppbuf, int *plen, BYTE *pkl,
BYTE **pkp, U16 *pdl, BYTE **pdp, U32 *pcc, BYTE *phh) {
unsigned int v9;
long v11;
long v12;
unsigned short v14;
long v15;
long v16;
int v17;
long v18;
int v19;
long v20;
signed int v21;
v9 = 1;
v11 ... | static int find_input_record(BYTE *buf, BYTE **ppbuf, int *plen, BYTE *pkl,
BYTE **pkp, U16 *pdl, BYTE **pdp, U32 *pcc,
U32 *phh, BYTE *prn) {
H30CKD_RECHDR *hrec;
U16 dlen;
BYTE klen;
int n;
UNREFERENCED(buf);
if (*plen < H30CKD_RECHDR_SIZE)
r... | find_input_record | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdconv | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int v3;
const char **v4;
const char **v5;
int v6;
int v7;
int v8;
const char *v9;
int v10;
size_t v11;
const char *v12;
gzFile_s *v13;
unsigned short v14;
FILE *v15;
__m128i *v16;
BYTE *v17;
__m128i v18;
__m128i v19;
U16 *v20... | int main(int argc, char *argv[]) {
IFD ifd;
int repl = 0;
int quiet = 0;
BYTE *itrkbuf;
U32 itrklen;
U32 volcyls;
U32 heads = 0;
U32 maxdlen = 0;
U16 devtype;
char ifname[256];
char ofname[256];
BYTE volser[7];
int lfs = 0;
INITIALIZE_UTILITY("dasdconv");
display_version(stderr, "Hercule... | main | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdconv | ida | O0 |
void read_input_data(gzFile ifd, char *ifname, BYTE *buf, int reqlen,
U32 offset) {
int i;
int v9;
int *v10;
char *v11;
if (reqlen > 0) {
for (i = 0; i < reqlen; i += v9) {
v9 = gzread(ifd, &buf[i], (unsigned int)(reqlen - i));
if (!v9) {
__fprintf_chk(stderr, 1,
... | static void read_input_data(IFD ifd, char *ifname, BYTE *buf, int reqlen,
U32 offset) {
int rc;
int len = 0;
while (len < reqlen) {
rc = IFREAD(ifd, buf + len, reqlen - len);
if (rc == 0)
break;
if (rc < 0) {
fprintf(stderr, "%s read error: %s\n", ifname, strer... | read_input_data | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdconv | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int v3;
const char **v4;
const char *v5;
const char *v6;
int v7;
int v8;
int v9;
BYTE *v10;
int v11;
long v12;
BYTE *v13;
const char **v14;
const char *v15;
int v16;
int v17;
MEMINFO *v18;
int v19;
unsigned int v20;
unsigne... | int main(int argc, char *argv[]) {
int rc;
int i;
int len;
int cyl;
int head;
int rec;
int trk;
char *fname;
char *sfname;
int noext;
DSXTENT extent[16];
BYTE *blkptr;
CIFBLK *cif;
MEMINFO *memtab;
int nmem = 0;
INITIALIZE_UTILITY("dasdisup");
display_version(stderr, "Hercules IEHIOS... | main | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdisup | ida | O0 |
void check_checksum(unsigned long length, libspectrum_byte *data) {
const char *v2;
libspectrum_byte checksum;
_BOOL4 retval;
size_t i;
retval = 0;
checksum = 0;
if (length) {
for (i = 0; i < length - 1; ++i)
checksum ^= data[i];
retval = checksum == data[length - 1];
}
if (retval)
... | static void check_checksum(unsigned long length, libspectrum_byte *data) {
int retval = 0;
libspectrum_byte checksum = 0;
if (length) {
size_t i;
for (i = 0; i < length - 1; i++) {
checksum ^= data[i];
}
retval = checksum == data[length - 1];
}
printf(" Checksum: 0x%02x (%s)\n", checks... | check_checksum | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/tzxlist | ida | O0 |
char *convert_charset(char *input) {
char *output_ptr;
size_t output_left;
char *input_ptr;
size_t input_left;
size_t min_output_size;
unsigned long v7;
v7 = __readfsqword(0x28u);
output_ptr = output_2;
output_left = output_size_1;
input_ptr = input;
input_left = strlen(input) + 1;
min_output_s... | static char *convert_charset(char *input) {
#ifdef HAVE_ICONV
const int expansion_factor = 3;
static char *output = NULL;
static size_t output_size = 0;
char *output_ptr = output;
size_t output_left = output_size;
ICONV_CONST char *input_ptr = input;
size_t input_left = strlen(input) + 1;
size_t min_out... | convert_charset | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/tzxlist | ida | O0 |
void decode_header(libspectrum_tape_block *block) {
_BOOL4 v1;
_BOOL4 v2;
int *v3;
char *v4;
int v5;
int *v6;
char *v7;
const char *v8;
int v9;
int v10;
int save;
int i;
int is_header;
int zxlength;
int parameter1;
int parameter2;
FILE *f;
long length;
libspectrum_byte *data;
cha... | static void decode_header(libspectrum_tape_block *block) {
unsigned long length = libspectrum_tape_block_data_length(block);
libspectrum_byte *data = libspectrum_tape_block_data(block);
int is_header = length == 19 && data[0] == 0x00;
char filename[17];
int save = 0, i, zxlength, parameter1, parameter2;
sta... | decode_header | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/tzxlist | ida | O0 |
void dump_pilot_repeats(libspectrum_tape_block *block) {
int v1;
unsigned char v2;
size_t i;
libspectrum_tape_generalised_data_symbol_table *pilot;
pilot = (libspectrum_tape_generalised_data_symbol_table *)
libspectrum_tape_block_pilot_table(block);
for (i = 0;
i < (unsigned int)
... | static void dump_pilot_repeats(libspectrum_tape_block *block) {
size_t i;
libspectrum_tape_generalised_data_symbol_table *pilot =
libspectrum_tape_block_pilot_table(block);
for (i = 0;
i <
libspectrum_tape_generalised_data_symbol_table_symbols_in_block(pilot);
i++) {
printf(" R... | dump_pilot_repeats | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/tzxlist | ida | O0 |
void dump_symbol_table(libspectrum_tape_generalised_data_symbol_table *table) {
unsigned int v1;
int v2;
unsigned short v3;
libspectrum_byte pulses;
libspectrum_word symbols;
size_t i;
size_t j;
libspectrum_tape_generalised_data_symbol *symbol;
pulses = libspectrum_tape_generalised_data_symbol_table_... | static void
dump_symbol_table(libspectrum_tape_generalised_data_symbol_table *table) {
size_t i, j;
libspectrum_byte pulses =
libspectrum_tape_generalised_data_symbol_table_max_pulses(table);
libspectrum_word symbols =
libspectrum_tape_generalised_data_symbol_table_symbols_in_table(table);
printf(... | dump_symbol_table | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/tzxlist | ida | O0 |
void fprint_block_name(FILE *f, libspectrum_byte *data) {
char c;
int i;
for (i = 2; i <= 11; ++i) {
if (data[i] <= 0x1Fu || data[i] > 0x7Eu)
c = 63;
else
c = data[i];
fputc(c, f);
}
} | static void fprint_block_name(FILE *f, libspectrum_byte *data) {
int i;
for (i = 2; i < 12; i++) {
char c;
if (data[i] >= 32 && data[i] < 127) {
c = data[i];
} else {
c = '?';
}
fprintf(f, "%c", c);
}
} | fprint_block_name | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/tzxlist | ida | O0 |
const char *hardware_desc(int type, int id) {
const char *result;
if (type == 4) {
switch (id) {
case 0:
result = "Kempston joystick";
break;
case 1:
result = "Cursor/Protek/AGF joystick";
break;
case 2:
result = "Sinclair joystick (Left)";
break;
case 3:
... | static const char *hardware_desc(int type, int id) {
switch (type) {
case 0:
switch (id) {
case 0:
return "16K Spectrum";
case 1:
return "48K Spectrum/Spectrum +";
case 2:
return "48K Spectrum (Issue 1)";
case 3:
return "128K Spectrum";
case 4:
return "Spectrum ... | hardware_desc | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/tzxlist | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int j;
char **argva;
int argca;
int ret;
int i;
int error;
int errora;
option long_options[3];
unsigned long v12;
v12 = __readfsqword(0x28u);
ret = 0;
error = 0;
long_options[0].name = "help";
long_options[0].has_arg = 0;
long_opt... | int main(int argc, char **argv) {
int ret = 0;
int i;
int c, error = 0;
struct option long_options[] = {
{"help", 0, NULL, 'h'}, {"version", 0, NULL, 'V'}, {0, 0, 0, 0}};
progname = argv[0];
while ((c = getopt_long(argc, argv, "d:hV", long_options, NULL)) != -1) {
switch (c) {
case 'd':
... | main | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/tzxlist | ida | O0 |
void print_block_name(libspectrum_byte *data) {
fprint_block_name(stdout, data);
} | static void print_block_name(libspectrum_byte *data) {
fprint_block_name(stdout, data);
} | print_block_name | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/tzxlist | ida | O0 |
int process_tape(char *filename) {
int v2;
double v3;
unsigned int v4;
unsigned int v5;
long v6;
int v7;
int v8;
long v9;
int v10;
int v11;
int v12;
int v13;
long v14;
long v15;
int v16;
long v17;
long v18;
int v19;
size_t v20;
long v21;
long v22;
int v23;
int v24;
int v2... | static int process_tape(char *filename) {
int error, min;
float sec;
unsigned char *buffer;
size_t length;
libspectrum_tape *tape;
libspectrum_tape_iterator iterator;
libspectrum_tape_block *block;
libspectrum_qword total_length = 0;
libspectrum_id_t type;
size_t i;
error = read_file(filename, &... | process_tape | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/tzxlist | ida | O0 |
void show_help() {
printf(
"Usage: %s [OPTION] <tapefile>...\n"
"Outputs a description of the contents of TZX, TAP, PZX and Warajevo "
"tape files.\n"
"\n"
"Options:\n"
" -d <num> Dump standard block (header and data) number <num>.\n"
" Use -1 to dump... | static void show_help(void) {
printf(
"Usage: %s [OPTION] <tapefile>...\n"
"Outputs a description of the contents of TZX, TAP, PZX and Warajevo "
"tape files.\n"
"\n"
"Options:\n"
" -d <num> Dump standard block (header and data) number <num>.\n"
" Use... | show_help | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/tzxlist | ida | O0 |
void show_version() {
puts("tzxlist (fuse-utils) 1.4.3\n"
"Copyright (c) 2001-2011 Philip Kendall, Darren Salt, Fredrick Meunier\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"
... | static void show_version(void) {
printf(
PROGRAM_NAME
" (" PACKAGE ") " PACKAGE_VERSION "\n"
"Copyright (c) 2001-2011 Philip Kendall, Darren Salt, Fredrick Meunier\n"
"License GPLv2+: GNU GPL version 2 or later "
"<http://gnu.org/licenses/gpl.html>\n"
"This is free software: you ar... | show_version | fuse-utils-1.4.3-r1 | app-emulation | O0/app-emulation/fuse-utils-1.4.3-r1/tzxlist | ida | O0 |
int main(int argc, const char **argv, const char **envp) {
int v4;
const char **v5;
char *v6;
char *v7;
bool v8;
bool v9;
long v10;
long v11;
char *v12;
long v13;
const char *v14;
char *v15;
int v16;
const char **v17;
long v18;
int v19;
bool v20;
bool v21;
const char *v22;
unsign... | int main(int argc, char *argv[]) {
char *pgm;
int ckddasd = -1;
int rc;
int quiet = 0;
int comp = 255;
int cyls = -1, blks = -1;
int lfs = 0;
int alt = 0;
int r = 0;
int in = 0, out = 0;
int fd;
char *ifile, *ofile;
char *sfile = NULL;
CIFBLK *icif, *ocif;
DEVBLK *idev, *odev;
CKDDEV *c... | main | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdcopy | ida | O0 |
int nulltrk(BYTE *buf, int trk, int heads, int nullfmt) {
short v5;
short v6;
BYTE *v7;
int v9;
long v10;
*buf = 0;
*(_DWORD *)(buf + 9) = 0x8000000;
v5 = __ROL2__(trk / heads, 8);
v6 = __ROL2__(trk % heads, 8);
*(_WORD *)(buf + 1) = v5;
*(_WORD *)(buf + 3) = v6;
*(_WORD *)(buf + 5) = v5;
*(_... | int nulltrk(BYTE *buf, int trk, int heads, int nullfmt) {
int i;
CKDDASD_TRKHDR *trkhdr;
CKDDASD_RECHDR *rechdr;
U32 cyl;
U32 head;
BYTE r;
BYTE *pos;
static BYTE eighthexFF[] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
cyl = trk / heads;
head = trk % heads;
trkhdr = (CKDDASD_TRKHDR *)bu... | nulltrk | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdcopy | ida | O0 |
void status(int i, int n) {
if (extgui) {
if (__ROR4__(-1030792151 * i + 85899344, 2) <= 0x28F5C28u)
__fprintf_chk(stderr, 1, "TRK=%d\n", i);
} else {
__printf_chk(1, "\r%c %3d%% %7d", (unsigned int)indic_0[i % 4],
(int)((double)i * 100.0 / (double)n), i);
}
} | void status(int i, int n) {
static char indic[] = "|/-\\";
#ifdef EXTERNALGUI
if (extgui) {
if (i % 100)
return;
fprintf(stderr, "TRK=%d\n", i);
return;
}
#endif
printf("\r%c %3d%% %7d", indic[i % 4], (int)((i * 100.0) / n), i);
} | status | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdcopy | ida | O0 |
long syntax(const char *a1, long a2, long a3, long a4, long a5, char *pgm) {
char usage[8200];
unsigned long v8;
v8 = __readfsqword(0x28u);
if (!strcmp(a1, "ckd2cckd")) {
__snprintf_chk(
usage, 0x2000, 1, 0x2000,
"usage: ckd2cckd [-options] ifile ofile\n"
"\n"
" copy a ... | int syntax(char *pgm) {
char usage[8192];
if (strcmp(pgm, "ckd2cckd") == 0)
snprintf(usage, 8192,
_("usage: ckd2cckd [-options] ifile ofile\n"
"\n"
" copy a ckd dasd file to a compressed ckd dasd file\n"
"\n"
" ifile -- ... | syntax | hercules-3.13-r1 | app-emulation | O0/app-emulation/hercules-3.13-r1/dasdcopy | ida | O0 |
emacs_value Fvterm_get_icrnl(emacs_env *env, ptrdiff_t nargs, emacs_value *args,
void *data) {
long v4;
long v5;
Term *term;
termios keys;
unsigned long v9;
v9 = __readfsqword(0x28u);
term = (Term *)((long (*)(emacs_env *, emacs_value, emacs_value,
... | emacs_value Fvterm_get_icrnl(emacs_env *env, ptrdiff_t nargs,
emacs_value args[], void *data) {
Term *term = env->get_user_ptr(env, args[0]);
if (term->pty_fd > 0) {
struct termios keys;
tcgetattr(term->pty_fd, &keys);
if (keys.c_iflag & ICRNL)
return Qt;
else
... | Fvterm_get_icrnl | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value Fvterm_get_pwd(emacs_env *env, ptrdiff_t nargs, emacs_value *args,
void *data) {
int v4;
int v5;
emacs_value (*make_string)(emacs_env *, const char *, ptrdiff_t);
size_t v7;
Term *term;
const char *dir;
term = (Term *)env->get_user_ptr(env, *args);
v4 = env->extra... | emacs_value Fvterm_get_pwd(emacs_env *env, ptrdiff_t nargs, emacs_value args[],
void *data) {
Term *term = env->get_user_ptr(env, args[0]);
int linenum = env->extract_integer(env, args[1]);
int row = linenr_to_row(term, linenum);
char *dir = get_row_directory(term, row);
return dir... | Fvterm_get_pwd | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value Fvterm_new(emacs_env *env, ptrdiff_t nargs, emacs_value *args,
void *data) {
int v4;
int i;
int i_0;
int rows;
unsigned int cols;
int sb_size;
int disable_bold_font;
int disable_underline;
int disable_inverse_video;
int ignore_blink_cursor;
Term *term;
VTermSta... | emacs_value Fvterm_new(emacs_env *env, ptrdiff_t nargs, emacs_value args[],
void *data) {
Term *term = malloc(sizeof(Term));
int rows = env->extract_integer(env, args[0]);
int cols = env->extract_integer(env, args[1]);
int sb_size = env->extract_integer(env, args[2]);
int disable_bold_... | Fvterm_new | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value Fvterm_redraw(emacs_env *env, ptrdiff_t nargs, emacs_value *args,
void *data) {
long v4;
long v5;
Term *term;
term =
(Term *)((long (*)(emacs_env *, emacs_value, emacs_value,
void *(*)(emacs_env *, emacs_value), long, long,
... | emacs_value Fvterm_redraw(emacs_env *env, ptrdiff_t nargs, emacs_value args[],
void *data) {
Term *term = env->get_user_ptr(env, args[0]);
term_redraw(term, env);
return env->make_integer(env, 0);
} | Fvterm_redraw | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value Fvterm_reset_cursor_point(emacs_env *env, ptrdiff_t nargs,
emacs_value *args, void *data) {
long v4;
long v5;
int v6;
Term *term;
term =
(Term *)((long (*)(emacs_env *, emacs_value, emacs_value,
void *(*)(emacs_env *, emacs_valu... | emacs_value Fvterm_reset_cursor_point(emacs_env *env, ptrdiff_t nargs,
emacs_value args[], void *data) {
Term *term = env->get_user_ptr(env, args[0]);
int line = row_to_linenr(term, term->cursor.row);
goto_line(env, line);
goto_col(term, env, term->cursor.row, term->cursor.... | Fvterm_reset_cursor_point | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value Fvterm_set_pty_name(emacs_env *env, ptrdiff_t nargs,
emacs_value *args, void *data) {
void *v4;
int v5;
void *dataa;
emacs_value *argsa;
ptrdiff_t nargsa;
emacs_env *enva;
ptrdiff_t len;
Term *term;
ptrdiff_t v13;
char (*p_filename)[];
unsigned long v15;... | emacs_value Fvterm_set_pty_name(emacs_env *env, ptrdiff_t nargs,
emacs_value args[], void *data) {
Term *term = env->get_user_ptr(env, args[0]);
if (nargs > 1) {
ptrdiff_t len = string_bytes(env, args[1]);
char filename[len];
env->copy_string_contents(env, args[1], file... | Fvterm_set_pty_name | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value Fvterm_set_size(emacs_env *env, ptrdiff_t nargs, emacs_value *args,
void *data) {
long rows;
Term *term;
term = (Term *)env->get_user_ptr(env, *args);
LODWORD(rows) = env->extract_integer(env, args[1]);
HIDWORD(rows) = env->extract_integer(env, args[2]);
if (rows != ... | emacs_value Fvterm_set_size(emacs_env *env, ptrdiff_t nargs, emacs_value args[],
void *data) {
Term *term = env->get_user_ptr(env, args[0]);
int rows = env->extract_integer(env, args[1]);
int cols = env->extract_integer(env, args[2]);
if (cols != term->width || rows != term->height)... | Fvterm_set_size | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value Fvterm_update(emacs_env *env, ptrdiff_t nargs, emacs_value *args,
void *data) {
void *v4;
void *dataa;
emacs_value *argsa;
ptrdiff_t nargsa;
emacs_env *enva;
VTermModifier modifier;
ptrdiff_t len;
Term *term;
ptrdiff_t v13;
unsigned char (*p_key)[];
unsigned l... | emacs_value Fvterm_update(emacs_env *env, ptrdiff_t nargs, emacs_value args[],
void *data) {
Term *term = env->get_user_ptr(env, args[0]);
if (nargs > 1) {
ptrdiff_t len = string_bytes(env, args[1]);
unsigned char key[len];
env->copy_string_contents(env, args[1], (char *)key, ... | Fvterm_update | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value Fvterm_write_input(emacs_env *env, ptrdiff_t nargs,
emacs_value *args, void *data) {
void *v4;
void *dataa;
emacs_value *argsa;
ptrdiff_t nargsa;
emacs_env *enva;
ptrdiff_t len;
Term *term;
ptrdiff_t v12;
char (*p_bytes)[];
unsigned long v14;
enva = env;... | emacs_value Fvterm_write_input(emacs_env *env, ptrdiff_t nargs,
emacs_value args[], void *data) {
Term *term = env->get_user_ptr(env, args[0]);
ptrdiff_t len = string_bytes(env, args[1]);
char bytes[len];
env->copy_string_contents(env, args[1], bytes, &len);
vterm_input_write(... | Fvterm_write_input | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void add_text_properties(emacs_env *env, emacs_value string,
emacs_value property) {
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
emacs_value start;
emacs_value end;
_QWORD v7[6];
v7[5] = __readfsqword(0x28u);
start = env->make_integer(env, 0);
end ... | void add_text_properties(emacs_env *env, emacs_value string,
emacs_value property) {
emacs_value start = env->make_integer(env, 0);
emacs_value end = length(env, string);
env->funcall(env, Fadd_text_properties, 4,
(emacs_value[]){start, end, property, string});
} | add_text_properties | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void adjust_topline(Term *term, emacs_env *env) {
intmax_t (*extract_integer)(emacs_env *, emacs_value);
emacs_value v3;
intmax_t (*v4)(emacs_env *, emacs_value);
emacs_value v5;
emacs_value_tag *v6;
emacs_value_tag *v7;
int i;
int winnum;
int win_body_height;
VTermState *state;
emacs_value_tag *w... | static void adjust_topline(Term *term, emacs_env *env) {
VTermState *state = vterm_obtain_state(term->vt);
VTermPos pos;
vterm_state_get_cursorpos(state, &pos);
goto_line(env, pos.row - term->height);
goto_col(term, env, pos.row, pos.col);
emacs_value windows = get_buffer_window_list(env);
emacs_value s... | adjust_topline | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
LineInfo *alloc_lineinfo() {
LineInfo *result;
result = (LineInfo *)malloc(0x10u);
result->directory = 0;
result->prompt_col = -1;
return result;
} | static LineInfo *alloc_lineinfo() {
LineInfo *info = malloc(sizeof(LineInfo));
info->directory = NULL;
info->prompt_col = -1;
return info;
} | alloc_lineinfo | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void bind_function(emacs_env *env, const char *name, emacs_value Sfun) {
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
emacs_value Qfset;
emacs_value Qsym;
_QWORD v7[4];
v7[3] = __readfsqword(0x28u);
Qfset = env->intern(env, "fset");
Qsym = env->intern(env, name);
funcall ... | void bind_function(emacs_env *env, const char *name, emacs_value Sfun) {
emacs_value Qfset = env->intern(env, "fset");
emacs_value Qsym = env->intern(env, name);
env->funcall(env, Qfset, 2, (emacs_value[]){Qsym, Sfun});
} | bind_function | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value cell_rgb_color(emacs_env *env, Term *term, VTermScreenCell *cell,
bool is_foreground) {
VTermColor *p_fg;
int v5;
VTermColor *color;
VTermState *state;
char buffer[8];
unsigned long v10;
v10 = __readfsqword(0x28u);
if (is_foreground)
p_fg = &cell->fg;
else
... | static emacs_value cell_rgb_color(emacs_env *env, Term *term,
VTermScreenCell *cell, bool is_foreground) {
VTermColor *color = is_foreground ? &cell->fg : &cell->bg;
if (VTERM_COLOR_IS_DEFAULT_FG(color)) {
return vterm_get_color(env, -1 + (cell->attrs.underline ? -10 : 0));
... | cell_rgb_color | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
size_t codepoint_to_utf8(const uint32_t codepoint, unsigned char *buffer) {
if (codepoint > 0x7F) {
if (codepoint > 0x7FF) {
if (codepoint > 0xFFFF) {
if (codepoint > 0x10FFFF) {
return 0;
} else {
*buffer = (codepoint >> 18) | 0xF0;
buffer[1] = (codepoint >> 12... | size_t codepoint_to_utf8(const uint32_t codepoint, unsigned char buffer[4]) {
if (codepoint <= 0x7F) {
buffer[0] = codepoint;
return 1;
}
if (codepoint >= 0x80 && codepoint <= 0x07FF) {
buffer[0] = 0xC0 | (codepoint >> 6);
buffer[1] = 0x80 | (codepoint & 0x3F);
return 2;
}
if (codepoint >=... | codepoint_to_utf8 | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
bool compare_cells(VTermScreenCell *a, VTermScreenCell *b) {
bool v2;
bool v3;
bool v4;
bool v5;
bool v6;
v2 = (unsigned int)vterm_color_is_equal(&a->fg, &b->fg) &&
(unsigned int)vterm_color_is_equal(&a->bg, &b->bg);
v3 = v2 && (*(_BYTE *)&a->attrs & 1) == (*(_BYTE *)&b->attrs & 1);
v4 = v3 &&
... | static bool compare_cells(VTermScreenCell *a, VTermScreenCell *b) {
bool equal = true;
equal = equal && vterm_color_is_equal(&a->fg, &b->fg);
equal = equal && vterm_color_is_equal(&a->bg, &b->bg);
equal = equal && (a->attrs.bold == b->attrs.bold);
equal = equal && (a->attrs.underline == b->attrs.underline);
... | compare_cells | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
char *concat(char *str1, const char *str2, size_t str2_len, bool free_str1) {
char *str1a;
size_t str1_len;
char *buf;
if (str1) {
str1_len = strlen(str1);
buf = (char *)malloc(str1_len + str2_len + 1);
memcpy(buf, str1, str1_len);
memcpy(&buf[str1_len], str2, str2_len);
buf[str2_len + str1... | static char *concat(char *str1, const char *str2, size_t str2_len,
bool free_str1) {
if (str1 == NULL) {
str1 = malloc(str2_len + 1);
memcpy(str1, str2, str2_len);
str1[str2_len] = '\0';
return str1;
}
size_t str1_len = strlen(str1);
char *buf = malloc(str1_len + str2_len + 1... | concat | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void delete_lines(emacs_env *env, int linenum, int count, bool del_whole_line) {
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
emacs_value Qlinenum;
emacs_value Qcount;
_QWORD v9[2];
emacs_value v10;
unsigned long v11;
v11 = __readfsqword(0x28u);
Qlinenum = env->make_integ... | void delete_lines(emacs_env *env, int linenum, int count, bool del_whole_line) {
emacs_value Qlinenum = env->make_integer(env, linenum);
emacs_value Qcount = env->make_integer(env, count);
if (del_whole_line) {
env->funcall(env, Fdelete_lines, 3, (emacs_value[]){Qlinenum, Qcount, Qt});
} else {
env->fun... | delete_lines | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
int emacs_module_init(emacs_runtime *ert) {
emacs_value (*make_global_ref)(emacs_env *, emacs_value);
long v2;
emacs_value (*v3)(emacs_env *, emacs_value);
long v4;
emacs_value (*v5)(emacs_env *, emacs_value);
long v6;
emacs_value (*v7)(emacs_env *, emacs_value);
long v8;
emacs_value (*v9)(emacs_env *... | int emacs_module_init(struct emacs_runtime *ert) {
emacs_env *env = ert->get_environment(ert);
Qt = env->make_global_ref(env, env->intern(env, "t"));
Qnil = env->make_global_ref(env, env->intern(env, "nil"));
Qnormal = env->make_global_ref(env, env->intern(env, "normal"));
Qbold = env->make_global_ref(env, e... | emacs_module_init | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
bool eq(emacs_env *env, emacs_value e1, emacs_value e2) {
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
emacs_value_tag *v4;
_QWORD v6[4];
v6[3] = __readfsqword(0x28u);
funcall = env->funcall;
v6[0] = e1;
v6[1] = e2;
v4 = funcall(env, Feq, 2, (emacs_value *)v6);
return e... | bool eq(emacs_env *env, emacs_value e1, emacs_value e2) {
emacs_value Qeq = env->funcall(env, Feq, 2, (emacs_value[]){e1, e2});
return env->is_not_nil(env, Qeq);
} | eq | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void erase_buffer(emacs_env *env) { env->funcall(env, Ferase_buffer, 0, 0); } | void erase_buffer(emacs_env *env) { env->funcall(env, Ferase_buffer, 0, NULL); } | erase_buffer | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void fetch_cell(Term *term, int row, int col, VTermScreenCell *cell) {
VTermScreenCell *v4;
long v5;
long v6;
VTermColor fg;
VTermColor bg;
ScrollbackLine *sbrow;
VTermState *state;
unsigned long v12;
v12 = __readfsqword(0x28u);
if (row >= 0) {
vterm_screen_get_cell(
term->vts, ((unsign... | static void fetch_cell(Term *term, int row, int col, VTermScreenCell *cell) {
if (row < 0) {
ScrollbackLine *sbrow = term->sb_buffer[-row - 1];
if ((size_t)col < sbrow->cols) {
*cell = sbrow->cells[col];
} else {
VTermColor fg, bg;
VTermState *state = vterm_obtain_state(term->vt);
... | fetch_cell | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void forward_char(emacs_env *env, emacs_value n) {
long v2;
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
_QWORD v4[2];
v4[1] = __readfsqword(0x28u);
funcall = env->funcall;
v4[0] = n;
((void (*)(
emacs_env *, emacs_value, long, _QWORD *,
emacs_value (*)(emacs_en... | void forward_char(emacs_env *env, emacs_value n) {
env->funcall(env, Fforward_char, 1, (emacs_value[]){n});
} | forward_char | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void forward_line(emacs_env *env, int n) {
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
emacs_value nline;
_QWORD v4[2];
v4[1] = __readfsqword(0x28u);
nline = env->make_integer(env, n);
funcall = env->funcall;
v4[0] = nline;
funcall(env, Fforward_line, 1, (emacs_value *)v... | void forward_line(emacs_env *env, int n) {
emacs_value nline = env->make_integer(env, n);
env->funcall(env, Fforward_line, 1, (emacs_value[]){nline});
} | forward_line | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void free_lineinfo(LineInfo *line) {
if (line) {
if (line->directory) {
free(line->directory);
line->directory = 0;
}
free(line);
}
} | void free_lineinfo(LineInfo *line) {
if (line == NULL) {
return;
}
if (line->directory != NULL) {
free(line->directory);
line->directory = NULL;
}
free(line);
} | free_lineinfo | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value get_buffer_window_list(emacs_env *env) {
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
_QWORD v3[4];
v3[3] = __readfsqword(0x28u);
funcall = env->funcall;
v3[0] = Qnil;
v3[1] = Qnil;
v3[2] = Qt;
return funcall(env, Fget_buffer_window_list, 3, (emacs_value *)v3)... | emacs_value get_buffer_window_list(emacs_env *env) {
return env->funcall(env, Fget_buffer_window_list, 3,
(emacs_value[]){Qnil, Qnil, Qt});
} | get_buffer_window_list | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
LineInfo *get_lineinfo(Term *term, int row) {
if (row >= 0)
return term->lines[row];
else
return term->sb_buffer[-row - 1]->info;
} | static LineInfo *get_lineinfo(Term *term, int row) {
if (row < 0) {
ScrollbackLine *sbrow = term->sb_buffer[-row - 1];
return sbrow->info;
} else {
return term->lines[row];
}
} | get_lineinfo | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
char *get_row_directory(Term *term, int row) {
LineInfo *line;
if (row < 0)
return term->sb_buffer[-row - 1]->info->directory;
line = term->lines[row];
if (line)
return line->directory;
else
return 0;
} | static char *get_row_directory(Term *term, int row) {
if (row < 0) {
ScrollbackLine *sbrow = term->sb_buffer[-row - 1];
return sbrow->info->directory;
} else {
LineInfo *line = term->lines[row];
return line ? line->directory : NULL;
}
} | get_row_directory | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void goto_char(emacs_env *env, int pos) {
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
emacs_value point;
_QWORD v4[2];
v4[1] = __readfsqword(0x28u);
point = env->make_integer(env, pos);
funcall = env->funcall;
v4[0] = point;
funcall(env, Fgoto_char, 1, (emacs_value *)v4)... | void goto_char(emacs_env *env, int pos) {
emacs_value point = env->make_integer(env, pos);
env->funcall(env, Fgoto_char, 1, (emacs_value[]){point});
} | goto_char | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void goto_col(Term *term, emacs_env *env, int row, int end_col) {
emacs_value_tag *v4;
int height;
int width;
int col;
int i;
size_t offset;
size_t beyond_eol;
emacs_value space;
VTermScreenCell cell;
unsigned long v15;
v15 = __readfsqword(0x28u);
col = 0;
offset = 0;
beyond_eol = 0;
vter... | static void goto_col(Term *term, emacs_env *env, int row, int end_col) {
int col = 0;
size_t offset = 0;
size_t beyond_eol = 0;
int height;
int width;
vterm_get_size(term->vt, &height, &width);
while (col < end_col) {
VTermScreenCell cell;
fetch_cell(term, row, col, &cell);
if (cell.chars[0]... | goto_col | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void goto_line(emacs_env *env, int n) {
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
emacs_value nline;
_QWORD v4[2];
v4[1] = __readfsqword(0x28u);
nline = env->make_integer(env, n);
funcall = env->funcall;
v4[0] = nline;
funcall(env, Fgoto_line, 1, (emacs_value *)v4);
} | void goto_line(emacs_env *env, int n) {
emacs_value nline = env->make_integer(env, n);
env->funcall(env, Fgoto_line, 1, (emacs_value[]){nline});
} | goto_line | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void insert(emacs_env *env, emacs_value string) {
long v2;
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
_QWORD v4[2];
v4[1] = __readfsqword(0x28u);
funcall = env->funcall;
v4[0] = string;
((void (*)(
emacs_env *, emacs_value, long, _QWORD *,
emacs_value (*)(emac... | void insert(emacs_env *env, emacs_value string) {
env->funcall(env, Finsert, 1, (emacs_value[]){string});
} | insert | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void invalidate_terminal(Term *term, int start_row, int end_row) {
int invalid_start;
int invalid_end;
if (start_row != -1 && end_row != -1) {
invalid_start = term->invalid_start;
if (start_row <= invalid_start)
invalid_start = start_row;
term->invalid_start = invalid_start;
invalid_end = t... | static void invalidate_terminal(Term *term, int start_row, int end_row) {
if (start_row != -1 && end_row != -1) {
term->invalid_start = MIN(term->invalid_start, start_row);
term->invalid_end = MAX(term->invalid_end, end_row);
}
term->is_invalidated = true;
} | invalidate_terminal | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
int is_end_of_prompt(Term *term, int end_col, int row, int col) {
LineInfo *info;
info = get_lineinfo(term, row);
if (!info)
return 0;
if (info->prompt_col < 0)
return 0;
if (col == info->prompt_col)
return 1;
return is_eol(term, end_col, row, col) && col <= info->prompt_col;
} | static int is_end_of_prompt(Term *term, int end_col, int row, int col) {
LineInfo *info = get_lineinfo(term, row);
if (info == NULL) {
return 0;
}
if (info->prompt_col < 0) {
return 0;
}
if (info->prompt_col == col) {
return 1;
}
if (is_eol(term, end_col, row, col) && info->prompt_col >= col... | is_end_of_prompt | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
bool is_eol(Term *term, int end_col, int row, int col) {
int c;
ScrollbackLine *sbrow;
if (row >= 0)
return (unsigned int)vterm_screen_is_eol(term->vts, __PAIR64__(col, row)) !=
0;
sbrow = term->sb_buffer[-row - 1];
for (c = col; c < end_col && c < sbrow->cols; c += sbrow->cells[c].width) {
... | static bool is_eol(Term *term, int end_col, int row, int col) {
if (row >= 0) {
VTermPos pos = {.row = row, .col = col};
return vterm_screen_is_eol(term->vts, pos);
}
ScrollbackLine *sbrow = term->sb_buffer[-row - 1];
int c;
for (c = col; c < end_col && c < sbrow->cols;) {
if (sbrow->cells[c].ch... | is_eol | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
bool is_key(unsigned char *key, size_t len, char *key_description) {
return len == strlen(key_description) && !memcmp(key, key_description, len);
} | static bool is_key(unsigned char *key, size_t len, char *key_description) {
return (len == strlen(key_description) &&
memcmp(key, key_description, len) == 0);
} | is_key | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value length(emacs_env *env, emacs_value string) {
long v2;
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
_QWORD v5[2];
v5[1] = __readfsqword(0x28u);
funcall = env->funcall;
v5[0] = string;
return (emacs_value)((long (*)(
emacs_env *, emacs_value, long, _QWORD *,... | emacs_value length(emacs_env *env, emacs_value string) {
return env->funcall(env, Flength, 1, (emacs_value[]){string});
} | length | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
int linenr_to_row(Term *term, int linenr) {
return linenr - term->sb_current - 1;
} | static int linenr_to_row(Term *term, int linenr) {
return linenr - (int)term->sb_current - 1;
} | linenr_to_row | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value list(emacs_env *env, emacs_value *elements, ptrdiff_t len) {
return env->funcall(env, Flist, len, elements);
} | emacs_value list(emacs_env *env, emacs_value elements[], ptrdiff_t len) {
return env->funcall(env, Flist, len, elements);
} | list | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value nth(emacs_env *env, int idx, emacs_value list) {
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
emacs_value eidx;
_QWORD v7[4];
v7[3] = __readfsqword(0x28u);
eidx = env->make_integer(env, idx);
funcall = env->funcall;
v7[0] = eidx;
v7[1] = list;
return funcall... | emacs_value nth(emacs_env *env, int idx, emacs_value list) {
emacs_value eidx = env->make_integer(env, idx);
return env->funcall(env, Fnth, 2, (emacs_value[]){eidx, list});
} | nth | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value point(emacs_env *env) { return env->funcall(env, Fpoint, 0, 0); } | emacs_value point(emacs_env *env) { return env->funcall(env, Fpoint, 0, NULL); } | point | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void provide(emacs_env *env, const char *feature) {
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
emacs_value Qfeat;
emacs_value Qprovide;
_QWORD v5[2];
v5[1] = __readfsqword(0x28u);
Qfeat = env->intern(env, feature);
Qprovide = env->intern(env, "provide");
funcall = env->... | void provide(emacs_env *env, const char *feature) {
emacs_value Qfeat = env->intern(env, feature);
emacs_value Qprovide = env->intern(env, "provide");
env->funcall(env, Qprovide, 1, (emacs_value[]){Qfeat});
} | provide | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void put_text_property(emacs_env *env, emacs_value string, emacs_value property,
emacs_value value) {
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
emacs_value start;
emacs_value end;
_QWORD v9[6];
v9[5] = __readfsqword(0x28u);
start = env->make_integer(... | void put_text_property(emacs_env *env, emacs_value string, emacs_value property,
emacs_value value) {
emacs_value start = env->make_integer(env, 0);
emacs_value end = length(env, string);
env->funcall(env, Fput_text_property, 5,
(emacs_value[]){start, end, property, value, s... | put_text_property | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void recenter(emacs_env *env, emacs_value pos) {
long v2;
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
_QWORD v4[2];
v4[1] = __readfsqword(0x28u);
funcall = env->funcall;
v4[0] = pos;
((void (*)(
emacs_env *, emacs_value, long, _QWORD *,
emacs_value (*)(emacs_en... | void recenter(emacs_env *env, emacs_value pos) {
env->funcall(env, Frecenter, 1, (emacs_value[]){pos});
} | recenter | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void refresh_lines(Term *term, emacs_env *env, int start_row, int end_row,
int end_col) {
emacs_value_tag *v5;
emacs_value_tag *v6;
emacs_value_tag *v7;
emacs_value_tag *v8;
emacs_value_tag *v9;
emacs_value_tag *v10;
emacs_value_tag *v11;
emacs_value_tag *v12;
emacs_value_tag *v13;
... | static void refresh_lines(Term *term, emacs_env *env, int start_row,
int end_row, int end_col) {
if (end_row < start_row) {
return;
}
int i, j;
#define PUSH_BUFFER(c) \
do { ... | refresh_lines | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void refresh_screen(Term *term, emacs_env *env) {
int height;
int startrow;
height = term->height;
if (height > term->invalid_end)
height = term->invalid_end;
term->invalid_end = height;
if (term->invalid_end >= term->invalid_start) {
startrow = term->linenum_added - (term->height - term->invalid_s... | static void refresh_screen(Term *term, emacs_env *env) {
term->invalid_end = MIN(term->invalid_end, term->height);
if (term->invalid_end >= term->invalid_start) {
int startrow = -(term->height - term->invalid_start - term->linenum_added);
goto_line(env, startrow);
delete_lines(env, startrow, term->in... | refresh_screen | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void refresh_scrollback(Term *term, emacs_env *env) {
int max_line_count;
int del_cnt;
int del_cnta;
max_line_count = term->sb_current + term->height;
if (term->sb_pending > 0) {
del_cnt = term->sb_pending + term->linenum - term->height - term->sb_size -
term->sb_pending_by_height_decr;
... | static void refresh_scrollback(Term *term, emacs_env *env) {
int max_line_count = (int)term->sb_current + term->height;
int del_cnt = 0;
if (term->sb_pending > 0) {
del_cnt = term->linenum - term->height - (int)term->sb_size +
term->sb_pending - term->sb_pending_by_height_decr;
if (del_cnt ... | refresh_scrollback | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value render_fake_newline(emacs_env *env, Term *term) {
emacs_value_tag *v2;
emacs_value_tag *text;
emacs_value elements[6];
elements[5] = (emacs_value)__readfsqword(0x28u);
text = env->make_string(env, &unk_B025, 1);
elements[0] = Qvterm_line_wrap;
elements[1] = Qt;
elements[2] = Qrear_nonsticky... | static emacs_value render_fake_newline(emacs_env *env, Term *term) {
emacs_value text;
text = env->make_string(env, "\n", 1);
emacs_value properties;
properties =
list(env, (emacs_value[]){Qvterm_line_wrap, Qt, Qrear_nonsticky, Qt}, 4);
add_text_properties(env, text, properties);
return text;
} | render_fake_newline | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value render_prompt(emacs_env *env, emacs_value text) {
emacs_value_tag *v2;
emacs_value elements[6];
elements[5] = (emacs_value)__readfsqword(0x28u);
elements[0] = Qvterm_prompt;
elements[1] = Qt;
elements[2] = Qrear_nonsticky;
elements[3] = Qt;
v2 = list(env, elements, 4);
add_text_properties... | static emacs_value render_prompt(emacs_env *env, emacs_value text) {
emacs_value properties;
properties =
list(env, (emacs_value[]){Qvterm_prompt, Qt, Qrear_nonsticky, Qt}, 4);
add_text_properties(env, text, properties);
return text;
} | render_prompt | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value render_text(emacs_env *env, Term *term, char *buffer, int len,
VTermScreenCell *cell) {
emacs_value v6;
emacs_value v7;
emacs_value v8;
emacs_value v9;
emacs_value v10;
intmax_t (*extract_integer)(emacs_env *, emacs_value);
emacs_value v12;
int v13;
int v14;
int v... | static emacs_value render_text(emacs_env *env, Term *term, char *buffer,
int len, VTermScreenCell *cell) {
emacs_value text;
if (len == 0) {
text = env->make_string(env, "", 0);
return text;
} else {
text = env->make_string(env, buffer, len);
}
emacs_value fg = cell... | render_text | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
int row_to_linenr(Term *term, int row) {
if (row == 0x7FFFFFFF)
return 0x7FFFFFFF;
else
return term->sb_current + row + 1;
} | static int row_to_linenr(Term *term, int row) {
return row != INT_MAX ? row + (int)term->sb_current + 1 : INT_MAX;
} | row_to_linenr | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value selected_window(emacs_env *env) {
_BYTE v2[8];
unsigned long v3;
v3 = __readfsqword(0x28u);
return env->funcall(env, Fselected_window, 0, v2);
} | emacs_value selected_window(emacs_env *env) {
return env->funcall(env, Fselected_window, 0, (emacs_value[]){});
} | selected_window | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void set_cursor_blink(emacs_env *env, bool blink) {
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
_QWORD v3[3];
v3[1] = __readfsqword(0x28u);
funcall = env->funcall;
v3[0] = env->make_integer(env, blink);
funcall(env, Fblink_cursor_mode, 1, (emacs_value *)v3);
} | void set_cursor_blink(emacs_env *env, bool blink) {
env->funcall(env, Fblink_cursor_mode, 1,
(emacs_value[]){env->make_integer(env, blink)});
} | set_cursor_blink | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void set_cursor_type(emacs_env *env, emacs_value cursor_type) {
long v2;
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
_QWORD v4[4];
v4[3] = __readfsqword(0x28u);
funcall = env->funcall;
v4[0] = Qcursor_type;
v4[1] = cursor_type;
((void (*)(
emacs_env *, emacs_value,... | void set_cursor_type(emacs_env *env, emacs_value cursor_type) {
env->funcall(env, Fset, 2, (emacs_value[]){Qcursor_type, cursor_type});
} | set_cursor_type | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void set_directory(emacs_env *env, emacs_value string) {
long v2;
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
_QWORD v4[2];
v4[1] = __readfsqword(0x28u);
funcall = env->funcall;
v4[0] = string;
((void (*)(
emacs_env *, emacs_value, long, _QWORD *,
emacs_value (... | void set_directory(emacs_env *env, emacs_value string) {
env->funcall(env, Fvterm_set_directory, 1, (emacs_value[]){string});
} | set_directory | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void set_title(emacs_env *env, emacs_value string) {
long v2;
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
_QWORD v4[2];
v4[1] = __readfsqword(0x28u);
funcall = env->funcall;
v4[0] = string;
((void (*)(
emacs_env *, emacs_value, long, _QWORD *,
emacs_value (*)(e... | void set_title(emacs_env *env, emacs_value string) {
env->funcall(env, Fvterm_set_title, 1, (emacs_value[]){string});
} | set_title | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void set_window_point(emacs_env *env, emacs_value win, emacs_value point) {
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
_QWORD v4[4];
v4[3] = __readfsqword(0x28u);
funcall = env->funcall;
v4[0] = win;
v4[1] = point;
funcall(env, Fset_window_point, 2, (emacs_value *)v4);
} | void set_window_point(emacs_env *env, emacs_value win, emacs_value point) {
env->funcall(env, Fset_window_point, 2, (emacs_value[]){win, point});
} | set_window_point | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
int string_bytes(emacs_env *env, emacs_value string) {
ptrdiff_t size[2];
size[1] = __readfsqword(0x28u);
size[0] = 0;
env->copy_string_contents(env, string, 0, size);
return size[0];
} | int string_bytes(emacs_env *env, emacs_value string) {
ptrdiff_t size = 0;
env->copy_string_contents(env, string, NULL, &size);
return size;
} | string_bytes | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
emacs_value symbol_value(emacs_env *env, emacs_value symbol) {
long v2;
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
_QWORD v5[2];
v5[1] = __readfsqword(0x28u);
funcall = env->funcall;
v5[0] = symbol;
return (emacs_value)((long (*)(
emacs_env *, emacs_value, long, _QW... | emacs_value symbol_value(emacs_env *env, emacs_value symbol) {
return env->funcall(env, Fsymbol_value, 1, (emacs_value[]){symbol});
} | symbol_value | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void term_clear_scrollback(Term *term, emacs_env *env) {
int i;
vterm_screen_flush_damage(term->vts);
term_redraw(term, env);
if (term->sb_pending <= 0) {
for (i = 0; i < term->sb_current; ++i) {
if (term->sb_buffer[i]->info) {
free_lineinfo(term->sb_buffer[i]->info);
term->sb_buffer[... | static void term_clear_scrollback(Term *term, emacs_env *env) {
vterm_screen_flush_damage(term->vts);
term_redraw(term, env);
if (term->sb_pending > 0) {
return;
}
for (int i = 0; i < term->sb_current; i++) {
if (term->sb_buffer[i]->info != NULL) {
free_lineinfo(term->sb_buffer[i]->info);
... | term_clear_scrollback | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
int term_damage(VTermRect rect, void *data) {
invalidate_terminal((Term *)data, rect.start_row, rect.end_row);
return 1;
} | static int term_damage(VTermRect rect, void *data) {
invalidate_terminal(data, rect.start_row, rect.end_row);
return 1;
} | term_damage | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void term_finalize(void *object) {
int i;
int i_0;
ElispCodeListNode *node;
for (i = 0; (unsigned long)i < *((_QWORD *)object + 3); ++i) {
if (*(_QWORD *)(*(_QWORD *)(*((_QWORD *)object + 2) + 8LL * i) + 8LL)) {
free_lineinfo(
*(LineInfo **)(*(_QWORD *)(*((_QWORD *)object + 2) + 8LL * i) + ... | void term_finalize(void *object) {
Term *term = (Term *)object;
for (int i = 0; i < term->sb_current; i++) {
if (term->sb_buffer[i]->info != NULL) {
free_lineinfo(term->sb_buffer[i]->info);
term->sb_buffer[i]->info = NULL;
}
free(term->sb_buffer[i]);
}
if (term->title) {
free(term->t... | term_finalize | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
void term_flush_output(Term *term, emacs_env *env) {
void *v2;
emacs_value (*funcall)(emacs_env *, emacs_value, ptrdiff_t, emacs_value *);
emacs_env *enva;
Term *terma;
size_t len;
size_t v7;
char (*p_buffer)[];
emacs_value output;
_QWORD v10[8];
terma = term;
enva = env;
v10[1] = __readfsqword... | static void term_flush_output(Term *term, emacs_env *env) {
size_t len = vterm_output_get_buffer_current(term->vt);
if (len) {
char buffer[len];
len = vterm_output_read(term->vt, buffer, len);
emacs_value output = env->make_string(env, buffer, len);
env->funcall(env, Fvterm_flush_output, 1, (emacs_... | term_flush_output | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
int term_movecursor(VTermPos a1, VTermPos old, int visible, void *data) {
*(VTermPos *)((char *)data + 76) = a1;
invalidate_terminal((Term *)data, old.row, old.row + 1);
invalidate_terminal((Term *)data, a1.row, a1.row + 1);
return 1;
} | static int term_movecursor(VTermPos new, VTermPos old, int visible,
void *data) {
Term *term = data;
term->cursor.row = new.row;
term->cursor.col = new.col;
invalidate_terminal(term, old.row, old.row + 1);
invalidate_terminal(term, new.row, new.row + 1);
return 1;
} | term_movecursor | vterm-0.0.1_pre20210618 | app-emacs | O0/app-emacs/vterm-0.0.1_pre20210618/vterm-module.so | ida | O0 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.