summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authordimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-10-29 18:39:28 (GMT)
committerdimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7>2006-10-29 18:39:28 (GMT)
commitd384b6c7459cffcbb30bdd0ab06bde6f0cd12688 (patch)
tree6386fc01aea029071bdcabdf150991c7632b5fd3 /src/util.cpp
parent6ad4771494b64943541d87639743de4d6618ebc4 (diff)
downloadDoxygen-d384b6c7459cffcbb30bdd0ab06bde6f0cd12688.zip
Doxygen-d384b6c7459cffcbb30bdd0ab06bde6f0cd12688.tar.gz
Doxygen-d384b6c7459cffcbb30bdd0ab06bde6f0cd12688.tar.bz2
Release-1.5.1
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 96f0e84..1cef237 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -254,6 +254,17 @@ int iSystem(const char *command,const char *args,bool commandHasConsole)
}
+uint iPid()
+{
+ uint pid;
+#if !defined(_WIN32) || defined(__CYGWIN__)
+ pid = (uint)getpid();
+#else
+ pid = (uint)GetCurrentProcessId();
+#endif
+ return pid;
+}
+
@@ -886,9 +897,11 @@ bool accessibleViaUsingNamespace(const NamespaceSDict *nl,
{
NamespaceSDict::Iterator nli(*nl);
NamespaceDef *und;
- for (nli.toFirst();(und=nli.current());++nli)
+ int count=0;
+ for (nli.toFirst();(und=nli.current());++nli,count++)
{
- //printf("[Trying via used namespace %s\n",und->name().data());
+ //printf("[Trying via used namespace %s: count=%d/%d\n",und->name().data(),
+ // count,nl->count());
Definition *sc = explicitScopePart.isEmpty() ? und : followPath(und,fileScope,explicitScopePart);
if (sc && item->getOuterScope()==sc)
{