search for: t_string

Displaying 16 results from an estimated 16 matches for "t_string".

Did you mean: to_string
2005 Oct 09
0
[Fwd: Re: [Swig] Re: Object return problem]
...>> >> %typemap(varout) wxString { >> $result = rb_str_new2((const char *)$1.mb_str()); >> } >> >> %typemap(typecheck, precedence=SWIG_TYPECHECK_STRING) wxString { >> $1 = (TYPE($input) == T_STRING); >> } >> >> %typemap(typecheck, precedence=SWIG_TYPECHECK_STRING) wxString & { >> $1 = (TYPE($input) == T_STRING); >> } >> >> >> %typemap(typecheck, precedence=SWIG_TYPECHECK_STRING) wxString const & { >> $1 = (TYPE($input) == T_S...
2011 Jan 05
0
Fwd: Review of libguestfs ruby bindings
...do: v = rb_hash_aref(optsargv, rb_str_new2("readonly")); That being said, your way may actually be faster since you aren't allocating a new object. Minor in any case, they both work. 6) In ruby_guestfs_download() and elsewhere, there is code like: Check_Type (remotefilenamev, T_STRING); const char *remotefilename = StringValueCStr (remotefilenamev); if (!remotefilename) rb_raise (rb_eTypeError, "expected string for parameter %s of %s", "remotefilename", "download"); First, the Check_Type isn't strictly necessary; StringVal...
2004 Mar 11
5
win32-etc-0.2.2 testing wanted
I''ve commited code for win32-etc 0.2.2, which adds the configure_user and configure_group methods. Testing appreciated. On my home system, I can''t get configure_user to work, but I haven''t any real idea why it fails. The configure_group method seems to work fine, however. Dan _________________________________________________________________ Fast. Reliable. Get
2005 May 26
1
Little Php question
...> fputs($socket, "\r\n\r\n"); > fputs($socket, "Action: Logoff\r\n\r\n"); > while (!feof($socket)) { > $wrets .= fread($socket, 8192); > } > fclose($socket); > ?> > </pre> > > When starting the script I get a parse error (unexpected > t_string) in line > 15 which is the Exten line > Can anybody help me out. (I have minimal php knowledge, so Im > turning to you > all) > I don't think # is valid comment character. Use '//' or '/* BLAH */' Cheers alex Information contained in this e-mail and any...
2005 May 26
0
SV: Little Php question
...; fputs($socket, "Callerid: webcall\r\n\r\n"); fputs($socket, "\r\n\r\n"); fputs($socket, "Action: Logoff\r\n\r\n"); while (!feof($socket)) { $wrets .= fread($socket, 8192); } fclose($socket); ?> </pre> When starting the script I get a parse error (unexpected t_string) in line 15 which is the Exten line Can anybody help me out. (I have minimal php knowledge, so Im turning to you all) Thanks in advance Ronald _______________________________________________ Asterisk-Users mailing list Asterisk-Users@lists.digium.com http://lists.digium.com/mailman/listinfo/as...
2014 Nov 03
0
RFC: new variable battery.status (was: [PATCH] upscode2: Report ABM Status)
..., - DRV_EXPERIMENTAL, + DRV_BETA, { NULL } }; @@ -262,7 +262,7 @@ { "STAT", t_list, NULL, 0, 0, att }, { "STBO", t_status, NULL, UPSC_STAT_ONBATT }, { "STBL", t_status, NULL, UPSC_STAT_LOBATT }, - { "STBM", t_ignore }, + { "STBM", t_string, "battery.status.abm" }, { "STBP", t_status, NULL, UPSC_STAT_BYPASS }, { "STEA", t_list, NULL, 0, 0, env }, { "STEM", t_list, NULL, 0, 0, env }, @@ -412,8 +412,8 @@ { "shutdown.stop", "UPPU", NULL }, { "shutdown.re...
2012 Feb 13
3
RFC: new variable battery.status (was: [PATCH] upscode2: Report ABM Status)
2012/2/6 thomas schorpp <thomas.schorpp at googlemail.com>: > Hi, Hi Thomas, > I want the driver report the battery status from ABM charging controllers > -patch attached- : thanks for your patch. since it introduces a new variable (battery.status.abm), I prefer to step back and think to something useful more widely. thus, I'm thinking about a generic
2008 Nov 10
4
PathFindExtension and wide strings
Hi, What''s happening here? require ''windows/path'' require ''windows/unicode'' include Windows::Path include Windows::Unicode file_a = ''bar.txt'' file_w = multi_to_wide(file_a) p PathFindExtensionA(file_a) # ''.txt'' => OK p PathFindExtensionW(file_w) # ''.'' => WRONG Is Ruby chopping the
2007 Jan 23
0
[853] trunk/wxruby2/swig: Replace deprecated STR2CSTR with StringValuePtr
...nes">@@ -11,7 +11,7 @@ </span><span class="cx"> </span><span class="cx"> %typemap(in) unsigned char * data { </span><span class="cx"> &nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbspif(TYPE($input) == T_STRING) </span><del>-&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp$1 = reinterpret_cast< unsigned char * >(STR2CSTR($input)); </del><ins>+&nbsp&nbsp&nbsp&nbsp&am...
2014 Nov 04
2
RFC: new variable battery.status
...V_BETA, > { NULL } > }; > > @@ -262,7 +262,7 @@ > { "STAT", t_list, NULL, 0, 0, att }, > { "STBO", t_status, NULL, UPSC_STAT_ONBATT }, > { "STBL", t_status, NULL, UPSC_STAT_LOBATT }, > - { "STBM", t_ignore }, > + { "STBM", t_string, "battery.status.abm" }, > { "STBP", t_status, NULL, UPSC_STAT_BYPASS }, > { "STEA", t_list, NULL, 0, 0, env }, > { "STEM", t_list, NULL, 0, 0, env }, > @@ -412,8 +412,8 @@ > { "shutdown.stop", "UPPU", NULL }, > { "s...
2014 Feb 10
5
[PATCH 0/4] add GUID validation (RHBZ#1008417)
Hi, this patch serie adds a new GUID type in the generator, which would do the same as String, but also validating (just in the C output) the passed GUID string. This allows to reject invalid GUIDs before passing them to low-level tools. Pino Toscano (4): utils: add a function to validate a GUID string generator: add a GUID parameter type generator: generate code for parameter validation
2007 Mar 06
1
Errors compiling flac in Visual Studio Express 2005
...m 'const wchar_t *' to 'T_CHAR *' 15> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 15>c:\greenhouse\workspace\soundio\tool\flac_1.1.3\main\flac-1.1.3\src\plugin_winamp2\tagz.cpp(750) : error C2664: 'void T_String::AddString(const T_CHAR *)' : cannot convert parameter 1 from 'const wchar_t [2]' to 'const T_CHAR *' 15> Types pointed to are unrelated; conversion requires reinterpret_cast, C-style cast or function-style cast 15>c:\greenhouse\workspace\soundio\tool\flac_1.1.3\m...
2009 Aug 12
23
[PATCH 0/23] factor and const-correctness
This started as a simple warning-elimination change. I'll get back to that series shortly ;-) It turned into a factorization and constification exercise during which I got a taste of ocaml. Thanks to Rich Jones for help with a few snippets in generator.ml. The overall result is that many previously-manually-maintained bits from daemon/*.c functions are now hoisted into the automatically-
2009 Aug 03
1
[PATCH 1/2] Convert all TABs-as-indentation to spaces.
...; } } diff --git a/fish/destpaths.c b/fish/destpaths.c index a9d65a5..f4f1318 100644 --- a/fish/destpaths.c +++ b/fish/destpaths.c @@ -112,24 +112,24 @@ complete_dest_paths_generator (const char *text, int state) if (strs) { \ size_t i; \ size_t n = count_strings (strs); \ - \ + \ if ( ! xalloc_oversized (nr_words + n, sizeof (struct word))) { \ - struct word *w; \ - w = realloc (words, sizeof (struct word) * (nr_words + n)); \ - \ - if (w == NULL) {...
2017 Apr 21
0
[PATCH 1/2] generator: Simplify the handling of string parameters.
...t;, %s ? %s : \"null\");\n" n n - | StringList n | DeviceList n | FilenameList n -> + | OptString n -> + pr " fprintf (fp, \"%%s\\n\", %s ? %s : \"null\");\n" n n + | StringList (_, n) -> pr " print_strings (g, %s);\n" n - | Bool n -> pr " fprintf (fp, \"%%s\\n\", %s ? \"true\" : \"false\");\n" n + | Bool n -> + pr " fprintf (fp, \"%%s\\n\", %s ? \"true\" : \"false\");\n" n |...
2017 Apr 21
4
[PATCH 0/2] generator: Simplify the handling of string parameters.
Very large but mechanical change to the generator. Rich.