diff options
author | Dimitri van Heesch <dimitri@stack.nl> | 2006-10-29 18:39:28 (GMT) |
---|---|---|
committer | Dimitri van Heesch <dimitri@stack.nl> | 2006-10-29 18:39:28 (GMT) |
commit | 7e81d44c98dbbb1bb30d623be52ca76bbd880038 (patch) | |
tree | 6386fc01aea029071bdcabdf150991c7632b5fd3 /src/util.cpp | |
parent | 5e24df52170c1b19d8ef628f4e657bc35a7f300b (diff) | |
download | Doxygen-7e81d44c98dbbb1bb30d623be52ca76bbd880038.zip Doxygen-7e81d44c98dbbb1bb30d623be52ca76bbd880038.tar.gz Doxygen-7e81d44c98dbbb1bb30d623be52ca76bbd880038.tar.bz2 |
Release-1.5.1
Diffstat (limited to 'src/util.cpp')
-rw-r--r-- | src/util.cpp | 17 |
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) { |