RubySlicc_Util.hh (6493:1fa51760a963) RubySlicc_Util.hh (6494:be123e27612f)
1
2/*
3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 154 unchanged lines hidden (view full) ---

163// Makes an address into a line address
164extern inline Address makeLineAddress(Address addr)
165{
166 Address result = addr;
167 result.makeLineAddress();
168 return result;
169}
170
1
2/*
3 * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

--- 154 unchanged lines hidden (view full) ---

163// Makes an address into a line address
164extern inline Address makeLineAddress(Address addr)
165{
166 Address result = addr;
167 result.makeLineAddress();
168 return result;
169}
170
171extern inline int addressOffset(Address addr)
172{
173 return addr.getOffset();
174}
175
171#endif //SLICC_UTIL_H
176#endif //SLICC_UTIL_H