/[ascend]/trunk/ascend/compiler/instquery.c
ViewVC logotype

Diff of /trunk/ascend/compiler/instquery.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2182 by jpye, Wed Apr 29 03:38:10 2009 UTC revision 2183 by jpye, Tue May 4 13:38:42 2010 UTC
# Line 466  struct Instance *GetSimulationRoot(struc Line 466  struct Instance *GetSimulationRoot(struc
466    return *child_adr;    return *child_adr;
467  }  }
468    
469    struct Instance *FindSimulationInstance(struct Instance *i){
470        struct gl_list_t *sims;
471        sims = FindSimulationAncestors(i);
472        if(gl_length(sims)!=1){
473            CONSOLE_DEBUG("Instance does not have just one SIM_INST ancestor");
474            return NULL;
475        }
476        struct Instance *sim;
477        sim = gl_fetch(sims,1);
478        gl_destroy(sims);
479        return sim;
480    }
481    
482    
483  /* Returns the number of bytes spent on a particular instance  /* Returns the number of bytes spent on a particular instance
484   * Does not count relation guts, dimens, strings, or set_t *   * Does not count relation guts, dimens, strings, or set_t *

Legend:
Removed from v.2182  
changed lines
  Added in v.2183

john.pye@anu.edu.au
ViewVC Help
Powered by ViewVC 1.1.22