Skip to content

Commit

Permalink
update bundled src
Browse files Browse the repository at this point in the history
  • Loading branch information
raedrizqie committed Nov 19, 2024
1 parent 70a60ba commit 8243e31
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion extern/btyacc/defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ extern Yshort nunused;
extern Yshort final_state;

/* system variable */
#ifndef _MSC_VER
#ifndef _WIN32
extern int errno;
#endif

Expand Down
2 changes: 2 additions & 0 deletions extern/btyacc/mkpar.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,12 @@ void unused_rules()
if (!rules_used[i]) ++nunused;

if (nunused)
{
if (nunused == 1)
fprintf(stderr, "%s: 1 rule never reduced\n", myname);
else
fprintf(stderr, "%s: %d rules never reduced\n", myname, nunused);
}
}


Expand Down
4 changes: 2 additions & 2 deletions extern/cloop/src/cloop/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <string>
#include <stdexcept>

using std::auto_ptr;
using std::unique_ptr;
using std::cerr;
using std::endl;
using std::exception;
Expand Down Expand Up @@ -66,7 +66,7 @@ static void run(int argc, const char* argv[])
Parser parser(&lexer);
parser.parse();

auto_ptr<Generator> generator;
unique_ptr<Generator> generator;

if (outFormat == "c++")
{
Expand Down

0 comments on commit 8243e31

Please sign in to comment.