~gcrosswhite/privateer/trunk

Viewing all changes in revision 79.

  • Committer: Gregory Crosswhite
  • Date: 2009-04-20 08:18:04 UTC
  • Revision ID: gcross@phys.washington.edu-20090420081804-w930alxu97hg323h
Added another test, and made lots of changes to fix the bug it found with the way arrays are handled by adding a flag to let the processing code know when it is dealing with an array type and hence should not add the extra level of pointer indirection that it normally adds.  (The need to do this arises from the fact that C conflates pointers and arrays, so when returning a pointer to the start of the array you need to return the array variable itself and not its address, and likewise when accessing the array you just index it as normal and should *not* dereference it first.  Sigh...)

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: