History

will it compile?

Ge Wang committed 9 years ago

Commit bb2ec141 parent a61578a5 files · +242 −302Browse files

Showing the changes to src/core/chuck_errmsg.cpp (1 of 5 files). Show all

Unified · Split

src/core/chuck_errmsg.cpp+5−5
@@ -55,8 +55,8 @@ static const size_t LASTERROR_SIZE = 1024; · 54 unmodified lines
5555 static char g_lasterror[LASTERROR_SIZE] = "[chuck]: (no error)";
5656 static size_t g_lasterrorIndex = strlen(g_lasterror);
5757 // log globals
58−int g_loglevel = CK_LOG_CORE;
59−int g_logstack = 0;
58+t_CKINT g_loglevel = CK_LOG_CORE;
59+t_CKINT g_logstack = 0;
6060 XMutex g_logmutex;
6161
6262 // more local globals
@@ -553,7 +553,7 @@ void EM_error3( const char * message, ... ) · 490 unmodified lines
553553
554554
555555 // log
556−void EM_log( int level, const char * message, ... )
556+void EM_log( t_CKINT level, const char * message, ... )
557557 {
558558 va_list ap;
559559
@@ -582,14 +582,14 @@ void EM_log( int level, const char * message, ... ) · 22 unmodified lines
582582
583583
584584 // set log level
585−void EM_setlog( int level )
585+void EM_setlog( t_CKINT level )
586586 {
587587 if( level > CK_LOG_CRAZY ) level = CK_LOG_CRAZY;
588588 else if( level < CK_LOG_NONE ) level = CK_LOG_NONE;
589589 g_loglevel = level;
590590
591591 // log this
592− EM_log( CK_LOG_SYSTEM, "setting log level to: %i (%s)...", level, g_str[level] );
592+ EM_log( CK_LOG_SYSTEM, "setting log level to: %li (%s)...", level, g_str[level] );
593593 }
594594
595595 // push log

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t