summaryrefslogtreecommitdiffstats
path: root/src/filename.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-01-26 21:10:54 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2003-01-26 21:10:54 (GMT)
commit5d7d90c39506fb7a19514dc4abd540018deeaaf6 (patch)
tree76af52671423a9b083a05f78c82f3435635ab400 /src/filename.cpp
parentafb84237b8c3024f2f35346ba3ee4532e1a8b507 (diff)
downloadDoxygen-5d7d90c39506fb7a19514dc4abd540018deeaaf6.zip
Doxygen-5d7d90c39506fb7a19514dc4abd540018deeaaf6.tar.gz
Doxygen-5d7d90c39506fb7a19514dc4abd540018deeaaf6.tar.bz2
Release-1.3-rc2-20030126
Diffstat (limited to 'src/filename.cpp')
-rw-r--r--src/filename.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/filename.cpp b/src/filename.cpp
index 131f362..a9c8a02 100644
--- a/src/filename.cpp
+++ b/src/filename.cpp
@@ -35,13 +35,18 @@ void FileName::generateDiskNames()
//QCString commonPrefix;
FileDef *fd=first();
int count=0;
- while (fd) { if (!fd->isReference()) count++; fd=next(); }
+ while (fd)
+ {
+ if (!fd->isReference()) count++;
+ fd=next();
+ }
if (count==1)
{
fd=first();
// skip references
while (fd && fd->isReference()) fd=next();
// name if unique, so diskname is simply the name
+ //printf("!!!!!!!! Unique disk name=%s for fd=%s\n",name.data(),fd->diskname.data());
fd->diskname=name.copy();
}
else if (count>1) // multiple occurrences of the same file name
@@ -84,6 +89,7 @@ void FileName::generateDiskNames()
{
QCString prefix = fd->path.right(fd->path.length()-j-1);
fd->setName(prefix+name);
+ //printf("!!!!!!!! non unique disk name=%s for fd=%s\n",(prefix+name).data(),fd->diskname.data());
fd->diskname=prefix+name;
}
fd=next();