18#if !defined(CD8636162364443B94377CDABD5ABD8F)
20#define CD8636162364443B94377CDABD5ABD8F
25#if defined(__cplusplus)
28MIKTEX_WEB2C_BEGIN_NAMESPACE;
30MIKTEXW2CCEEAPI(
void) ChangeRecorderFileName(
const char* fileName);
31MIKTEXW2CCEEAPI(
int) OpenInput(FILE** ppfile, kpse_file_format_type format,
const char* modeString);
36MIKTEX_WEB2C_END_NAMESPACE;
39MIKTEX_BEGIN_EXTERN_C_BLOCK
41MIKTEXW2CCEEAPI(
void) miktex_web2c_change_recorder_file_name(
const char* path);
42MIKTEXW2CCEEAPI(
void) miktex_web2c_record_file_name(
const char* path,
int reading);
43MIKTEXW2CCEEAPI(integer) miktex_zround(
double r);
44MIKTEXW2CCEEAPI(
void) miktex_setupboundvariable(integer* pVar,
const char* lpszVarName, integer dflt);
45MIKTEXW2CCEEAPI(
const char*) miktex_web2c_get_output_directory();
46MIKTEXW2CCEEAPI(
void) miktex_web2c_set_output_directory(
const char* path);
47extern MIKTEXW2CDATA(
boolean) miktex_web2c_recorder_enabled;
48extern MIKTEXW2CDATA(const_string) miktex_web2c_version_string;
49extern MIKTEXW2CDATA(
string) miktex_web2c_fullnameoffile;
55MIKTEX_END_EXTERN_C_BLOCK
57#if defined(__cplusplus)
58inline int open_input(FILE** f_ptr, kpse_file_format_type filefmt,
const char* fopen_mode)
60 return MiKTeX::Web2C::OpenInput(f_ptr, filefmt, fopen_mode);
64static inline void close_file(FILE* f)
72#if defined(__cplusplus)
73inline void recorder_change_filename(
const char* new_name)
75 MiKTeX::Web2C::ChangeRecorderFileName(new_name);
78static inline void recorder_change_filename(
const char* new_name)
80 miktex_web2c_change_recorder_file_name(new_name);
84#if defined(__cplusplus)
85inline void recorder_record_input(
const char* fname)
90static inline void recorder_record_input(
const char* fname)
92 miktex_web2c_record_file_name(fname, 1);
96#if defined(__cplusplus)
97inline void recorder_record_output(
const char* fname)
102static inline void recorder_record_output(
const char* fname)
104 miktex_web2c_record_file_name(fname, 0);
108#define output_directory miktex_web2c_get_output_directory()
110#if defined(__cplusplus)
111static inline void printversionandexit(const_string banner, const_string copyright_holder, const_string author, const_string extra_info)
118#if defined(__cplusplus)
120static inline void setupboundvariable(integer* var,
const char* var_name, integer dflt)
122 miktex_setupboundvariable(var, var_name, dflt);
126#if defined(__cplusplus)
127constexpr const char* versionstring =
" (" MIKTEX_PRODUCTNAME_STR
" " MIKTEX_DISPLAY_VERSION_STR
")";
130static inline integer zround(
double r)
132 return miktex_zround(r);
135#define recorder_enabled miktex_web2c_recorder_enabled
136#define fullnameoffile miktex_web2c_fullnameoffile
Instances of this class can be used to store path names.
Definition PathName.h:64
FileAccess
File access options.
Definition File.h:72
@ Write
Write access.
Definition File.h:77
@ Read
Read access.
Definition File.h:75