RubySlicc_Util.hh (6372:f1a41ea3bbab) RubySlicc_Util.hh (6467:5670eee2a866)
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

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

168// Makes an address into a line address
169extern inline Address makeLineAddress(Address addr)
170{
171 Address result = addr;
172 result.makeLineAddress();
173 return result;
174}
175
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

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

168// Makes an address into a line address
169extern inline Address makeLineAddress(Address addr)
170{
171 Address result = addr;
172 result.makeLineAddress();
173 return result;
174}
175
176extern inline int addressOffset(Address addr)
177{
178 return addr.getOffset();
179}
180
176#endif //SLICC_UTIL_H
181#endif //SLICC_UTIL_H