<div dir="ltr"><br><div><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Oct 11, 2013 at 11:54 AM, Eric Christopher <span dir="ltr"><<a href="mailto:echristo@gmail.com" target="_blank">echristo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">><br>
> I think the easiest design you'll get for uniquing C types that are<br>
> named the same thing (i.e. type defined in a .h file) is to use the<br>
> name of the struct combined with the file (and possibly line/column)<br>
> as an identifier. If you want to unify by structure then you'll need<br>
> to do something the equivalent to the type hashing that we're<br>
> implementing in the back end, but that'll be more difficult to<br>
> construct via the front end - it may be possible though.<br>
><br>
<br>
</div>To sum up in a slightly better way I think Doug has posted some rules<br>
on how to merge C types for modules and we could use those to<br>
construct a unique identifier for the type. If we do that I'd request<br>
we prepend the type name in there some how as that'd be convenient. :)<br></blockquote><div><br></div><div>If we can get a unique identifier without the type hashing, that will be great. Where can I find the rules?</div>
<div><br></div><div>Manman</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
-eric<br>
</font></span></blockquote></div><br></div></div>