Skip to content

Commit 8243e31

Browse files
committed
update bundled src
1 parent 70a60ba commit 8243e31

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

extern/btyacc/defs.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ extern Yshort nunused;
297297
extern Yshort final_state;
298298

299299
/* system variable */
300-
#ifndef _MSC_VER
300+
#ifndef _WIN32
301301
extern int errno;
302302
#endif
303303

extern/btyacc/mkpar.c

+2
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,12 @@ void unused_rules()
177177
if (!rules_used[i]) ++nunused;
178178

179179
if (nunused)
180+
{
180181
if (nunused == 1)
181182
fprintf(stderr, "%s: 1 rule never reduced\n", myname);
182183
else
183184
fprintf(stderr, "%s: %d rules never reduced\n", myname, nunused);
185+
}
184186
}
185187

186188

extern/cloop/src/cloop/Main.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
#include <string>
2929
#include <stdexcept>
3030

31-
using std::auto_ptr;
31+
using std::unique_ptr;
3232
using std::cerr;
3333
using std::endl;
3434
using std::exception;
@@ -66,7 +66,7 @@ static void run(int argc, const char* argv[])
6666
Parser parser(&lexer);
6767
parser.parse();
6868

69-
auto_ptr<Generator> generator;
69+
unique_ptr<Generator> generator;
7070

7171
if (outFormat == "c++")
7272
{

0 commit comments

Comments
 (0)