search for: gstring

Displaying 20 results from an estimated 65 matches for "gstring".

Did you mean: string
2018 May 15
12
[PATCH libldm 00/12] New API: an ability to retrieve created device-mapper devices back after they have been created.
The main goal of these patch series is to implement a new API that allows to retrieve created device-mapper devices for volumes and partitions back after they have been created. As part of this patch: - required libdevmapper version was bumped to 1.02. I think it is safe because it was released more then 10 years ago; - newer version of libdevmapper allowed to simplify code base a little bit; -
2005 May 07
4
string syntactic sugar in R? - long post
...words - because of forgotten spaces. Not to mention mixing up or unbalancing quote marks etc. The approach used by paste is similar to that of many other languages (like early Java, VB etc) and is inherently error-prone because of poor visualization. There is a way to improve it. In the Java world gstrings were introduced specifically for this purpose. A gstring is a string with variable names embedded and replaced by values (converted to strings, lazy eval) before use. An example in R-syntax would be: >alpha <- 8; beta="xyz" >gstr <- "the result is ${alpha} with the comm...
2018 May 15
0
[PATCH libldm v2 1/1] Fix crash while creating mapper for a volume which lacks of partitions.
...ated loop device will be mapped but application crashes on further attempt to do the same for incomplete volumes with error "Error in `ldmtool': free(): invalid pointer: 0x.......". Reason: _dm_create_spanned and _dm_create_striped functions define static local variable "static GString *name" which is at the same time a function return value. So variable remains its value in between of function calls. "name" pointer will be initialized if spanned/stripped volume is successfully created. It is passed up the call stack and is freed in _ldm_vol_action function. Ne...
2018 May 15
1
[PATCH libldm v2 0/1] Fix crash while creating mapper for a volume which lacks of partitions.
v1 was here: https://www.redhat.com/archives/libguestfs/2018-May/msg00058.html v2: - more correct explanation of a crash reason. Mykola Ivanets (1): Fix crash while creating mapper for a volume which lacks of partitions. src/ldm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.17.0
2018 May 13
0
[PATCH libldm] Fix crash while creating mapper for a volume which lacks all components.
...iated loop device will be mapped but application crashes on further attempt to do the same for incomplete volumes with error "Error in `ldmtool': free(): invalid pointer: 0x.......". Reason: _dm_create_spanned and _dm_create_striped functions define static local variable "static GString *name" which is at the same time a function return value. It is passed up to the call stack and is freed in _ldm_vol_action function. An attempt to free the same pointer will be made if ldmtool successfully creates some volume first and then will try to create incomplete volume. Which will...
2013 Dec 17
3
In-string variable/symbol substitution: What formats/syntax is out there?
...("pi=${pi}"), anotherFcn("pi=@pi@") and so on becomes "pi=3.141593". I am aware of the following: ** gsubfn() in the 'gsubfn' package, e.g. > gsubfn( , , "pi = $pi, 2pi = `2*pi`") [1] "pi = 3.14159265358979, 2pi = 6.28318530717959" ** gstring() in the 'R.utils' package, e.g. > gstring("pi = ${pi}, 2pi = ${`2*pi`}") [1] "pi = 3.14159265358979, 2pi = 6.28318530717959" I'm sure there are other approaches - do you know of any in R? They don't have to support in-line calculations such as in the first...
2014 Jun 13
4
[libldm 1/3] relax uuid, zlib version requirements
--- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 469ea96..0e7e2ea 100644 --- a/configure.ac +++ b/configure.ac @@ -85,14 +85,14 @@ PKG_CHECK_MODULES([GIO_UNIX], [gio-unix-2.0 >= 2.32.0], ] ) -PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2.5], +PKG_CHECK_MODULES([ZLIB], [zlib >= 1.2], [
2006 Jun 12
1
Ruuid had non-zero exit status (PR#8965)
...-2.0/glib/gmain.h:251: error: parse error before "pid" /usr/local/include/glib-2.0/glib/gmain.h:296: error: parse error before "GPid" /usr/local/include/glib-2.0/glib/gmain.h:300: error: parse error before "pid" In file included from /usr/local/include/glib-2.0/glib/gstring.h:31, from /usr/local/include/glib-2.0/glib/giochannel.h:32, from /usr/local/include/glib-2.0/glib.h:45, from uuidP.h:33, from Ruuid.h:5, from Rinit.c:1: /usr/local/include/glib-2.0/glib/gunicode.h:28: error:...
2007 Nov 10
0
[PATCH] swfdec: better variable parsing.
...------------------------------- 6 files changed, 2 insertions(+), 272 deletions(-) diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c index 618b9d7..0d0a56e 100644 --- a/libswfdec/swfdec_loader.c +++ b/libswfdec/swfdec_loader.c @@ -602,54 +602,6 @@ swfdec_urlencode_append_string (GString *str, const char *s) } } -static char * -swfdec_urldecode_one_string (const char *s, const char **out) -{ - GString *ret = g_string_new (""); - - while (*s) { - if (strchr (urlencode_unescaped, *s)) { - g_string_append_c (ret, *s); - } else if (*s == '+') { -...
2007 Nov 12
0
2 commits - libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_resource.c test/various
...tring, swfdec_urldecode_one and the flawed testcase in test/various/urlencode.c. diff --git a/libswfdec/swfdec_loader.c b/libswfdec/swfdec_loader.c index 7595c4e..f2c16f6 100644 --- a/libswfdec/swfdec_loader.c +++ b/libswfdec/swfdec_loader.c @@ -608,54 +608,6 @@ swfdec_urlencode_append_string (GString *str, const char *s) } } -static char * -swfdec_urldecode_one_string (const char *s, const char **out) -{ - GString *ret = g_string_new (""); - - while (*s) { - if (strchr (urlencode_unescaped, *s)) { - g_string_append_c (ret, *s); - } else if (*s == '+') { -...
2010 Aug 05
1
Sciviews-K -- object 'httpdPort' not found
...     sysname                                       "Linux"                                       release                           "2.6.31-22-generic"                                       version "#60-Ubuntu SMP Thu May 27 00:22:23 UTC 2010" > getBuiltinRhome.GString() [1] "/usr/lib/R" > Does anybody know how to resolve this? Thanks in advance! Cheers!! Albert-Jan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a f...
2002 Sep 06
1
Compile error on Solaris Sparc
...Error: operation combines symbols in different segments /var/tmp//ccoHmkfo.s:6422: Error: operation combines symbols in different segments /var/tmp//ccoHmkfo.s:6432: Error: operation combines symbols in different segments ... make: *** [advapi32.spec.o] Error 1 I have installed gas, gld, gar, gnm, gstrings. I have replaced as, ld, ar, nm, and strings with the GNU counterpart. Does anyone know how I can fix this problem? Thanks, Corey
2007 Feb 15
0
8 commits - libswfdec/swfdec_bits.h libswfdec/swfdec_font.c libswfdec/swfdec_font.h libswfdec/swfdec_loader.c libswfdec/swfdec_loader_internal.h libswfdec/swfdec_tag.c libswfdec/swfdec_text.c libswfdec/swfdec_text.h test/swfedit_token.c test/various
...{ "owned" }, { "Your Mom" }, 1 } +}; + +#define ERROR(...) G_STMT_START { \ + g_printerr ("ERROR (line %u): ", __LINE__); \ + g_printerr (__VA_ARGS__); \ + g_printerr ("\n"); \ + errors++; \ +}G_STMT_END + +static guint +run_test_encode (Test *test) +{ + GString *string; + guint i, errors = 0; + + string = g_string_new (""); + for (i = 0; i < test->n_props; i++) { + swfdec_string_append_urlencoded (string, test->names[i], test->values[i]); + } + if (!g_str_equal (test->encoded, string->str)) { + ERROR ("encoded s...
2007 Feb 17
0
8 commits - configure.ac doc/swfdec-sections.txt libswfdec/swfdec_loader.c libswfdec/swfdec_player.c libswfdec/swfdec_player.h libswfdec/swfdec_player_internal.h libswfdec/swfdec_root_movie.c libswfdec/swfdec_scriptable.c libswfdec/swfdec_scriptable.h
...d of strchr */ -static const char *urlencode_unescaped="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_."; +static const char *urlencode_unescaped="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_./"; static void swfdec_urlencode_append_string (GString *str, const char *s) { diff --git a/test/various/urlencode.c b/test/various/urlencode.c index 1e35644..0899b00 100644 --- a/test/various/urlencode.c +++ b/test/various/urlencode.c @@ -33,9 +33,9 @@ Test tests[] = { { "a=b", { "a" }, { "b" }, 1 }, { "a=b&amp...
2007 Oct 17
0
6 commits - libswfdec/swfdec_as_strings.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_text_field.c libswfdec/swfdec_text_field.h libswfdec/swfdec_text_field_movie_as.c libswfdec/swfdec_text_field_movie.c
...or LI / FONT / A / B / I / U + * + * Order of attributes: + * TEXTFORMAT: + * LEFTMARGIN / RIGHTMARGIN / INDENT / LEADING / BLOCKINDENT / TABSTOPS + * P: ALIGN + * LI: none + * FONT: FACE / SIZE / COLOR / LETTERSPACING / KERNING + * A: HREF / TARGET + * B: none + * I: none + * U: none + */ +static GString * +swfdec_text_field_movie_html_text_append_paragraph (SwfdecTextFieldMovie *text, + GString *string, guint start_index, guint end_index) +{ + SwfdecTextFormat *format, *format_prev, *format_font; + GSList *iter, *fonts, *iter_font; + guint index_, index_prev; + gboolean textformat, bullet,...
2008 Jan 07
0
3 commits - libswfdec-gtk/swfdec_gtk_loader.c libswfdec/swfdec_as_array.c libswfdec/swfdec_asbroadcaster.c libswfdec/swfdec_as_function.c libswfdec/swfdec_as_types.c libswfdec/swfdec_xml.c
...(idx - fdata->start_index)); swfdec_as_object_set_variable (fdata->object_to, var, value); } @@ -603,12 +603,11 @@ swfdec_as_array_join (SwfdecAsContext *cx, SwfdecAsObject *object, guint argc, if (length > 0) { /* FIXME: implement this with the StringBuilder class */ GString *string; - var = swfdec_as_double_to_string (cx, 0); - swfdec_as_object_get_variable (object, var, &val); + swfdec_as_object_get_variable (object, SWFDEC_AS_STR_0, &val); str = swfdec_as_value_to_string (cx, &val); string = g_string_new (str); for (i = 1; i <...
2002 Sep 09
0
wine-users digest, Vol 1 #1242 - 7 msgs
...Error: operation combines symbols in different segments /var/tmp//ccoHmkfo.s:6422: Error: operation combines symbols in different segments /var/tmp//ccoHmkfo.s:6432: Error: operation combines symbols in different segments ... make: *** [advapi32.spec.o] Error 1 I have installed gas, gld, gar, gnm, gstrings. I have replaced as, ld, ar, nm, and strings with the GNU counterpart. Does anyone know how I can fix this problem? Thanks, Corey --__--__-- Message: 5 To: wine-users@winehq.com From: Duane Clark <dclark@akamail.com> Subject: Re: wine troubleshooting solution still not found after 1 mont...
2010 Apr 20
2
Parser question + Markdown "wysiwyg"
Hi all I've started writing an OS X Markdown "editor"[1] that semi-formats your markdown document as you write it. I just wanted to put something together, so went with a regexp-based setup for parsing -- Not ideal! I'd really like to use an existing parser, but I need to get access to the parse-tree *with* character offets, rather than just html output, as I'm adding
2007 Jun 13
0
Branch 'as' - 2 commits - libswfdec/swfdec_sprite.c test/trace
...test/trace/trace.c b/test/trace/trace.c index 990e7cb..55f8e98 100644 --- a/test/trace/trace.c +++ b/test/trace/trace.c @@ -17,7 +17,7 @@ run_test (const char *filename) SwfdecLoader *loader; SwfdecPlayer *player; SwfdecBuffer *buffer; - guint time_left; + guint advance; char *str; GString *string; GError *error = NULL; @@ -38,17 +38,8 @@ run_test (const char *filename) return FALSE; } - time_left = ceil (10000 / swfdec_player_get_rate (player)); - /* FIXME: Make the number of iterations configurable? */ - while (TRUE) { - /* FIXME: will not do 10 iterations if the...
2007 Apr 17
0
3 commits - configure.ac libswfdec/swfdec_loader.c libswfdec/swfdec_movie.h
...r */ -static const char *urlencode_unescaped="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.:/"; +static const char *urlencode_unescaped="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_.:/()'"; static void swfdec_urlencode_append_string (GString *str, const char *s) {