search for: is_string

Displaying 8 results from an estimated 8 matches for "is_string".

2007 Apr 12
2
[PATCH] Make com32 printf obey width-restriction on %s
...slinux-3.36/com32/lib/vsnprintf.c 2007-04-12 12:08:54.000000000 +0200 @@ -362,7 +362,7 @@ case 's': /* String */ sarg = va_arg(ap, const char *); sarg = sarg ? sarg : "(null)"; - slen = strlen(sarg); + slen = width ? strnlen(sarg, width) : strlen(sarg); goto is_string; is_string: --- syslinux-3.36/com32/lib/strnlen.c.orig 2007-04-12 12:07:18.000000000 +0200 +++ syslinux-3.36/com32/lib/strnlen.c 2007-04-12 12:05:41.000000000 +0200 @@ -0,0 +1,14 @@ +/* + * strnlen.c + */ + +#include <string.h> + +size_t strnlen(const char *s, size_t maxlen) +{ + const...
2006 Feb 13
1
Problem with overloading add type casts of numeric strings in PHP bindings
...gs fail to separate them since PHP treats numeric strings much the same as integers. The problem is illustrated in WritableDatabase_replace_document() which takes either the docid or an unique term found in the document, ie the same number of arguments. The check for a number if implemented as IS_STRING in the sence of a numeric string which effectivly prevents the application from reaching the next section which checks for IS_STRING in the sence of a term and executes the intended overload. The solution would be to change the integer test from _v = (Z_TYPE_PP(argv[1]) == IS_LONG || Z_TYPE_...
2023 Aug 31
1
Problems with installing R packages from source and running C++ in R, even on fresh R installation
...bug = TRUE) Trying to compile a simple C file Running "C:/PROGRA~1/R/R-43~1.1/bin/x64/Rcmd.exe" SHLIB foo.c Error: Failed to compile C code > rcmd_build_tools() Error in paste0("R CMD ", ..1) : the ... list contains fewer than 1 element In addition: Warning messages: 1: In is_string(left) : restarting interrupted promise evaluation 2: In is_string(left) : restarting interrupted promise evaluation ``` However, I am not sure how this is relevant for the issue at hand... Concerning the other answers, I am not sure how this could be related to RStudio: I test everything only us...
2023 Aug 30
1
Problems with installing R packages from source and running C++ in R, even on fresh R installation
TL:DR there are at least three maybe four ways to address this depending on what you plan to do. I usually adjust PATH to add Rtools using .Rprofile. But if you do that then if you want to use the command line to invoke R then you need to set the PATH separately when you start the shell. For this reason some people like to set it in the User Environment Variables control panel... but some Rtools
2014 Mar 18
2
[PATCH 1/2] php: make the test suite failures fatal
So far the failure of some test would have not reported a non-zero return value by run-tests.php. Since now all the PHP tests pass, we can ask for failures to be fatal, by exporting REPORT_EXIT_STATUS=1 for run-tests.php. --- php/run-php-tests.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/php/run-php-tests.sh b/php/run-php-tests.sh index 6f9ae10..e498987 100755 ---
2016 Feb 12
0
[PATCH] php: restructure and expand tests
...uot;); -} - -$version = guestfs_version ($g); -if ($version == false) { - echo ("Error: ".guestfs_last_error ($g)."\n"); - exit; -} -if (!is_int ($version["major"]) || - !is_int ($version["minor"]) || - !is_int ($version["release"]) || - !is_string ($version["extra"])) { - echo ("Error: incorrect return type from guestfs_version\n"); -} - -echo ("OK\n"); -?> ---EXPECT-- -OK diff --git a/php/extension/tests/guestfs_php_003.phpt b/php/extension/tests/guestfs_php_003.phpt deleted file mode 100644 index e268e98.....
2011 Apr 15
0
Wine release 1.3.18
...ble declarations (Coverity). mscms: Fixed bad sizeof() (Coverity). mscms: Added missing breaks (Coverity). Matteo Bruni (1): wined3d: Get rid of context_validate. Michael Curran (2): d3dxof: Adjusted to allow for parsing of optional template elements. d3dxof: Changed is_string function to accept spaces. Michael Stefaniuc (7): wininet: Move "inline" right after the storage specifier. riched20: COM cleanup for the ITextHost iface. riched20: COM cleanup for the ITextServices iface. d3d9: COM cleanup for the IDirect3D9Ex iface. d3d9:...
2017 Jun 21
6
RFC: Cleaning up the Itanium demangler
...c_cast<const void*>(first_char); + second = static_cast<const void*>(second_char); + } + /* implicit */ node_or_string(node* n) + : first(static_cast<const void*>(n)), second(nullptr) {} + node_or_string() : first(nullptr), second(nullptr) {} + + bool is_string() const { return second && first; } + bool is_node() const { return first && !second; } + bool is_empty() const { return !first && !second; } + + string_ref as_string() const + { + assert(is_string()); + return string_ref(static_cast<const char*&...