ReactOS  0.4.12-dev-432-g3463b2d
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 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.

Classes

struct  option
 

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
 

Enumerations

enum  { no_argument = 0, required_argument, optional_argument }
 

Functions

void isohybrid_error (int eval, const char *fmt,...)
 
void isohybrid_warning (const char *fmt,...)
 
int getopt_long_only (int nargc, char *const *nargv, const char *options, const struct option *long_options, int *idx)
 

Variables

int optopt
 
charoptarg
 

Macro Definition Documentation

◆ err

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

Definition at line 26 of file reactos_support_code.h.

◆ errx

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

Definition at line 27 of file reactos_support_code.h.

◆ warn

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

Definition at line 28 of file reactos_support_code.h.

◆ warnx

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

Definition at line 29 of file reactos_support_code.h.

Typedef Documentation

◆ uint16_t

typedef unsigned short uint16_t

Definition at line 19 of file reactos_support_code.h.

◆ uint32_t

typedef unsigned int uint32_t

Definition at line 20 of file reactos_support_code.h.

◆ uint64_t

typedef unsigned long long uint64_t

Definition at line 21 of file reactos_support_code.h.

◆ uint8_t

typedef unsigned char uint8_t

Definition at line 18 of file reactos_support_code.h.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
no_argument 
required_argument 
optional_argument 

Definition at line 46 of file reactos_support_code.h.

47 {
48  no_argument = 0, /* option never takes an argument */
49  required_argument, /* option always requires an argument */
50  optional_argument /* option may take an argument */
51 };

Function Documentation

◆ getopt_long_only()

int getopt_long_only ( int  nargc,
char *const nargv,
const char options,
const struct option long_options,
int idx 
)

Definition at line 505 of file reactos_support_code.c.

507 {
508 
509  return (getopt_internal(nargc, nargv, options, long_options, idx,
511 }
static const struct option long_options[]
Definition: widl.c:174
#define FLAG_LONGONLY
unsigned int idx
Definition: utils.c:41
#define FLAG_PERMUTE
static int getopt_internal(int nargc, char *const *nargv, const char *options, const struct option *long_options, int *idx, int flags)

◆ 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

Variable Documentation

◆ optarg

◆ optopt

int optopt