Displaying 13 results from an estimated 13 matches for "get_parent".
2010 Feb 28
2
[LLVMdev] How to check if an Instruction is still in a Function
Hi,
Given an instruction ptr instr, and a Function ptr func,
can I simply check if func == instr->get_parent()->get_parent() to see if
this instruction is still in this Function?
We can also look up this instruction in the blocks of this function.
But this may take more time.
Thanks.
--
Jianzhou
2010 Mar 02
0
[LLVMdev] How to check if an Instruction is still in a Function
On Feb 28, 2010, at 11:11 AM, Jianzhou Zhao wrote:
> Hi,
>
> Given an instruction ptr instr, and a Function ptr func,
> can I simply check if func == instr->get_parent()->get_parent() to see if
> this instruction is still in this Function?
>
Yup!
-bw
2010 Mar 02
1
[LLVMdev] How to check if an Instruction is still in a Function
On Mon, Mar 1, 2010 at 7:29 PM, Bill Wendling <wendling at apple.com> wrote:
> On Feb 28, 2010, at 11:11 AM, Jianzhou Zhao wrote:
>
>> Hi,
>>
>> Given an instruction ptr instr, and a Function ptr func,
>> can I simply check if func == instr->get_parent()->get_parent() to see if
>> this instruction is still in this Function?
>>
> Yup!
Well. I just found that this is not quite safe sometimes.
After an instruction is removed via 'eraseFromParent',
the instruction will be deleted, and become 'dangling'.
LLVM does no...
2008 Jan 03
0
Wx::Menu, get parent menu functions?
I have been looking in the API Docs for get_parent type stuff for the
Menu''s - so I can track a click path across sub-menus and have not found
anything. Are there really no functions for that or did I just miss the
right place to look?
If it is true then consider this below:
class MyMenu < Wx::Menu
def initialize(mymasterclass,...
2008 May 03
3
what type of variable use? (setting text on another class va
so, i have a MinimalFrame class where i have a form, then, after a user
add a new client i would like to send a log message on MainFrame
status_bar.
--
Posted via http://www.ruby-forum.com/.
2007 Sep 17
4
Xenstored: eliminate double free and fixes for memory leak
...d a allocated
memory (via realloc()). The only time the value is returned is in
do_get_perms(), but immediately after send_reply(), the pointer is
immediately thrown away, resulting in a memory leak condition, as
send_reply() does not free any memory.
c. Many of the functions like read_node(), get_parent(),
talloc_asprintf() etc all will allocate memory and return a pointer
when memory is allocated, but many times these are not freed.
Another problem identified but which I cannot fix, is that
create_hashtable() can return NULL in low memory condition. But this
is not checked in the recursive fun...
2008 Jul 20
26
[PATCH] NFS support for btrfs - v2
...objectid;
+ u32 generation;
+
+ if (fh_type > BTRFS_FID_CONNECTABLE) {
+ return NULL;
+ }
+
+ objectid = fid->objectid;
+ root_objectid = fid->root_objectid;
+ generation = fid->gen;
+
+ return btrfs_get_dentry(sb, objectid, root_objectid, generation);
+}
+
+static struct dentry *btrfs_get_parent(struct dentry *child)
+{
+ struct inode *dir = child->d_inode;
+ struct inode *inode;
+ struct dentry *parent;
+ struct btrfs_root *root = BTRFS_I(dir)->root;
+ struct btrfs_key key;
+ struct btrfs_path *path;
+ struct extent_buffer *leaf;
+ u32 nritems;
+ int slot;
+ u64 objectid;
+ int ret...
2006 Jan 09
1
Saving an upload
...has_many :comics
acts_as_list :picture_id
attr_writer :parent_id
attr_writer :type
validates_presence_of :filename, :content_type
def after_save
p self.inspect
# If a file was uploaded, save it
if @temp_file
# Check the existence of the dir before writing
#item = get_parent
#upload_dir = File.expand_path(UPLOAD_PATH) +
"/#{item.class}/#{item.id}/"
upload_dir = File.expand_path(UPLOAD_PATH) +
"/#{@type}/#{@parent_id}/"
if !File.exists? upload_dir
Dir.mkdir upload_dir
end
# Save the file to /films/123/foo.jpg...
2007 Apr 13
0
[956] branches/wxruby2/wxwidgets_282: Additions to TreeCtrl API 2.6->2.8
...ling":#TreeCtrl_getnextsibling
</span><span class="cx"> * "TreeCtrl#get_next_visible":#TreeCtrl_getnextvisible
</span><span class="cx"> * "TreeCtrl#get_item_parent":#TreeCtrl_getitemparent
</span><del>-* "TreeCtrl#get_parent":#TreeCtrl_getparent
</del><span class="cx"> * "TreeCtrl#get_prev_sibling":#TreeCtrl_getprevsibling
</span><span class="cx"> * "TreeCtrl#get_prev_visible":#TreeCtrl_getprevvisible
</span><ins>+* "TreeCtrl#get_quic...
2010 Nov 17
0
[PATCH] Btrfs: handle NFS lookups properly
...to make sure that reconnect_path
+ * gets the right len for strlen
+ */
+ name[name_len] = ''\0'';
+
+ return 0;
+}
+
const struct export_operations btrfs_export_ops = {
.encode_fh = btrfs_encode_fh,
.fh_to_dentry = btrfs_fh_to_dentry,
.fh_to_parent = btrfs_fh_to_parent,
.get_parent = btrfs_get_parent,
+ .get_name = btrfs_get_name,
};
--
1.6.6.1
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
2007 Apr 16
0
[969] branches/wxruby2/wxwidgets_282/doc/textile/window.txtl: Cleanup and fixing of broken links.
...quot;>
</span><span class="cx"> h3(#Window_gethandle). Window#get_handle
</span><span class="lines">@@ -1070,12 +1068,12 @@
</span><span class="cx">
</span><span class="cx"> "Window":window.html *get_parent*()
</span><span class="cx">
</span><del>-Returns the parent of the window, or NULL if there is no parent.
</del><ins>+Returns the parent of the window, or @nil@ if there is no parent.
</ins><span class="cx">
</span><span...
2007 Apr 30
0
[997] branches/wxruby2/wxwidgets_282: Window - 2.6 -> 2.8 API, new methods and deprecations; update doc
...t;span class="cx"> * "Window#get_id":#Window_getid
</span><span class="cx"> * "Window#get_label":#Window_getlabel
</span><span class="lines">@@ -121,6 +124,8 @@
</span><span class="cx"> * "Window#get_parent":#Window_getparent
</span><span class="cx"> * "Window#get_position":#Window_getposition
</span><span class="cx"> * "Window#get_rect":#Window_getrect
</span><ins>+* "Window#get_screen_position":#Window_getscre...
2009 Dec 04
0
Wine release 1.1.34
...comctl32: Fix typos.
Andrew Eikum (14):
mshtml: Add stub implementation of IHTMLWindow4.
mshtml: Implement IHTMLWindow4::get_frameElement.
mshtml: Implement IHTMLWindow2::get_frames and add tests.
mshtml: Implement IHTMLWindow2::item.
mshtml: Implement IHTMLWindow2::get_parent.
jscript: Implement decodeURIComponent.
mshtml: Implement IHTMLWindow2::get_top.
mshtml: Also get dispid by element name & id in HTMLElementCollection.
mshtml: Also search by node name attribute in IHTMLDocument3::getElementById.
mshtml.idl: Add DispHTMLFormElement...