Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenutil.h
Go to the documentation of this file.
00001 /* 00002 * ReactOS log2lines 00003 * Written by Jan Roeloffzen 00004 * 00005 * - Misc utils 00006 */ 00007 00008 #pragma once 00009 00010 #include <stdio.h> 00011 00012 #include "cmd.h" 00013 #include "options.h" 00014 00015 #define log(outFile, fmt, ...) \ 00016 { \ 00017 fprintf(outFile, fmt, ##__VA_ARGS__); \ 00018 if (logFile) \ 00019 fprintf(logFile, fmt, ##__VA_ARGS__); \ 00020 } 00021 00022 #define esclog(outFile, fmt, ...) \ 00023 { \ 00024 log(outFile, KDBG_ESC_RESP fmt, ##__VA_ARGS__); \ 00025 } 00026 00027 #define clilog(outFile, fmt, ...) \ 00028 { \ 00029 if (opt_cli) \ 00030 esclog(outFile, fmt, ##__VA_ARGS__) \ 00031 else \ 00032 log(outFile, fmt, ##__VA_ARGS__); \ 00033 } 00034 00035 #define l2l_dbg(level, ...) \ 00036 { \ 00037 if (opt_verbose >= level) \ 00038 fprintf(stderr, ##__VA_ARGS__); \ 00039 } 00040 00041 int file_exists(char *name); 00042 int mkPath(char *path, int isDir); 00043 char *basename(char *path); 00044 const char *getFmt(const char *a); 00045 long my_atoi(const char *a); 00046 int isOffset(const char *a); 00047 int copy_file(char *src, char *dst); 00048 int set_LogFile(FILE **plogFile); 00049 00050 /* EOF */ Generated on Sat May 26 2012 04:23:12 for ReactOS by
1.7.6.1
|