Displaying 20 results from an estimated 242 matches for "strtoll".
Did you mean:
strtoull
2016 Jun 22
4
Help building llvm on freebsd 8.4
....src
4. Started the build using $cmake --build .
It throws the following error
/home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp: In member
function 'llvm::tgtok::TokKind llvm::TGLexer::LexNumber()':
/home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:393:48: error:
'strtoll' was not declared in this scope
CurIntVal = strtoll(NumStart, nullptr, 16);
^
/home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:398:60: error:
'strtoull' was not declared in this scope
CurIntVal = (int64_t)strtoul...
2016 Jun 23
2
Help building llvm on freebsd 8.4
...> > It throws the following error
> >
> > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp: In member
> function 'llvm::tgtok::TokKind llvm::TGLexer::LexNumber()':
> > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:393:48:
> error: 'strtoll' was not declared in this scope
> > CurIntVal = strtoll(NumStart, nullptr, 16);
> > ^
> > /home/spangeni/llvm/llvm-3.8.0.src/lib/TableGen/TGLexer.cpp:398:60:
> error: 'strtoull' was not declared in this scope
&g...
2006 Nov 04
2
[LLVMdev] Port succesful
...n
windows. I will
also add other beckend in the future (Sparc, PowerPC). I hope windows using
Visual C++ will be soon officially supported :)
About the problem I had with system and ltdl.c, it was resolved preaty
easily by defining
__WINDOWS__ globally in project. I also added a global macro for strtoll
because the
windows version is strtol (not strtoll). macro replaces strtoll with
strtol and it compiles.
I found really a lot of warnings in the project. Should I clean them?
GCC probably doesn't
throw them, so I don't know ... I don't even want to try to compile with
VS8 which is...
2012 Apr 17
1
[PATCH] Remove local_strtoull, windows has equivalent function _strtoui64
...-------
3 files changed, 10 insertions(+), 66 deletions(-)
diff --git a/include/share/compat.h b/include/share/compat.h
index e9ac958..ff5c8af 100644
--- a/include/share/compat.h
+++ b/include/share/compat.h
@@ -59,3 +59,11 @@
#include <inttypes.h>
#endif
+#if defined(_MSC_VER)
+#define strtoll _strtoi64
+#endif
+
+#if defined(_MSC_VER)
+#define restrict __restrict
+#endif
+
diff --git a/src/flac/main.c b/src/flac/main.c
index 80af14c..6f24e55 100644
--- a/src/flac/main.c
+++ b/src/flac/main.c
@@ -36,6 +36,7 @@
#include "FLAC/all.h"
#include "share/alloc.h"
#includ...
2017 Jan 25
2
mcjit C interface problems
...ate execution engine\n");
abort();
}
if (error) {
fprintf(stderr, "error: %s\n", error);
LLVMDisposeMessage(error);
exit(EXIT_FAILURE);
}
if (argc < 3) {
fprintf(stderr, "usage: %s x y\n", argv[0]);
exit(EXIT_FAILURE);
}
long long x = strtoll(argv[1], NULL, 10);
long long y = strtoll(argv[2], NULL, 10);
LLVMGenericValueRef args[] =
{LLVMCreateGenericValueOfInt(LLVMInt32Type(), x, 0),
LLVMCreateGenericValueOfInt(LLVMInt32Type(), y, 0)};
printf("args[0]: %d\n", (int)LLVMGenericValueToInt(args[0], 0));
printf("arg...
2014 Dec 15
2
Replace atoi and atol with strtol strtoul:Need Help
Hello,
I am working on replacing atoi () and atol() functions with strtol() and
strtoul() . I came across many files which uses statement like these
time_t secs= atoi(data_span.c_str()), here time_t Datatype is not known but
wikipedia says that it is integer so is it necessary to replace atoi with
strtol over here ??
And is their any document which helps me what each file function does like
2019 Feb 07
1
[PATCH nbdkit] server: utils: Fix nbdkit_parse_size to correctly handle negative values
...when parsed value is
within the valid range but original string passed to a function
represented negative number.
Thus nbdkit_parse_size() incorrectly parsed values in a range
[-UINT64_MAX; INT64_MIN -1] translating them into an unsigned range
of a valid values: [1; INT64_MAX].
In this patch:
1. strtoll() is used instead of strtoumax() to reflect the nature
of the 'size' which cannot be negative and isn't expected to exceed
INT64_MAX.
2. Error reporting separates cases where the string is parsed to a
negative value or parsed value overflows (greater then INT64_MAX).
Tests:
1. Some mo...
2013 Feb 18
5
[PATCH 0/2] genid: ACPI Windows generation ID updates
These patch update Windows generation ID support on ACPI.
First patch mainly update to new specifications while second one
introduce again the device in ACPI table.
Frediano Ziglio (2):
genid: Update Windows generation ID
genid: Introduce again Windows generation ID device
docs/misc/xenstore-paths.markdown | 6 ++++
tools/firmware/hvmloader/acpi/build.c | 49
2005 Sep 29
3
[Bug 1096] ssh-keygen broken on HPUX
...Component: ssh-keygen
AssignedTo: bitbucket at mindrot.org
ReportedBy: o.flebbe at science-computing.de
Hi,
ssh-keygen is broken on HP-UX. For instance
>ssh-keygen -t dsa -b1024
Bits has bad value 1024 (too small)
Reason: usage of openbsd replacement of _both_ strtonum and strtoll:
The protoype of strtoll is missing from openbsd-compat.h so strtonum is miscompiled.
This should affact all platforms without both "strtonum" and "strtoll".
Patch appended.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watch...
2006 Nov 04
0
[LLVMdev] Port succesful
...add other beckend in the future (Sparc, PowerPC). I hope windows using
> Visual C++ will be soon officially supported :)
>
> About the problem I had with system and ltdl.c, it was resolved preaty easily
> by defining
> __WINDOWS__ globally in project. I also added a global macro for strtoll
> because the
> windows version is strtol (not strtoll). macro replaces strtoll with strtol
> and it compiles.
>
> I found really a lot of warnings in the project. Should I clean them? GCC
> probably doesn't
> throw them, so I don't know ... I don't even want to...
2008 Jul 01
3
[LLVMdev] build on windows
Hi Jean-Daniel,
Thank
I use VC++ 9 (express version). I have also an error in TableGen: The
"strtoll" could not be found under win32. Have you fixed it ?
Regards
Quang
-----Ursprüngliche Nachricht-----
Von: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] Im
Auftrag von Jean-Daniel Dupas
Gesendet: Montag, 30. Juni 2008 22:00
An: LLVM Developers Mailing List
Betreff: Re...
2014 Dec 16
2
Replace atoi and atol with strtol strtoul:Need Help
...nverting it via a
> long is reasonable - even if long is 32 bits that can still represent a
> span of 5.8 million years. You'd want to make sure the multiplication
> happens in type time_t though.
>
> If we were actually converting a number of seconds, you'd want to use
> strtoll(), at least if sizeof(long) < 8. C++11 includes strtoll(), and
> we decided to require a C++11 compiler for 1.3.x, so there's no need to
> worry whether strtoll() is available.
>
> > And is their any document which helps me what each file function does
> like
> > dat...
2014 Dec 19
2
Replace atoi and atol with strtol strtoul:Need Help
On Sat, Dec 20, 2014 at 12:42:08AM +0530, Priyank Bhatt wrote:
> As James said I am attaching two file *date.cc* and *datematchdecider.cc*
Please send patches, not complete source files:
http://trac.xapian.org/browser/git/xapian-core/HACKING#L1176
Patches are much smaller, and don't require the reviewer to work out the
exact version of the source file you started from.
Cheers,
Olly
2008 Jul 01
2
[LLVMdev] build on windows
...ot this one, I have a different error here. One related to hasmap and pair
templates.
I will check this on my Windows machine later.
Le 1 juil. 08 à 16:44, Le Anh Quang a écrit :
> Hi Jean-Daniel,
> Thank
> I use VC++ 9 (express version). I have also an error in TableGen: The
> "strtoll" could not be found under win32. Have you fixed it ?
>
> Regards
> Quang
>
> -----Ursprüngliche Nachricht-----
> Von: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev- bounces at cs.uiuc.edu]
> Im Auftrag von Jean-Daniel Dupas
> Gesendet: Montag, 30. Juni 2008 22:00
>...
2017 Jan 26
2
mcjit C interface problems
...sum");
printf("result: %lu\n", (*func)());
Anything else I should look at?
Toshi
On Wed, Jan 25, 2017 at 5:20 PM, Andres Freund <andres at anarazel.de> wrote:
> Hi,
>
> On 2017-01-25 15:17:04 -0800, Toshiyasu Morita via llvm-dev wrote:
> > long long x = strtoll(argv[1], NULL, 10);
> > long long y = strtoll(argv[2], NULL, 10);
> >
> > LLVMGenericValueRef args[] =
> > {LLVMCreateGenericValueOfInt(LLVMInt32Type(), x, 0),
> >
> > LLVMCreateGenericValueOfInt(LLVMInt32Type(), y, 0)};
> >
> > printf("arg...
2008 Jul 01
0
[LLVMdev] build on windows
...t this one, I have a different error here. One related to hasmap and
pair templates.
I will check this on my Windows machine later.
Le 1 juil. 08 à 16:44, Le Anh Quang a écrit :
> Hi Jean-Daniel,
> Thank
> I use VC++ 9 (express version). I have also an error in TableGen: The
> "strtoll" could not be found under win32. Have you fixed it ?
>
> Regards
> Quang
>
> -----Ursprüngliche Nachricht-----
> Von: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-
> bounces at cs.uiuc.edu] Im
> Auftrag von Jean-Daniel Dupas
> Gesendet: Montag, 30. Juni 2008 22:00...
2008 Jul 29
2
[LLVMdev] llvm-gcc linking errors
...ast.o(.text+0x1110): In function `vprintf':
: multiple definition of `vprintf'
main.o(.text+0x1350): first defined here
trirast.o(.text+0x1140): In function `strtoull':
: multiple definition of `strtoull'
main.o(.text+0x1380): first defined here
trirast.o(.text+0x1170): In function `strtoll':
: multiple definition of `strtoll'
main.o(.text+0x13b0): first defined here
trirast.o(.text+0x11a0): In function `strtold':
: multiple definition of `strtold'
main.o(.text+0x13e0): first defined here
trirast.o(.text+0x11d0): In function `strtof':
: multiple definition of `strt...
2018 Aug 17
1
Re: [PATCH v3 1/4] mltools: Rename Yajl module as JSON_parser and move to common/mltools.
...going
> to be pleasant.
>
> Currently we're OK as long as disk sizes don't exceed 8 petabytes, if
> my quick calculation is correct.
The problem comes anywhere that qemu outputs an unsigned 64-bit number
as unsigned AND where that value is larger than INT64_MAX (jansson uses
strtoll, rather than strtoull). But since disk sizes cannot exceed
off_t, which is a signed 64-bit number, it does not matter whether qemu
outputs those as signed or unsigned - they will still be parseable as a
signed number. Thus, you are correct that disk sizes in qemu output
won't trigger the...
2007 Apr 12
2
[PATCH] Make com32 printf obey width-restriction on %s
...trcat.o \
strchr.o strcmp.o strcpy.o strdup.o strerror.o strlen.o \
- strncasecmp.o strncat.o strncmp.o strncpy.o strndup.o \
+ strncasecmp.o strncat.o strncmp.o strncpy.o strndup.o strnlen.o \
strntoimax.o strntoumax.o strrchr.o strsep.o strspn.o strstr.o \
strtoimax.o strtok.o strtol.o strtoll.o strtoul.o strtoull.o \
strtoumax.o vfprintf.o vprintf.o vsnprintf.o vsprintf.o \
--- syslinux-3.36/com32/lib/vsnprintf.c.orig 2007-02-10
21:47:08.000000000 +0100
+++ syslinux-3.36/com32/lib/vsnprintf.c 2007-04-12 12:08:54.000000000 +0200
@@ -362,7 +362,7 @@
case 's': /* String */...
2008 Jul 01
0
[LLVMdev] build on windows
...ne related to hasmap
> and pair
> templates.
> I will check this on my Windows machine later.
>
> Le 1 juil. 08 à 16:44, Le Anh Quang a écrit :
>
>> Hi Jean-Daniel,
>> Thank
>> I use VC++ 9 (express version). I have also an error in TableGen: The
>> "strtoll" could not be found under win32. Have you fixed it ?
>>
>> Regards
>> Quang
>>
>> -----Ursprüngliche Nachricht-----
>> Von: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-
>> bounces at cs.uiuc.edu]
>> Im Auftrag von Jean-Daniel Dupas
>>...