search for: return_str

Displaying 2 results from an estimated 2 matches for "return_str".

2016 Apr 11
1
[PATCH] RFC: php: support PHP 7
...changed, 74 insertions(+), 22 deletions(-) diff --git a/generator/php.ml b/generator/php.ml index 926ac4f..5f06c0f 100644 --- a/generator/php.ml +++ b/generator/php.ml @@ -93,6 +93,32 @@ and generate_php_c () = static int res_guestfs_h; +#if ZEND_MODULE_API_NO >= 20151012 +# define GUESTFS_RETURN_STRING(x, duplicate) \\ + do { if (duplicate) RETURN_STRING(x) else { RETVAL_STRING(x); efree ((char *)x); return; } } while (0) +# define guestfs_add_assoc_string(arg, key, str, dup) \\ + add_assoc_string(arg, key, str) +# define guestfs_add_assoc_stringl(arg, key, str, len, dup) \\ + add_ass...
2006 Nov 08
3
long words killing HTML display
Hi, I''m trying to use word_wrap to prevent long ''aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...'' from kill my display tables in HTML. Problem is that word_wrap doesn''t dissect these long words and expects to only break them if it sees a ''\n''. Does anybody know if Rails has a helper to do this, not that it is hard to implement on my own