search for: get_children

Displaying 20 results from an estimated 22 matches for "get_children".

2011 Apr 13
1
[PATCH hivex] maint: split long lines
...e_name: returning EFAULT because node name is too long (%zu, %zu)\n", + fprintf (stderr, "hivex_node_name: returning EFAULT because node name" + " is too long (%zu, %zu)\n", len, seg_len); errno = EFAULT; return NULL; @@ -733,7 +736,8 @@ get_children (hive_h *h, hive_node_h node, /* Arbitrarily limit the number of subkeys we will ever deal with. */ if (nr_subkeys_in_nk > HIVEX_MAX_SUBKEYS) { if (h->msglvl >= 2) - fprintf (stderr, "hivex: get_children: returning ERANGE because nr_subkeys_in_nk > HIVEX_MAX_SUBKEYS...
2008 Mar 01
0
[ wxruby-Bugs-18508 ] Sizer#get_children not mapped correctly, SizerItem missing
...-03-01 02:33 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=218&aid=18508&group_id=35 Category: Missing API call Group: None Status: Open Resolution: None Priority: 3 Submitted By: Alex Fenton (brokentoy) Assigned to: Alex Fenton (brokentoy) Summary: Sizer#get_children not mapped correctly, SizerItem missing Initial Comment: Sizer#add currently returns an opaque swig type of SizerItem. Sizer#get_children currently returns an opaque swig type of SizerItemList. The return type should clearly be an array, but not certain what it should contain. SizerItem is not c...
2013 Oct 19
2
[LLVMdev] Parsing C++ headers with Clang bindings for Python
...e to parse the file as C, but not as C++. Here is an example session: >>> import clang.cindex >>> idx = clang.cindex.Index.create() >>> tu = idx.parse('/usr/include/math.h', ['-x', 'c++-header']) >>> c = tu.cursor >>> for d in c.get_children(): ... print d.kind, d.spelling ... CursorKind.TYPEDEF_DECL __int128_t CursorKind.TYPEDEF_DECL __uint128_t CursorKind.TYPEDEF_DECL __builtin_va_list CursorKind.UNEXPOSED_DECL >>> print len(tu.diagnostics) 0 Now that list clearly does not represent the contents of math.h. However, as y...
2010 Feb 05
13
[PATCH 01/14] hivexsh: Document some peculiarities of the "cd" command.
--- hivex/hivexsh.pod | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/hivex/hivexsh.pod b/hivex/hivexsh.pod index 277e3ae..9336798 100644 --- a/hivex/hivexsh.pod +++ b/hivex/hivexsh.pod @@ -100,7 +100,14 @@ or even: Path elements (node names) are matched case insensitively, and characters like space, C<*>, and C<?> have I<no> special
2013 Jul 25
19
[PATCH hivex 00/19] Fix read/write handling of li-records.
This is, hopefully, a full fix for handling of li-records. See: https://bugzilla.redhat.com/show_bug.cgi?id=717583 https://bugzilla.redhat.com/show_bug.cgi?id=987463 Rich.
2013 Oct 19
0
[LLVMdev] Parsing C++ headers with Clang bindings for Python
...++. > > Here is an example session: > > >>> import clang.cindex > >>> idx = clang.cindex.Index.create() > >>> tu = idx.parse('/usr/include/math.h', ['-x', 'c++-header']) > >>> c = tu.cursor > >>> for d in c.get_children(): > ... print d.kind, d.spelling > ... > CursorKind.TYPEDEF_DECL __int128_t > CursorKind.TYPEDEF_DECL __uint128_t > CursorKind.TYPEDEF_DECL __builtin_va_list > CursorKind.UNEXPOSED_DECL > It would seem that the contents on the entire module are hidden inside this UNEXPOSE...
2016 May 08
2
typedef not present in the python AST
...thon bindings provided with it. When I parse a file with index = clang.cindex.Index.create() tu = index.parse(f, ['-x', 'c++', '-std=c++11', '-fsyntax-only', '-I', '.']) and then I display the node kinds of every node in the AST (recursively calling get_children() on every node), I get a node of type CursorKind.TYPEDEF_DECL, but only if it is top-level (or inside a namespace or class). If the typedef is in a function body, it doesn't get reported at all (even though variable declarations before and after are reported). Why are they not reported? Tha...
2012 Sep 13
1
[LLVMdev] Parsing C++ template parameters using cindex.py
...de_type_res.kind print tabs + " kind", node.kind DeepPrintType(node.type, depth + 1) print tabs + " xdata", node.xdata print tabs + " data", node.data[0], node.data[1], node.data[2] print tabs + " children" children = [c for c in node.get_children()] for c in children: DeepPrint(c, depth + 2) index = Index.create() tu = index.parse(None, ['testfile.cpp']) children = [c for c in tu.cursor.get_children() if c.kind == CursorKind.VAR_DECL] for c in children: DeepPrint(c) Dump output: cursor test_int location <Sourc...
2013 Oct 20
1
[LLVMdev] Parsing C++ headers with Clang bindings for Python
.... > > Here is an example session: > > >>> import clang.cindex > >>> idx = clang.cindex.Index.create() > >>> tu = idx.parse('/usr/include/math.h', ['-x', 'c++-header']) > >>> c = tu.cursor > >>> for d in c.get_children(): > ... print d.kind, d.spelling > ... > CursorKind.TYPEDEF_DECL __int128_t > CursorKind.TYPEDEF_DECL __uint128_t > CursorKind.TYPEDEF_DECL __builtin_va_list > CursorKind.UNEXPOSED_DECL > > It would seem that the contents on the entire module are hidden inside this U...
2011 Jun 24
1
Hivex bug? Cannot access Windows 2003 x64 Software\Classes key
...608640 Welcome to hivexsh, the hivex interactive shell for examining Windows Registry binary hive files. Type: 'help' for help summary 'quit' to quit the shell Software\> cd Classes hivex_node_children: nr_subkeys_in_nk = 13, nr_subkeys_in_lf = 13 Software\Classes> ls get_children: returning ENOTSUP because ri-record offset does not point to lf/lh (0x49020) ls: Operation not supported Software\Classes> ============================================================================================= -Michael -------------- next part -------------- An HTML attachment was scrub...
2012 Mar 08
1
Fwd: hivex: patch for read support of "li"-records from "ri" intermediate
...for creating the hivex-library. Studying your source code helped me a great deal to better understand the internals of the Windows Registry. However, while I was browsing a real-world SOFTWARE-hive (XP, SP3) I could not browse to the '\Classes' key. Instead I got this (debug)-message: get_children: returning ENOTSUP because ri-record offset does not point to lf/lh (0x49020) I tracked this issue down and I discovered that the intermediate "ri"-record may not only contain offsets to "lf" and "lh" but to "li"-records too. Attached is a patch against hiv...
2006 Dec 23
0
[794] trunk/wxruby2: Fix get_ruby_object so it works with SWIG tracking, move find_window_xx
...pan><span class="cx"> } </span><span class="cx"> } </span><span class="cx"> </span><del>-// general-purpose function used to return ruby wrappers around windows -// whose type is not known in advance - as in find_window, get_children etc - -// TODO - doesn''t work correctly with object tracking - it should return -// the same Ruby object if the object has been seen before -// use something like: -//&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp returnVal = SWIG_NewPointerObj(obj, SWIGTYPE_p_w...
2007 Apr 14
1
how to simulate key_down event(when event.get_key_code()==Wx::K_DOWN) in ListCtrl or TreeCtrl?
I want to simulate vi(vim) like operations in ListCtrl or TreeCtrl, that is, for example, when user pressed a ''j'' on keyboard,the selected item change into the next one item, just like user press a Wx::K_DOWN(arrow key down on keyboard) . but not jump to some item started with a "J" charater. evt_tree_key_down(TreeTest_Ctrl) { | e | on_tree_key_down(e) } ... def
2006 Dec 03
3
tag and release 0.0.38
Hi I''d like to tag and release 0.0.38 in the next week or so. I know we still have a nasty GC bug on windows, but I''m thinking we could just tell people to use GC.disable for the time being if that avoids the problem. After all, it''s not meant for production use yet. This would make other recent bugfixes and enhancements available. Plus having a binary build out
2007 Oct 23
6
wxRuby 1.9.2
...pp, show a Window and start the main loop, all in four lines of code. == INCOMPATIBLE API CHANGES == TreeCtrl#get_first_child now only returns a single value, the tree id of the relevant first child. Use #get_next_sibling to loop over a group of child tree nodes, or use the convenience method #get_children. == KNOWN ISSUES == At a late stage a minor regression has shown up. Some methods which may return a Wx::Window or Wx::Sizer (eg Window#get_sizer) can raise a RuntimeError instead of returning nil if nothing is set. A fix is already in SVN, but for the time being, if you get "Cannot wrap...
2006 Dec 24
0
[803] trunk/wxruby2/Changelog: Update with recent changes
...- Moved TreeCtrl#traverse to wxSugar (Alex Fenton) +- Simplify some bits of XRC sample (Alex Fenton) +- Added some missing classes to parents.rb (Alex Fenton) +- Made find_window_xx etc return correct objects from SWIG tracking (Alex FEnton) +- Added TextUrlEvent class (Alex Fenton) +- Fixed Window#get_children method (Alex Fenton) + +=== 0.0.37 tag on 2006-12-24 included all of this: === +- Updated TODO (Alex Fenton) </ins><span class="cx"> - Tweak binary library loading so errors are raised with accurate info (Alex Fenton) </span><span class="cx"> - Added Help...
2006 Dec 30
0
[812] trunk/wxsugar/lib/wx_sugar/wx_classes/window.rb: Added find_window and descendants methods
...uot;>@@ -1,5 +1,26 @@ </span><span class="cx"> # extensions to Wx::Window </span><span class="cx"> class Wx::Window </span><ins>+ # Returns an array containing this window and all windows descended + # from it. + def get_descendants + get_children.inject([ self ]) do | desc, child | + desc + child.get_descendants + end + end + + # Passed a block, returns the first window within self''s window + # hierarchy for which the block evaluates to true. A class name may + # optionally be passed to restrict the search to windows of...
2006 Dec 20
0
[789] trunk/wxruby2/swig/classes/Window.i: Make GetChildren work (tho general fix for get_ruby_object still needed)
...;GetFirst(); + while (node) + { + wxObject *obj = node->GetData(); + rb_ary_push($result, get_ruby_object(obj)); + node = node->GetNext(); + } +} + +// general-purpose function used to return ruby wrappers around windows +// whose type is not known in advance - as in find_window, get_children etc + +// TODO - doesn''t work correctly with object tracking - it should return +// the same Ruby object if the object has been seen before +// use something like: +//&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp returnVal = SWIG_NewPointerObj(obj, SWIGTYPE_p_w...
2007 Mar 09
0
[877] trunk/wxruby2/Changelog: Update with 0.0.39 changes; correct last version number
...> - Added ScrollBar and ScrollEvent, plus event handling plumbing (Alex Fenton) </span><span class="lines">@@ -16,7 +41,7 @@ </span><span class="cx"> - Added TextUrlEvent class (Alex Fenton) </span><span class="cx"> - Fixed Window#get_children method (Alex Fenton) </span><span class="cx"> </span><del>-=== 0.0.37 tag on 2006-12-24 included all of this: === </del><ins>+=== 0.0.38 tag on 2006-12-24 included all of this: === </ins><span class="cx"> - Updated TODO (Alex Fent...
2007 Apr 29
8
wxruby unfriendly to other threads?
I''ve seen a few e-mails about multithreading with respect to wxruby but nothing recent. Unless I''m mistaken, and that may be, there still appear to be problems. The following code seems to hang my spawned thread in favor of the wxruby event loop: Thread.new do puts "in thread" loop do sleep 5 puts "looping" end end puts "main