Lines 1-70
Link Here
|
1 |
--- src/dot.cpp.orig 2016-05-10 19:51:52 UTC |
|
|
2 |
+++ src/dot.cpp |
3 |
@@ -39,6 +39,7 @@ |
4 |
#include "dirdef.h" |
5 |
#include "vhdldocgen.h" |
6 |
#include "ftextstream.h" |
7 |
+#include <sys/types.h> |
8 |
#include "md5.h" |
9 |
#include "memberlist.h" |
10 |
#include "groupdef.h" |
11 |
@@ -2271,10 +2272,8 @@ void DotGfxHierarchyTable::createGraph(D |
12 |
} |
13 |
} |
14 |
writeGraphFooter(md5stream); |
15 |
- uchar md5_sig[16]; |
16 |
QCString sigStr(33); |
17 |
- MD5Buffer((const unsigned char *)theGraph.data(),theGraph.length(),md5_sig); |
18 |
- MD5SigToString(md5_sig,sigStr.rawData(),33); |
19 |
+ MD5Data((const unsigned char *)theGraph.data(),theGraph.length(),sigStr.rawData()); |
20 |
bool regenerate=FALSE; |
21 |
if (checkAndUpdateMd5Signature(absBaseName,sigStr) || |
22 |
!checkDeliverables(absImgName,absMapName)) |
23 |
@@ -3039,10 +3038,8 @@ QCString computeMd5Signature(DotNode *ro |
24 |
} |
25 |
} |
26 |
writeGraphFooter(md5stream); |
27 |
- uchar md5_sig[16]; |
28 |
QCString sigStr(33); |
29 |
- MD5Buffer((const unsigned char *)buf.data(),buf.length(),md5_sig); |
30 |
- MD5SigToString(md5_sig,sigStr.rawData(),33); |
31 |
+ MD5Data((const unsigned char *)buf.data(),buf.length(),sigStr.rawData()); |
32 |
graphStr=buf.data(); |
33 |
//printf("md5: %s | file: %s\n",sigStr,baseName.data()); |
34 |
return sigStr; |
35 |
@@ -3954,10 +3951,8 @@ QCString DotDirDeps::writeGraph(FTextStr |
36 |
FTextStream md5stream(&theGraph); |
37 |
//m_dir->writeDepGraph(md5stream); |
38 |
writeDotDirDepGraph(md5stream,m_dir,linkRelations); |
39 |
- uchar md5_sig[16]; |
40 |
QCString sigStr(33); |
41 |
- MD5Buffer((const unsigned char *)theGraph.data(),theGraph.length(),md5_sig); |
42 |
- MD5SigToString(md5_sig,sigStr.rawData(),33); |
43 |
+ MD5Data((const unsigned char *)theGraph.data(),theGraph.length(),sigStr.rawData()); |
44 |
bool regenerate=FALSE; |
45 |
if (checkAndUpdateMd5Signature(absBaseName,sigStr) || |
46 |
!checkDeliverables(graphFormat==GOF_BITMAP ? absImgName : |
47 |
@@ -4099,10 +4094,8 @@ void generateGraphLegend(const char *pat |
48 |
md5stream << " Node18 -> Node9 [dir=\"back\",color=\"darkorchid3\",fontsize=\"" << FONTSIZE << "\",style=\"dashed\",label=\"m_usedClass\",fontname=\"" << FONTNAME << "\"];\n"; |
49 |
md5stream << " Node18 [shape=\"box\",label=\"Used\",fontsize=\"" << FONTSIZE << "\",height=0.2,width=0.4,fontname=\"" << FONTNAME << "\",color=\"black\",URL=\"$classUsed" << Doxygen::htmlFileExtension << "\"];\n"; |
50 |
writeGraphFooter(md5stream); |
51 |
- uchar md5_sig[16]; |
52 |
QCString sigStr(33); |
53 |
- MD5Buffer((const unsigned char *)theGraph.data(),theGraph.length(),md5_sig); |
54 |
- MD5SigToString(md5_sig,sigStr.rawData(),33); |
55 |
+ MD5Data((const unsigned char *)theGraph.data(),theGraph.length(),sigStr.rawData()); |
56 |
QCString absBaseName = (QCString)path+"/graph_legend"; |
57 |
QCString absDotName = absBaseName+".dot"; |
58 |
QCString imgExt = getDotImageExtension(); |
59 |
@@ -4507,10 +4500,8 @@ QCString DotGroupCollaboration::writeGra |
60 |
} |
61 |
|
62 |
writeGraphFooter(md5stream); |
63 |
- uchar md5_sig[16]; |
64 |
QCString sigStr(33); |
65 |
- MD5Buffer((const unsigned char *)theGraph.data(),theGraph.length(),md5_sig); |
66 |
- MD5SigToString(md5_sig,sigStr.rawData(),33); |
67 |
+ MD5Data((const unsigned char *)theGraph.data(),theGraph.length(),sigStr.rawData()); |
68 |
QCString imgExt = getDotImageExtension(); |
69 |
QCString imgFmt = Config_getEnum(DOT_IMAGE_FORMAT); |
70 |
QCString baseName = m_diskName; |