Commit 4ff0f7e3 authored by rdubner's avatar rdubner

Minor changes for GCC compilation

parent 66ab8ac9
......@@ -3,3 +3,5 @@ Release
Debug
x64
cobcd-rw
*.d
*.o
// cobcd-rw.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <string.h>
#include <iostream>
#include <set>
#include <string>
......@@ -15,6 +16,17 @@ using namespace std;
extern set<string>CobolReservedWords;
char *ToUpper(char *s)
{
char *p = s;
while(*p)
{
*p = toupper(*p);
p += 1;
}
return s;
}
void GetRidOfComments(char *s)
{
char *p;
......@@ -169,7 +181,7 @@ void FindTokensIn(char *s,set<string> &results)
// This routine feels free to destroy the string it's been handed.
// You Have Been Warned
_strupr(s); // See? We've already started.
ToUpper(s); // See? We've already started.
GetRidOfComments(s);
GetRidOfTextLiterals(s);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment