mirror of
https://git.freebsd.org/ports.git
synced 2025-05-20 11:03:09 -04:00
25 lines
984 B
Text
25 lines
984 B
Text
--- src/definition.cpp.orig 2015-01-03 22:38:57 UTC
|
|
+++ src/definition.cpp
|
|
@@ -17,6 +17,7 @@
|
|
|
|
#include <ctype.h>
|
|
#include <qregexp.h>
|
|
+#include <sys/types.h>
|
|
#include "md5.h"
|
|
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
@@ -537,13 +538,11 @@ void Definition::writeDocAnchorsToTagFil
|
|
|
|
bool Definition::_docsAlreadyAdded(const QCString &doc,QCString &sigList)
|
|
{
|
|
- uchar md5_sig[16];
|
|
QCString sigStr(33);
|
|
// to avoid mismatches due to differences in indenting, we first remove
|
|
// double whitespaces...
|
|
QCString docStr = doc.simplifyWhiteSpace();
|
|
- MD5Buffer((const unsigned char *)docStr.data(),docStr.length(),md5_sig);
|
|
- MD5SigToString(md5_sig,sigStr.rawData(),33);
|
|
+ MD5Data((const unsigned char *)docStr.data(),docStr.length(),sigStr.rawData());
|
|
//printf("%s:_docsAlreadyAdded doc='%s' sig='%s' docSigs='%s'\n",
|
|
// name().data(),doc.data(),sigStr.data(),sigList.data());
|
|
if (sigList.find(sigStr)==-1) // new docs, add signature to prevent re-adding it
|