#include "pcodeflow.h"
#include "ralloc.h"
-#if defined(__BORLANDC__) || defined(_MSC_VER)
-#define STRCASECMP stricmp
-#else
-#define STRCASECMP strcasecmp
-#endif
-
pCodeOp *popCopyGPR2Bit(pCodeOpReg *pc, int bitval);
pCodeOp *popRegFromString(char *str, int size, int offset);
/* We have just replaced the inefficient code with the rule.
* Now, we need to re-add the C-source symbols if there are any */
pc = pcprev;
- while(pc_cline ) {
+ while(pc && pc_cline ) {
pc = findNextInstruction(pc->next);
+ if (!pc) break;
PCI(pc)->cline = pc_cline;
pc_cline = PCCS(pc_cline->pc.next);
/* Copy C code comments to new code. */
pc = pcprev->next;
if (pc) {
- for (; pcout!=pcin; pcout=pcout->next) {
+ for (; pc && pcout!=pcin; pcout=pcout->next) {
if (pcout->type==PC_OPCODE && PCI(pcout)->cline) {
while (pc->type!=PC_OPCODE || PCI(pc)->cline) {
pc = pc->next;
if (!pc)
break;
}
+ if (!pc) break;
PCI(pc)->cline = PCI(pcout)->cline;
}
}