Re: [Introspector-developers] new patch
Status: Beta
Brought to you by:
mdupont
|
From: James M. D. <mdu...@ya...> - 2002-12-02 11:17:21
|
OOppps, I forgot to update one part intrspctr_start_function this is a badly named function that is used to contruct the constants and init the dump_info structure are init Basically someone (mario or I) will have to make sure right now that all the structures in the dump_info are initialized. Even if you want to init them all with dummys, the have to the the right type : either a librdf_node for a predicate or object or a librdf_uri for a base Later it will read these constants from a rdf project files. here is an example : di->pgcc_node_modifiers= librdf_new_uri(di->pworld, "http://purl.oclc.org/NET/introspector/2002/11/24/gcc/node_modifiers#"); that says that there is a base uri for all modifiers (const, volitile etc) they are used later here : dump_string is used exclusivly for dumping modifiers void dump_string (di, string) dump_info_p di; const char *string; { intrspctr_add_statement_typed_string( di, LIBRDF_MS_type, // the type of the current node is di->pgcc_node_modifiers, // a gcc modififer string // with the value of this string ); } Now for predefined nodes: i create + di->pgccfield_filename =intrspctr_get_field_predicate(di,"filename"); this creates a node that is relative the the future gcc structure model all of these need to be initialized this way in struct dump_info{ + librdf_node* paddress_predicate; // address of a node in memory intrspctr_get_field_predicate(di,"node-address"); + librdf_node* pinteger_predicate; // an integer value intrspctr_get_field_predicate(di,"integer-value"); + librdf_node* plinenumber_predicate; // the line number of a node intrspctr_get_field_predicate(di,"line-number"); + librdf_node* pgccfield_filename; // the file name of a node intrspctr_get_field_predicate(di,"file-name"); + librdf_node* pgccfield_string; // a string value in a node intrspctr_get_field_predicate(di,"string"); + librdf_node* pgccfield_treecode; // a tree code intrspctr_get_field_predicate(di,"tree-code"); so these initializers need to reviewed, I will do that tonight, but if you want to use the patch today, there is the work to do. mike ===== James Michael DuPont http://introspector.sourceforge.net/ __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com |