ReactOS  0.4.14-dev-556-g4c5b21f
reactos_support_code.h File Reference
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <alloca.h>
#include <unistd.h>
#include "../port/port.h"
Include dependency graph for reactos_support_code.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define err(...)   isohybrid_error(__VA_ARGS__)
 
#define errx(...)   isohybrid_error(__VA_ARGS__)
 
#define warn(...)   isohybrid_warning(__VA_ARGS__)
 
#define warnx(...)   isohybrid_warning(__VA_ARGS__)
 

Typedefs

typedef unsigned char uint8_t
 
typedef unsigned short uint16_t
 
typedef unsigned int uint32_t
 
typedef unsigned long long uint64_t
 

Functions

void isohybrid_error (int eval, const char *fmt,...)
 
void isohybrid_warning (const char *fmt,...)
 

Macro Definition Documentation

◆ err

#define err (   ...)    isohybrid_error(__VA_ARGS__)

Definition at line 30 of file reactos_support_code.h.

◆ errx

#define errx (   ...)    isohybrid_error(__VA_ARGS__)

Definition at line 31 of file reactos_support_code.h.

◆ warn

#define warn (   ...)    isohybrid_warning(__VA_ARGS__)

Definition at line 32 of file reactos_support_code.h.

◆ warnx

#define warnx (   ...)    isohybrid_warning(__VA_ARGS__)

Definition at line 33 of file reactos_support_code.h.

Typedef Documentation

◆ uint16_t

Definition at line 23 of file reactos_support_code.h.

◆ uint32_t

Definition at line 24 of file reactos_support_code.h.

◆ uint64_t

Definition at line 25 of file reactos_support_code.h.

◆ uint8_t

Definition at line 22 of file reactos_support_code.h.

Function Documentation

◆ isohybrid_error()

void isohybrid_error ( int  eval,
const char fmt,
  ... 
)

Definition at line 4 of file reactos_support_code.c.

5 {
6  va_list ap;
7  va_start(ap, fmt);
8  fprintf(stderr, "isohybrid: ");
10  va_end(ap);
11  exit(eval);
12 }
#define va_end(ap)
Definition: acmsvcex.h:90
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
char * va_list
Definition: acmsvcex.h:78
#define va_start(ap, A)
Definition: acmsvcex.h:91
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32
FILE * stderr
void exit(int exitcode)
Definition: _exit.c:33
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
Definition: dsound.c:943

◆ isohybrid_warning()

void isohybrid_warning ( const char fmt,
  ... 
)

Definition at line 15 of file reactos_support_code.c.

16 {
17  va_list ap;
18  va_start(ap, fmt);
19  fprintf(stderr, "isohybrid: ");
20  vfprintf(stderr, fmt, ap);
21  va_end(ap);
22 }
#define va_end(ap)
Definition: acmsvcex.h:90
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
char * va_list
Definition: acmsvcex.h:78
#define va_start(ap, A)
Definition: acmsvcex.h:91
void int int ULONGLONG int va_list * ap
Definition: winesup.h:32
FILE * stderr
_Check_return_opt_ _CRTIMP int __cdecl vfprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format, va_list _ArgList)
Definition: dsound.c:943