Changeset 32e3cdf in mainline


Ignore:
Timestamp:
2014-08-27T18:05:45Z (10 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
713b8ce7
Parents:
4be73ba
Message:

Prefix offsets with the name of the structure.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/autogen.py

    r4be73ba r32e3cdf  
    5555        for i in range(len(struct['members'])):
    5656                member = struct['members'][i]
    57                 code = code + ("\temit_constant(OFFSET_%s, offsetof(%s_t, %s));\n" %
    58                     (member['name'].upper(), struct['name'], member['name']))
     57                code = code + ("\temit_constant(%s_OFFSET_%s, offsetof(%s_t, %s));\n" %
     58                    (struct['name'].upper(), member['name'].upper(), struct['name'],
     59                    member['name']))
    5960        return code
    6061
Note: See TracChangeset for help on using the changeset viewer.