projects
/
feisty_meow.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updated readme
[feisty_meow.git]
/
nucleus
/
library
/
filesystem
/
filename_list.cpp
diff --git
a/nucleus/library/filesystem/filename_list.cpp
b/nucleus/library/filesystem/filename_list.cpp
index 24d1522e6bf36b08c9ef8b659fa0144979167538..2ebe6d045cc0eedaa3d3312a5165760d9e010555 100644
(file)
--- a/
nucleus/library/filesystem/filename_list.cpp
+++ b/
nucleus/library/filesystem/filename_list.cpp
@@
-102,7
+102,7
@@
const file_info *filename_list::find(const filename &to_check) const
if (to_check.raw() == get(i)->raw()) return get(i);
#endif
}
if (to_check.raw() == get(i)->raw()) return get(i);
#endif
}
- return N
IL
;
+ return N
ULL_POINTER
;
}
int filename_list::locate(const filename &to_find) const
}
int filename_list::locate(const filename &to_find) const
@@
-152,10
+152,9
@@
bool filename_list::member_with_state(const file_info &to_check, file_info::file
return false;
}
return false;
}
-astring filename_list::text_form() const
+astring filename_list::text_form(
int max_lines
) const
{
astring to_return;
{
astring to_return;
-//hmmm: a length limit might be nice?
for (int i = 0; i < elements(); i++) {
to_return += a_sprintf("%d. ", i + 1);
if (get(i))
for (int i = 0; i < elements(); i++) {
to_return += a_sprintf("%d. ", i + 1);
if (get(i))