From: John L. <mov...@us...> - 2003-09-22 14:10:32
|
Update of /cvsroot/oprofile/oprofile/libutil++ In directory sc8-pr-cvs1:/tmp/cvs-serv30028/libutil++ Modified Files: file_manip.cpp file_manip.h op_bfd.cpp op_bfd.h string_manip.cpp Log Message: move op_get_link to op_file, fix doxygen comment placements Index: file_manip.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/file_manip.cpp,v retrieving revision 1.20 retrieving revision 1.21 diff -u -p -d -r1.20 -r1.21 --- file_manip.cpp 22 Sep 2003 13:46:47 -0000 1.20 +++ file_manip.cpp 22 Sep 2003 14:10:23 -0000 1.21 @@ -23,7 +23,6 @@ #include "file_manip.h" #include "string_manip.h" -#include "op_fileio.h" using namespace std; @@ -161,12 +160,6 @@ static string erase_trailing_path_separa } -/** - * dirname - get the path component of a filename - * @param file_name filename - * - * Returns the path name of a filename with trailing '/' removed. - */ string dirname(string const & file_name) { string result = erase_trailing_path_separator(file_name); @@ -190,12 +183,6 @@ string dirname(string const & file_name) } -/** - * basename - get the basename of a path - * @param path_name path - * - * Returns the basename of a path with trailing '/' removed. - */ string basename(string const & path_name) { string result = erase_trailing_path_separator(path_name); Index: file_manip.h =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/file_manip.h,v retrieving revision 1.16 retrieving revision 1.17 diff -u -p -d -r1.16 -r1.17 --- file_manip.h 22 Sep 2003 13:46:47 -0000 1.16 +++ file_manip.h 22 Sep 2003 14:10:23 -0000 1.17 @@ -66,9 +66,20 @@ bool create_file_list(std::list<std::str std::string relative_to_absolute_path(std::string const & path, std::string const & base_dir = std::string()); -/** return the base name of file_name as basename(1) */ +/** + * dirname - get the path component of a filename + * @param file_name filename + * + * Returns the path name of a filename with trailing '/' removed. + */ std::string dirname(std::string const & file_name); -/** return the dir name of path_name as dirname(1) */ + +/** + * basename - get the basename of a path + * @param path_name path + * + * Returns the basename of a path with trailing '/' removed. + */ std::string basename(std::string const & path_name); #endif /* !FILE_MANIP_H */ Index: op_bfd.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/op_bfd.cpp,v retrieving revision 1.37 retrieving revision 1.38 diff -u -p -d -r1.37 -r1.38 --- op_bfd.cpp 18 Sep 2003 15:39:47 -0000 1.37 +++ op_bfd.cpp 22 Sep 2003 14:10:23 -0000 1.38 @@ -209,17 +209,6 @@ struct remove_filter { } // namespace anon -/** - * get_symbols - op_bfd ctor helper - * - * Parse and sort in ascending order all symbols - * in the file pointed to by abfd that reside in - * a %SEC_CODE section. - * - * The symbols are filtered through - * the interesting_symbol() predicate and sorted - * with op_bfd_symbol::operator<() comparator. - */ void op_bfd::get_symbols(op_bfd::symbols_found_t & symbols) { uint nr_all_syms; Index: op_bfd.h =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/op_bfd.h,v retrieving revision 1.23 retrieving revision 1.24 diff -u -p -d -r1.23 -r1.24 --- op_bfd.h 18 Sep 2003 15:39:49 -0000 1.23 +++ op_bfd.h 22 Sep 2003 14:10:24 -0000 1.24 @@ -177,10 +177,13 @@ private: typedef std::list<op_bfd_symbol> symbols_found_t; /** - * Collect the symbols excluding any in the given vector. + * Parse and sort in ascending order all symbols + * in the file pointed to by abfd that reside in + * a %SEC_CODE section. * - * Returns false if there were no symbols in the binary - * before filtering. + * The symbols are filtered through + * the interesting_symbol() predicate and sorted + * with op_bfd_symbol::operator<() comparator. */ void get_symbols(symbols_found_t & symbols); Index: string_manip.cpp =================================================================== RCS file: /cvsroot/oprofile/oprofile/libutil++/string_manip.cpp,v retrieving revision 1.26 retrieving revision 1.27 diff -u -p -d -r1.26 -r1.27 --- string_manip.cpp 18 Sep 2003 13:33:11 -0000 1.26 +++ string_manip.cpp 22 Sep 2003 14:10:24 -0000 1.27 @@ -53,7 +53,6 @@ bool tobool(string const & s) } -/// split string s by first occurence of char c, returning the second part string split(string & s, char c) { string::size_type i = s.find_first_of(c); |