1.1 --- a/src/share/vm/adlc/filebuff.hpp Thu Feb 26 16:57:21 2009 -0800 1.2 +++ b/src/share/vm/adlc/filebuff.hpp Fri Feb 27 03:35:40 2009 -0800 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright 1997-2008 Sun Microsystems, Inc. All Rights Reserved. 1.6 + * Copyright 1997-2009 Sun Microsystems, Inc. All Rights Reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -26,6 +26,7 @@ 1.11 #include <iostream> 1.12 1.13 using namespace std; 1.14 + 1.15 // STRUCTURE FOR HANDLING INPUT AND OUTPUT FILES 1.16 typedef struct { 1.17 const char *_name; 1.18 @@ -72,7 +73,7 @@ 1.19 1.20 // This converts a pointer into the buffer to a file offset. It only works 1.21 // when the pointer is valid (i.e. just obtained from getline()). 1.22 - int getoff(const char *s) { return _bufoff+(int)(s-_buf); } 1.23 + long getoff(const char* s) { return _bufoff + (s - _buf); } 1.24 }; 1.25 1.26 //------------------------------FileBuffRegion--------------------------------- 1.27 @@ -95,8 +96,6 @@ 1.28 FileBuffRegion *copy(); // Deep copy 1.29 FileBuffRegion *merge(FileBuffRegion*); // Merge 2 regions; delete input 1.30 1.31 -// void print(std::ostream&); 1.32 -// friend std::ostream& operator<< (std::ostream&, FileBuffRegion&); 1.33 void print(ostream&); 1.34 friend ostream& operator<< (ostream&, FileBuffRegion&); 1.35 };