summaryrefslogtreecommitdiff
path: root/sources/scalac/util
diff options
context:
space:
mode:
authorMatthias Zenger <mzenger@gmail.com>2003-11-11 13:21:09 +0000
committerMatthias Zenger <mzenger@gmail.com>2003-11-11 13:21:09 +0000
commit2521f5270d8599a6407588cd3ab92143c77bc827 (patch)
tree1c84600ef4c627d56c24f090c6ab3fba3a8f4c76 /sources/scalac/util
parent6a5131fc32787d2d4865918a4fb1e480bfc14f8f (diff)
downloadscala-2521f5270d8599a6407588cd3ab92143c77bc827.tar.gz
scala-2521f5270d8599a6407588cd3ab92143c77bc827.tar.bz2
scala-2521f5270d8599a6407588cd3ab92143c77bc827.zip
Added support for | in algebraic patterns;
Added support for reading ConstantValue attributes;
Diffstat (limited to 'sources/scalac/util')
-rw-r--r--sources/scalac/util/AbstractFileReader.java26
1 files changed, 13 insertions, 13 deletions
diff --git a/sources/scalac/util/AbstractFileReader.java b/sources/scalac/util/AbstractFileReader.java
index 2f7d0e1e21..3ecd385dc6 100644
--- a/sources/scalac/util/AbstractFileReader.java
+++ b/sources/scalac/util/AbstractFileReader.java
@@ -73,35 +73,35 @@ public class AbstractFileReader {
/** extract a character at position bp from buf
*/
- public char getChar(int bp) {
- return (char)(((buf[bp] & 0xff) << 8) + (buf[bp+1] & 0xff));
+ public char getChar(int mybp) {
+ return (char)(((buf[mybp] & 0xff) << 8) + (buf[mybp+1] & 0xff));
}
/** extract an integer at position bp from buf
*/
- public int getInt(int bp) {
- return ((buf[bp ] & 0xff) << 24) +
- ((buf[bp+1] & 0xff) << 16) +
- ((buf[bp+2] & 0xff) << 8) +
- (buf[bp+3] & 0xff);
+ public int getInt(int mybp) {
+ return ((buf[mybp ] & 0xff) << 24) +
+ ((buf[mybp+1] & 0xff) << 16) +
+ ((buf[mybp+2] & 0xff) << 8) +
+ (buf[mybp+3] & 0xff);
}
/** extract a long integer at position bp from buf
*/
- public long getLong(int bp) {
- return ((long)(getInt(bp)) << 32) + (getInt(bp + 4) & 0xffffffffL);
+ public long getLong(int mybp) {
+ return ((long)(getInt(mybp)) << 32) + (getInt(mybp + 4) & 0xffffffffL);
}
/** extract a float at position bp from buf
*/
- public strictfp float getFloat(int bp) {
- return Float.intBitsToFloat(getInt(bp));
+ public strictfp float getFloat(int mybp) {
+ return Float.intBitsToFloat(getInt(mybp));
}
/** extract a double at position bp from buf
*/
- public strictfp double getDouble(int bp) {
- return Double.longBitsToDouble(getLong(bp));
+ public strictfp double getDouble(int mybp) {
+ return Double.longBitsToDouble(getLong(mybp));
}
/** skip next 'n' bytes