Skip to content

Commit

Permalink
update bundled libs
Browse files Browse the repository at this point in the history
  • Loading branch information
raedrizqie committed Nov 18, 2024
1 parent e017206 commit 6c986f9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 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
4 changes: 2 additions & 2 deletions extern/ttmath/ttmathtypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ namespace ttmath
/*!
on 32 bit platform ulint and slint will be equal 64 bits
*/
#ifdef _MSC_VER
#ifdef _WIN32
// long long on MS Windows (Visual and GCC mingw compilers) have 64 bits
// stdint.h is not available on Visual Studio prior to VS 2010 version
typedef unsigned long long int ulint;
Expand Down Expand Up @@ -205,7 +205,7 @@ namespace ttmath
/*!
on 64bit platforms one word (uint, sint) will be equal 64bits
*/
#ifdef _MSC_VER
#ifdef _WIN32
/* in VC 'long' type has 32 bits, __int64 is VC extension */
typedef unsigned __int64 uint;
typedef signed __int64 sint;
Expand Down

0 comments on commit 6c986f9

Please sign in to comment.