Skip to content

Commit

Permalink
REsolve conflict messages in fixSyntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
NormanDunbar committed Aug 4, 2016
1 parent 9b4a3be commit 31c8516
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 23 deletions.
2 changes: 2 additions & 0 deletions tools/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ RWAP Software's Online SuperBASIC manual - for conversion purposes
This directory is filled with tools and goodies that I used or wrote when
converting the old HTML into something resembling ReStructuredText. Much of what you see here is only used when the RST files need fixing up or something like that anyway!

Don't go looking for first class codeing here by the way, there isn't any!

17 changes: 17 additions & 0 deletions tools/buildTools.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Compile the tools utilities. These don't come down from GitHub, so
# they will need recompiling each time a fresh install is done.
#
# You uneed to be in the tools directory to run this build script.
#
#
# Norman Dunbar
# 4th August 2016.

for CPP in `ls *.cpp`
do
EXE=${CPP%%.cpp}
g++ -o ${EXE} ${CPP}
echo ${CPP} has been compiled to ${EXE}
done


23 changes: 0 additions & 23 deletions tools/fixSyntax.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,29 +186,6 @@ void doLocation(const size_t pos)

// And write out the blank line we just read.
cout << a_line << endl;
<<<<<<< HEAD
=======
}


void doBoth(const size_t posSyntax, const size_t posLocation)
{
// We have Syntax: and Location: on the same line.
// Split off the Location: part, keeping "Location:".
string locBuffer = a_line.substr(posLocation, string::npos);

// Keep just the Syntax: part.
a_line = a_line.substr(posSyntax + 7, posLocation - 8);

// Write out the syntax table cell and the syntax details.
cout << tableSeparator << endl;
cout << "| Syntax | " << a_line;
cout << setw(80-13-a_line.size()) << "|" << endl;

// Then do the Location details.
a_line = locBuffer;
doLocation(0);
>>>>>>> 7cd46473e310c9aaef3d85b890a6a06918ef189c
}


Expand Down

0 comments on commit 31c8516

Please sign in to comment.