libdcui_la_SOURCES = uilib.c uimisc.c
libdcui_la_LIBADD = @KRB5_LIBS@ $(top_srcdir)/common/libcommon.a
libdcui_la_LDFLAGS = -version-info 2:0:1
-libdcui_la_CPPFLAGS = @KRB5_CFLAGS@
+libdcui_la_CPPFLAGS = @KRB5_CFLAGS@ -D_GNU_SOURCE
BUILT_SOURCES = initcmds.h
:lssr
-200 s s s i i i f s
+200 s s s I i i f s
201
514
:lssrch
510
511
:lstrans
-200 i i i s s s i i s
+200 i i i s s s I I s
201
502
:cancel
610 i i s s ; Transfer create
611 i i ; Transfer state change
612 i s ; Transfer nick change
-613 i i ; Transfer size change
+613 i I ; Transfer size change
614 i i ; Transfer error update
-615 i i ; Transfer progress
+615 i I ; Transfer progress
616 i s ; Transfer path change
617 i s ; Transfer destroy
618 i s ; Transfer hash update
620 i i
621 i
-622 i s s s i i i f s
+622 i s s s I i i f s
630 i s s
631 i s
632 i s s ; More data follows, but cannot be handled by dc_interpret
#define RESP_STR 1
#define RESP_INT 2
#define RESP_FLOAT 3
+#define RESP_LNUM 4
struct respclass
{
iresp->argv[iresp->argc].type = cls->wordt[i];
iresp->argc++;
break;
+ case RESP_LNUM:
+ sizebuf(&(iresp->argv), &args, iresp->argc + 1, sizeof(*(iresp->argv)), 1);
+ iresp->argv[iresp->argc].val.lnum = wcstoll(resp->rlines[resp->curline].argv[i + 1], NULL, 0);
+ iresp->argv[iresp->argc].type = cls->wordt[i];
+ iresp->argc++;
+ break;
}
}
resp->curline++;
#include <unistd.h>
#include <stdlib.h>
-/* I'm very unsure about this, but for now it defines wcstoll (which
- * should be defined anyway) and doesn't break anything... let's keep
- * two eyes wide open, though. */
-#define __USE_ISOC99
#include <wchar.h>
#include <wctype.h>
#include <pwd.h>
}
transfer->dir = ires->argv[1].val.num;
transfer->state = ires->argv[2].val.num;
- transfer->size = ires->argv[6].val.num;
- transfer->curpos = ires->argv[7].val.num;
+ transfer->size = ires->argv[6].val.lnum;
+ transfer->curpos = ires->argv[7].val.lnum;
if(transfer->hash != NULL)
{
free(transfer->hash);
transfer->peerid = swcsdup(ires->argv[3].val.str);
transfer->peernick = swcsdup(ires->argv[4].val.str);
transfer->path = swcsdup(ires->argv[5].val.str);
- transfer->size = ires->argv[6].val.num;
- transfer->curpos = ires->argv[7].val.num;
+ transfer->size = ires->argv[6].val.lnum;
+ transfer->curpos = ires->argv[7].val.lnum;
if(wcslen(ires->argv[8].val.str) > 0)
transfer->hash = swcsdup(ires->argv[8].val.str);
transfer->found = 1;
break;
case 613:
if((transfer = dc_findtransfer(ires->argv[0].val.num)) != NULL)
- transfer->size = ires->argv[1].val.num;
+ transfer->size = ires->argv[1].val.lnum;
break;
case 614:
if((transfer = dc_findtransfer(ires->argv[0].val.num)) != NULL)
break;
case 615:
if((transfer = dc_findtransfer(ires->argv[0].val.num)) != NULL)
- transfer->curpos = ires->argv[1].val.num;
+ transfer->curpos = ires->argv[1].val.lnum;
break;
case 616:
if((transfer = dc_findtransfer(ires->argv[0].val.num)) != NULL)