Normalize logic operation keywords and add use msvc fix
Logical or should be only 'or','and','not', and not error prone '||','&&','!'
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
#include "LIB_PatternCollector.h"
|
||||
|
||||
#include "msvc_fixes.h"
|
||||
|
||||
#include <cstring>
|
||||
#include <cstring>
|
||||
/** \note there is an untested assumption that the *first* segment definition
|
||||
@@ -88,7 +91,7 @@ int LIB_PatternCollector::readSyms(FILE *fl)
|
||||
++segnum;
|
||||
|
||||
b = readByte(fl); /* Class name index */
|
||||
if ((b == codeLNAMES) && (codeSEGDEF == NONE))
|
||||
if ((b == codeLNAMES) and (codeSEGDEF == NONE))
|
||||
{
|
||||
/* This is the segment defining the code class */
|
||||
codeSEGDEF = segnum;
|
||||
|
||||
@@ -1,4 +1,7 @@
|
||||
#include "TPL_PatternCollector.h"
|
||||
|
||||
#include "msvc_fixes.h"
|
||||
|
||||
#include <cstring>
|
||||
|
||||
/** \note Fundamental problem: there seems to be no information linking the names
|
||||
@@ -255,7 +258,7 @@ void TPL_PatternCollector::enterUnitProcs(FILE *f)
|
||||
readString(f);
|
||||
strcpy(name, (char *)buf);
|
||||
cat = readByte(f);
|
||||
if ((cat == charProc) || (cat == charFunc))
|
||||
if ((cat == charProc) or (cat == charFunc))
|
||||
{
|
||||
grab(f,skipPmap); /* Skip to the pmap */
|
||||
pmapOff = readShort(f); /* pmap offset */
|
||||
@@ -278,7 +281,7 @@ void TPL_PatternCollector::enterUnitProcs(FILE *f)
|
||||
int TPL_PatternCollector::readSyms(FILE *f)
|
||||
{
|
||||
grab(f,4);
|
||||
if ((strncmp((char *)buf, "TPU0", 4) != 0) && ((strncmp((char *)buf, "TPU5", 4) != 0)))
|
||||
if ((strncmp((char *)buf, "TPU0", 4) != 0) and ((strncmp((char *)buf, "TPU5", 4) != 0)))
|
||||
{
|
||||
printf("Not a Turbo Pascal version 4 or 5 library file\n");
|
||||
fclose(f);
|
||||
|
||||
@@ -25,8 +25,11 @@
|
||||
* *
|
||||
\* * * * * * * * * * * * */
|
||||
|
||||
#include "msvc_fixes.h"
|
||||
|
||||
#include <memory.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#ifndef PATLEN
|
||||
#define PATLEN 23
|
||||
#define WILD 0xF4
|
||||
@@ -417,7 +420,7 @@ void fixWildCards(uint8_t pat[])
|
||||
|
||||
case 0xCD: /* Int nn */
|
||||
intArg = pat[pc++];
|
||||
if ((intArg >= 0x34) && (intArg <= 0x3B))
|
||||
if ((intArg >= 0x34) and (intArg <= 0x3B))
|
||||
{
|
||||
/* Borland/Microsoft FP emulations */
|
||||
if (ModRM(pat)) return;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
#include "LIB_PatternCollector.h"
|
||||
#include "TPL_PatternCollector.h"
|
||||
#include "perfhlib.h" /* Symbol table prototypes */
|
||||
#include "msvc_fixes.h"
|
||||
|
||||
#include <QtCore/QCoreApplication>
|
||||
#include <QtCore/QStringList>
|
||||
@@ -48,7 +49,7 @@ int main(int argc, char *argv[])
|
||||
return 0;
|
||||
}
|
||||
QString arg2 = app.arguments()[1];
|
||||
if (arg2.startsWith("-h") || arg2.startsWith("-?"))
|
||||
if (arg2.startsWith("-h") or arg2.startsWith("-?"))
|
||||
{
|
||||
printUsage(true);
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user