summaryrefslogtreecommitdiffstats
path: root/src/filename.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2003-01-26 21:10:54 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2003-01-26 21:10:54 (GMT)
commitdaa0336ab06f76a07f59499cbc47fd919073749d (patch)
tree76af52671423a9b083a05f78c82f3435635ab400 /src/filename.cpp
parent92792d3adc9011f35467341eb535ed3580ddb901 (diff)
downloadDoxygen-daa0336ab06f76a07f59499cbc47fd919073749d.zip
Doxygen-daa0336ab06f76a07f59499cbc47fd919073749d.tar.gz
Doxygen-daa0336ab06f76a07f59499cbc47fd919073749d.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();