(20200311)
windows-make: Analyzer: Message Error:
To fix message error:
1. Remove set_level_error_msg(Clipboard-20200311).
----
1. make clean.
2. make all and execute (Clipboard-20200311-001).
3. change log_msg_003.
4. make all and execute: ( doenst make clean)(Clipboard-20200311-002).
5. make clean.6. make all and execute: (Clipboard-20200311-003).
Compiled: download:https://github.com/WaitrudWeber/source_zip/blob/master/analyzer_20200314-001.zip
---
Print.cpp Sun Mar 15 11:29:04 2020 1 ://#include "SDL.h" 2 : 3 :#include4 :#include 5 :#include 6 :#include 7 : 8 ://#include 9 :#include 10 : 11 ://#include "stdafx.h" 12 ://#include 13 : 14 :#include 15 :// LPSTR 16 : 17 : 18 :#include "array_counter.h" 19 :#include "sender.h" 20 : 21 :#include "Print.h" 22 : 23 ://#define __cdecl 1 24 :#define _CRT_SECURE_NO_DEPRECATE 25 :#define _CRT_NON_CONFORMING_SWPRINTFS 26 : 27 :#define VFMT_PRINTBUFFER 2048 28 : 29 :char dummy_buf[MAXLINE]; 30 : 31 :int set_level_error_msg = 0; 32 :int level_error_msg = 2; 33 :int print_socket_msg = 0; 34 : 35 ://int __cdecl system(const char *); 36 : 37 :// extern "C" { 38 : char* PrintError(const char* mem, const char* fmt, ...); 39 : 40 : wchar_t* vformat(const char* fmt, va_list args); 41 : wchar_t* _toChars(char * m_string); 42 : 43 : char* toChars(LPSTR str); 44 : 45 : const wchar_t *GetWC(const char *c); 46 : 47 : static void err_doit(int errnoflag, int error, const char *fmt, va_list ap) ; 48 : void err_msg(const char *fmt, ...); 49 : char* err_msg_001(const char *fmt, ...); 50 : char* err_msg_002(const char *fmt, ...); 51 : char* err_msg_003(const char *fmt, ...); 52 : void err_msg_004(const char *fmt, ...); 53 : void err_msg_005(const char *fmt, ...); 54 : void err_msg_006(const char *fmt, ...); 55 : 56 : static char* err_doit_001 (int errnoflag, int error, const char *fmt, va_list ap) ; 57 : static char* err_doit_002(int errnoflag, int error, const char *fmt, va_list ap) ; 58 :// char* copyof ( char* str ) ; 59 : 60 : void log_msg_003(const char *fmt, ...) ; 61 : char* log_msg_003_org(const char *fmt, ...) ; 62 ://} 63 : 64 :void log_msg_003(const char *fmt, ...) { 65 : va_list ap; 66 : int argc; 67 : char** argv; 68 : int send_success; 69 : char* result; 70 : 71 : if ( level_error_msg < 3 ) return; 72 : 73 : va_start(ap, fmt); 74 : result = err_doit_002(0, 0, fmt, ap); 75 : 76 : va_end(ap); 77 : 78 : if ( print_socket_msg != 1 ) return; 79 : 80 : argc = 3; 81 : argv = (char**) malloc( sizeof(char**) * argc ) ; 82 : set_sender_default_parameters ( &argc, argv ) ; 83 : 84 : argv[2] = (char *) result; 85 : send_success = sender_main ( argc, argv ) ; 86 : 87 : return; 88 :}