ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

util.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 doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.