w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

util.h File Reference
#include <stdio.h>
#include <ctype.h>
#include <string.h>
#include <math.h>
#include <time.h>
#include <errno.h>
#include "config.h"
#include <stdarg.h>
Include dependency graph for util.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define SEEK_CUR   1
 
#define SEEK_SET   0
 
#define SEEK_END   2
 
#define INFORMATION   0
 
#define FATAL_ERROR   3
 
#define TRUE   1
 
#define FALSE   0
 
#define RB   "r"
 
#define cant_happen()
 
#define out_of_memory()   message(FATAL_ERROR, "out of memory");
 
#define history   0
 

Functions

int abs (int)
 
char * getenv (char *)
 
int atoi (const char *)
 
long atol (const char *)
 
char * calloc (size_t, size_t)
 
void exit (int)
 
void free (char *)
 
char * malloc (size_t)
 
void qsort (char *, size_t, size_t, int(*)())
 
char * realloc (char *, size_t)
 
double atof (const char *)
 
int getopt (int argc, char **argv, char *opts)
 
FILExfopen (char *filename, int is_binary, char *area_list, char *extension)
 
void message (enum message_type, char *,...)
 

Variables

int errno
 
int opterr
 
int optind
 
int optopt
 
char * optarg
 
char * program_name
 

Macro Definition Documentation

◆ cant_happen

#define cant_happen ( )
Value:
message(FATAL_ERROR, "can't happen: %s, line %d",\
__FILE__, __LINE__);
void message(enum message_type, char *,...)
#define FATAL_ERROR
Definition: util.h:28

Definition at line 83 of file util.h.

◆ FALSE

#define FALSE   0

Definition at line 75 of file util.h.

◆ FATAL_ERROR

#define FATAL_ERROR   3

Definition at line 28 of file util.h.

◆ history

◆ INFORMATION

#define INFORMATION   0

Definition at line 27 of file util.h.

◆ out_of_memory

#define out_of_memory ( )    message(FATAL_ERROR, "out of memory");

Definition at line 85 of file util.h.

◆ RB

#define RB   "r"

Definition at line 80 of file util.h.

◆ SEEK_CUR

#define SEEK_CUR   1

Definition at line 18 of file util.h.

◆ SEEK_END

#define SEEK_END   2

Definition at line 24 of file util.h.

◆ SEEK_SET

#define SEEK_SET   0

Definition at line 21 of file util.h.

◆ TRUE

#define TRUE   1

Definition at line 74 of file util.h.

Function Documentation

◆ abs()

int __cdecl abs ( int  _X)

Definition at line 24 of file bzscreen.c.

References cordic::x.

◆ atof()

double __cdecl atof ( const char *  )

◆ atoi()

int atoi ( const char *  )

Referenced by a2i(), addrange(), Afm(), AllocateDataSet(), aptex_commands_init(), ar_scan(), atou(), CharEncoding(), check_font(), CheckForFD(), CheckRest(), CmdMultiCol(), CmdVerbosityLevel(), XRef::constructXRef(), CopyHPFile(), cs_store(), FixedDecimal::decimals(), decode_switches(), DecodeArgs(), do_afms(), do_args(), do_args_first_pass(), do_args_second_pass(), dopts(), drvFIG::drvFIG(), drvNOI::drvNOI(), drvTEXT::drvTEXT(), eexec_line(), EndOfEncoding(), ExecuteParseTree(), FcInitDebug(), FcNameConvert(), find_gs(), find_key(), func_word(), func_wordlist(), gabc_score_determination_parse(), XFAScanner::getDatasetsValue(), getfdfont(), XFAScanner::getFieldBarcodeInfo(), getfontline(), getnum(), GetNum(), PluralRuleParser::getNumberValue(), getOption(), getreplfont(), getsubst(), IntValueExtractor::getvalue(), getvflbase(), Gfx8BitFont::Gfx8BitFont(), gplotFromFile(), grabArg(), UPerfTest::init(), init_settings(), initkanji(), inputint(), kpathsea_init_fallback_resolutions(), kpathsea_set_program_name(), l_R(), lastpage(), libdef_push(), load_fontdir(), load_too_high(), lookup_reference(), main(), makeextent(), makeheader(), makekern(), optionfile(), otfcc_build(), otfcc_dump(), CMap::parse2(), parse_charstring(), parse_options(), Parse_Specifics_File_v2(), parse_uint(), parse_xref_table(), CharCodeToUnicode::parseCMap1(), PostScriptFunction::parseCode(), parseint(), GlobalParams::parseInteger(), parseJpegOptions(), GlobalParams::parseKey(), GlobalParams::parsePSImageableArea(), GlobalParams::parsePSPaperSize(), parseUnicode(), parseXMPDate(), pbm_loadbdffont(), pdfcolorstack__get_id(), PDFCore::PDFCore(), pdfserver(), placeOrderEntriesFromCmap(), pnumconv(), PreProcess(), process_appogg(), process_command(), process_xtuplet(), read_command_line(), read_config(), read_config_file(), read_hips_header(), ReadInputFileNames(), ReadNextInteger(), ReadParamFile(), ReadPPM(), ReadXimHeader(), scan_args(), scan_pbmplus(), seekpage(), select_pages(), selectglyph(), set_maketex_mag(), set_resolution(), setBitRate(), setBufferSize(), setup_bound_variable(), setupboundvariable(), spacing_note(), spc_lookup_reference(), str2code(), styread(), t1_getline(), t1_read_subrs(), t1_scan_param(), t1_subset_charstrings(), TabularCline(), TabularMultiParameters(), terminate_notes(), translate(), udbg_stoi(), DataMap::utoi(), WriteData(), WriteDataFormat(), WriteHeader(), wrt_E(), and yylex().

◆ atol()

◆ calloc()

char* calloc ( size_t  ,
size_t   
)

◆ exit()

void exit ( int  )

◆ free()

void free ( char *  )

◆ getenv()

char * getenv ( char *  )

◆ getopt()

◆ malloc()

char* malloc ( size_t  )

◆ message()

void message ( enum  message_type,
char *  ,
  ... 
)

◆ qsort()

void qsort ( char *  ,
size_t  ,
size_t  ,
int(*)()   
)

◆ realloc()

char* realloc ( char *  ,
size_t   
)

◆ xfopen()

Variable Documentation

◆ errno

int errno
extern

Referenced by __synctex_open_v2(), __zzip_parse_root_directory(), __zzip_try_open(), _cairo_drm_bo_close(), _cairo_drm_bo_flink(), _cairo_drm_bo_open_for_name(), _cairo_fopen(), _cairo_gl_get_vbo_size(), _cairo_output_stream_create_for_filename(), _cairo_ps_surface_create_for_stream_internal(), _Ex_ExpandIndirectFile(), _FcConfigParse(), _file_info_(), _parse_number(), _synctex_buffer_get_available_size(), _tiffCloseProc(), _tiffReadProc(), _tiffWriteProc(), AllocateMemoryCell(), ap_end(), aptex_utils_init_start_time(), ar_member_touch(), asctime_r(), BadApplication(), bm_new(), bm_resize(), bsGetBit(), build_vms_cmd(), cairo_image_surface_create_from_png(), cairo_surface_write_to_png(), CALL_MUNMAP(), cannot(), check_input_clobber(), CheckParameterLength(), child_execute_job(), cleanup(), cleanup_fork(), compress(), ConnectToSocket(), ConvertErrorNumber(), ConvertFile::convertFile(), CopyHPFile(), drvPPTX::create_pptx(), CreateListeningSocket(), delete_target(), dir_contents_file_exists_p(), dir_iter(), dir_iter_factory(), do_convert(), do_dump_table(), do_file(), do_fio(), iconv_wrapper::iconv::do_iconv(), do_mkdtemp(), dolink(), dopts(), dopwd(), DoSpecial(), T1Secondary::dotlessj_font(), dpx_util_get_unique_time_if_given(), dup2(), dupfd(), dviclose(), e_wdue(), e_wsfe(), e_wsle(), e_wsue(), emit_fold(), emit_lib(), EnvironExecute(), err(), err__fl(), errfile(), eval(), eval_makefile(), exec_command(), ExecuteProgram(), ExecuteScriptFile(), ExecuteSpecialProcessor(), f__nowreading(), f__nowwriting(), f_back(), f_open(), FcAtomicLock(), FcCompatOpendirWin32(), FcDirChecksum(), FcDirScanConfig(), FcNameParseRange(), fcntl(), FcReadLink(), FcScandir(), file_lock(), file_unlock(), fileerror(), find_in_given_path(), FindFileAndExtension(), FindLocationOfExecutable(), fopen_s(), ForkAndExecute(), fptr_finalize(), poppler::ustring::from_utf8(), FT_Stream_Open(), full_qualified_tempnam(), func_file(), func_shell_base(), gabc_notes_determination__init_buffer(), gabc_score_determination__init_buffer(), get_dir(), get_errno(), get_real(), get_unique_time_if_given(), Get_XMS_Driver(), GetApplicationType(), GetLastError(), getloadavg(), gm_new(), gm_resize(), gregorio_kpse_find(), gregorio_vowel_rulefile__init_buffer(), gregorio_vowel_tables_load(), StringAccum::grow(), gstrtod(), i915_bo_exec(), i965_exec(), inet_global_gethostname(), inet_meth_getpeername(), inet_meth_getsockname(), infile(), init_start_time(), input_line(), installed_truetype(), installed_type1(), installed_type1_dotlessj(), installed_type42(), intel_bo_map(), intel_bo_read(), intel_bo_set_real_size(), intel_bo_set_tiling(), intel_bo_wait(), intel_bo_write(), io_file_open(), io_lines(), io_readline(), kpathsea_readable_file(), l_read(), lfs_lock_dir(), lj_cf_ffi_errno(), lj_cf_io_tmpfile(), lj_cf_os_execute(), lj_vm_errno(), load_too_high(), LocalExecve(), luaL_fileresult(), luaL_loadfilex(), lzw_compress(), lzw_xship(), main(), make_link(), makedirs(), maketex(), memcheck(), meth_getsockname(), mkdirs(), mkdtemp(), mkstemp(), mmap_probe(), mrb_cloexec_open(), mrb_fd_cloexec(), mrb_file_flock(), mrb_float_read(), mrb_ftruncate(), mrb_io_s_popen(), mrb_io_s_select(), mrb_pipe(), mrb_proc_exec(), my_CopyFile(), name_mtime(), iconv_wrapper::iconv::open(), opencheck(), opendir(), optExecute(), os_exec(), os_pushresult(), os_spawn(), os_tmpdir(), output_metrics(), output_pl(), owrite(), parser_yylex(), PDFDoc::PDFDoc(), perror_with_name(), pfatal_error(), pfatal_with_name(), pm_perror(), png_image_begin_read_from_file(), png_image_write_to_file(), prescan_entry(), print_ID(), process_file(), pst_parse_number(), push_link_target(), pusherror(), pushresult(), radeon_bo_create(), radeon_bo_map(), radeon_bo_read(), radeon_bo_wait(), radeon_bo_write(), rd_ed(), rd_F(), rd_I(), rd_L(), rd_Z(), read_all_makefiles(), read_file(), UnicodeReader::readFile(), ReadFrame(), ReadIOConvert(), reap_children(), ReMapIOHandler(), remote_status(), remove_intermediates(), Files::removeIf(), rpl_fcntl_DUPFD(), rpl_fcntl_DUPFD_CLOEXEC(), rpl_malloc(), runexternalocp(), s_rdfe(), s_rdue(), s_rsfe(), s_rsle(), s_rsne(), s_rsue(), s_wdfe(), s_wdue(), s_wsfe(), s_wsle(), s_wsne(), s_wsue(), SafeRead(), SafeWrite(), scanDirs(), SetLastError(), socket_accept(), socket_bind(), socket_connect(), socket_create(), socket_gaistrerror(), socket_gethostbyaddr(), socket_gethostbyname(), socket_listen(), socket_read(), socket_recv(), socket_recvfrom(), socket_select(), socket_send(), socket_sendto(), socket_waitfd(), socket_write(), spawn_command(), StartDecodeServer(), StartIOServer(), StartMasterServer(), strerror(), strToDouble(), strtoll(), strtonum(), SwapToDiskError(), SwapToMemory(), synctex_terminate(), system(), temporary_file(), testf(), TIFFOpen(), time1(), tmpfile2(), poppler::ustring::to_utf8(), hb_blob_t::try_make_writable_inplace_unix(), uncompress(), unzzip_big_entry_fprint(), unzzip_cat(), unzzip_list(), update_autofont_map(), update_odir(), uprv_mkdir(), vasprintf(), vms_putenv_symbol(), WaitForDecodedFrame(), WaitForOutputFile(), write_encoding_file(), WriteToExtendedFile(), writezone(), x_getc(), y_getc(), yy_init_buffer(), zzip_closedir(), zzip_createdir(), zzip_dir_creat_ext_io(), zzip_disk_entry_fopen(), zzip_disk_entry_strdup_comment(), zzip_disk_entry_strdup_name(), zzip_disk_entry_to_file_header(), zzip_disk_findfile(), zzip_disk_findfirst(), zzip_disk_findmatch(), zzip_disk_findnext(), zzip_entry_data_offset(), zzip_entry_fclose(), zzip_entry_findfile(), zzip_entry_findfirst(), zzip_entry_findmatch(), zzip_entry_findnext(), zzip_entry_fopen(), zzip_entry_fread(), zzip_entry_fread_file_header(), zzip_entry_free(), zzip_entry_strdup_name(), zzip_errno(), zzip_file_creat(), zzip_file_mkdir(), zzip_file_write(), zzip_mem_disk_load(), zzip_mem_entry_fopen(), zzip_mem_entry_new(), zzip_open_shared_io(), zzip_opendir_ext_io(), zzip_read(), zzip_readdir(), zzip_seek32(), zzip_strerror_of(), zzip_tell32(), zzip_telldir(), and zzip_telldir32().

◆ optarg

char* optarg
extern

Definition at line 42 of file getopt.c.

◆ opterr

int opterr
extern

Definition at line 38 of file getopt.c.

◆ optind

int optind
extern

Definition at line 39 of file getopt.c.

◆ optopt

int optopt
extern

Definition at line 40 of file getopt.c.

◆ program_name

char* program_name
extern

Definition at line 17 of file aftopl.c.