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)  

dvi.c File Reference
#include "defs.h"
#include "global.h"
#include "commands.h"
Include dependency graph for dvi.c:

Go to the source code of this file.

Macros

#define MARKWIDTH   50000
 

Functions

 dev_arg (char option, char *c)
 
 dev_init ()
 
 dev_setup ()
 
 dev_endsetup ()
 
 dev_finish ()
 
 putfontdef (struct font_entry *fe)
 
 dev_initpage ()
 
 dev_bop (count)
 
 dev_eop ()
 
 dvi_push ()
 
 dev_push ()
 
 dvi_pop ()
 
 dev_pop ()
 
 dev_initfont (void)
 
 dev_setfont (DEV_FONT dvif)
 
 dev_move0 (int com)
 
 dev_move (byte *x, int n, int com)
 
void dev_makemove (int x, int com)
 
 dev_makemoveover (int x)
 
 dev_setposn (int x, int y)
 
 dvi_setrule (int a, int b, int com)
 
 dev_setrule (int a, int b, int com)
 
 dvi_dir (int d)
 
 dev_dir (int d)
 
 begin_string ()
 
 end_string (void)
 
 bs_elim ()
 
 es_elim ()
 
 bs_spec ()
 
 es_spec ()
 
 bs_ignore ()
 
 es_ignore ()
 
 bs_mline ()
 
 es_mline ()
 
 bs_mchar ()
 
 es_mchar ()
 
 init_begend_str (void)
 
void dev_predospecial (byte *str, int n)
 
void dev_dospecial (byte *str, int n)
 

Variables

int dvi_h = 0
 
int dvi_v = 0
 
intdvi_move
 
static DEV_FONT dvi_curf
 
int spmax = 0
 
long dvipos
 
long lpagep
 
static int vert_moveovercom
 
static int dir_used
 
int command
 
int num
 
int den
 
long postambleptr
 
int dirmode
 
char * dir_spec_vert
 
char * dir_spec_end
 
int dir_spec_vert_len
 
int dir_spec_end_len
 
static int devicefont = 0
 
int instring = 0
 
int(* begstr )()
 
int(* endstr )()
 
int dvi_move_beg
 

Macro Definition Documentation

◆ MARKWIDTH

#define MARKWIDTH   50000

Definition at line 354 of file dvi.c.

Function Documentation

◆ begin_string()

◆ bs_elim()

bs_elim ( )

Definition at line 318 of file dvi.c.

References dir, and dvi_dir().

Referenced by init_begend_str().

◆ bs_ignore()

bs_ignore ( )

Definition at line 344 of file dvi.c.

References dvi_move, and dvi_move_beg.

Referenced by init_begend_str().

◆ bs_mchar()

bs_mchar ( )

Definition at line 367 of file dvi.c.

Referenced by init_begend_str().

◆ bs_mline()

bs_mline ( )

Definition at line 356 of file dvi.c.

References dvi_move, and dvi_move_beg.

Referenced by init_begend_str().

◆ bs_spec()

bs_spec ( )

Definition at line 328 of file dvi.c.

References dir_spec_vert, dir_spec_vert_len, dvi_move, dvi_move_beg, dvi_push(), dvipos, outfp, and putbytes().

Referenced by init_begend_str().

◆ dev_arg()

dev_arg ( char  option,
char *  c 
)

Definition at line 28 of file dvi.c.

Referenced by init_settings().

◆ dev_bop()

dev_bop ( count  )

Definition at line 137 of file dvi.c.

References BOP, count, dvipos, end_string(), i, lpagep, outfp, putbyte(), and putnint().

Referenced by do_bop(), and dviconv().

◆ dev_dir()

dev_dir ( int  d)

Definition at line 285 of file dvi.c.

References d, DIR_KEEP, dirmode, dvi_dir(), dvi_h, dvi_move, dvi_v, HOR, and VER.

Referenced by setdir().

◆ dev_dospecial()

void dev_dospecial ( byte str,
int  n 
)

Definition at line 405 of file dvi.c.

References dvipos, end_string(), n, outfp, putbyte(), putbytes(), putnint(), str, and XXX1.

Referenced by dviconv().

◆ dev_endsetup()

dev_endsetup ( )

Definition at line 50 of file dvi.c.

References copybytes(), den, DVIFORMAT, dvifp, dvipos, fseek, getuint(), k, lpagep, mag, num, outfp, PRE, putbyte(), putnint(), and void.

Referenced by main().

◆ dev_eop()

dev_eop ( void  )

Definition at line 151 of file dvi.c.

References dvipos, end_string(), EOP, outfp, and putbyte().

Referenced by do_eop(), and dviconv().

◆ dev_finish()

◆ dev_init()

dev_init ( )

Definition at line 34 of file dvi.c.

Referenced by dvi_init(), and main().

◆ dev_initfont()

dev_initfont ( void  )

Definition at line 186 of file dvi.c.

References DEV_NULLFONT, and dvi_curf.

Referenced by dev_dospecial(), dev_initpage(), main(), and ps_rotate().

◆ dev_initpage()

dev_initpage ( )

Definition at line 131 of file dvi.c.

References dev_initfont(), dvi_h, and dvi_v.

Referenced by dviconv(), and main().

◆ dev_makemove()

◆ dev_makemoveover()

dev_makemoveover ( int  x)

Definition at line 248 of file dvi.c.

References dev_makemove(), dir, HOR, RIGHT1, vert_moveovercom, and cordic::x.

Referenced by dvi_vfchar(), and vf_sc().

◆ dev_move()

dev_move ( byte x,
int  n,
int  com 
)

Definition at line 226 of file dvi.c.

References dvipos, end_string(), n, outfp, putbyte(), putbytes(), and cordic::x.

Referenced by dev_makemove(), dfd_movedown(), and dfd_moveover().

◆ dev_move0()

dev_move0 ( int  com)

Definition at line 218 of file dvi.c.

References dvipos, end_string(), outfp, and putbyte().

Referenced by vfd_movedown(), and vfd_moveover().

◆ dev_pop()

dev_pop ( )

Definition at line 180 of file dvi.c.

References dvi_pop(), and end_string().

Referenced by d_setrule_v(), dviconv(), and vf_sc().

◆ dev_predospecial()

void dev_predospecial ( byte str,
int  n 
)

Definition at line 398 of file dvi.c.

Referenced by scanfont().

◆ dev_push()

dev_push ( )

Definition at line 168 of file dvi.c.

References dvi_push(), and end_string().

Referenced by d_setrule_v(), dviconv(), and vf_sc().

◆ dev_setfont()

◆ dev_setposn()

dev_setposn ( int  x,
int  y 
)

Definition at line 255 of file dvi.c.

Referenced by dev_dospecial(), dfd_setrule(), dfd_setrule_v(), realf_setchar(), and realf_setstring().

◆ dev_setrule()

dev_setrule ( int  a,
int  b,
int  com 
)

Definition at line 269 of file dvi.c.

References a, b, dvi_setrule(), and end_string().

Referenced by d_setrule_v(), dfd_setrule(), dfd_setrule_v(), and vfd_setrule().

◆ dev_setup()

dev_setup ( )

Definition at line 38 of file dvi.c.

References dfd_dirkeep(), DIR_KEEP, dir_used, dirmode, DOWN1, FALSE, init_begend_str(), RIGHT1, vert_moveovercom, and vfd_dirkeep().

Referenced by main().

◆ dvi_dir()

dvi_dir ( int  d)

Definition at line 276 of file dvi.c.

References d, dir_used, dvipos, outfp, putbyte(), putnint(), and TRUE.

Referenced by bs_elim(), dev_dir(), and es_elim().

◆ dvi_pop()

dvi_pop ( void  )

◆ dvi_push()

dvi_push ( void  )

◆ dvi_setrule()

dvi_setrule ( int  a,
int  b,
int  com 
)

Definition at line 260 of file dvi.c.

References a, b, dvipos, outfp, putbyte(), and putnint().

Referenced by dev_setrule(), and es_mline().

◆ end_string()

◆ es_elim()

es_elim ( )

Definition at line 323 of file dvi.c.

References dvi_dir(), and HOR.

Referenced by init_begend_str().

◆ es_ignore()

es_ignore ( )

Definition at line 349 of file dvi.c.

References dev_makemove(), DOWN1, dvi_move, and dvi_move_beg.

Referenced by init_begend_str().

◆ es_mchar()

es_mchar ( )

Definition at line 371 of file dvi.c.

Referenced by init_begend_str().

◆ es_mline()

es_mline ( )

Definition at line 361 of file dvi.c.

References dev_makemove(), DOWN1, dvi_move, dvi_move_beg, dvi_setrule(), MARKWIDTH, and PUT_RULE.

Referenced by init_begend_str().

◆ es_spec()

es_spec ( )

Definition at line 336 of file dvi.c.

References dev_makemove(), dir_spec_end, dir_spec_end_len, DOWN1, dvi_move, dvi_move_beg, dvi_pop(), dvipos, outfp, and putbytes().

Referenced by init_begend_str().

◆ init_begend_str()

◆ putfontdef()

Variable Documentation

◆ begstr

int(* begstr) () ( )

Definition at line 297 of file dvi.c.

Referenced by begin_string(), and init_begend_str().

◆ command

int command
extern

Definition at line 23 of file dviconv.c.

Referenced by CommandLength(), DVIGetCommand(), InitPage(), and SkipPage().

◆ den

◆ devicefont

int devicefont = 0
static

Definition at line 129 of file dvi.c.

Referenced by dev_setfont().

◆ dir_spec_end

char* dir_spec_end
extern

Definition at line 786 of file fontdesc.c.

Referenced by es_spec(), and getptex().

◆ dir_spec_end_len

int dir_spec_end_len
extern

Definition at line 788 of file fontdesc.c.

Referenced by es_spec(), and getptex().

◆ dir_spec_vert

char* dir_spec_vert
extern

Definition at line 785 of file fontdesc.c.

Referenced by bs_spec(), and getptex().

◆ dir_spec_vert_len

int dir_spec_vert_len
extern

Definition at line 787 of file fontdesc.c.

Referenced by bs_spec(), and getptex().

◆ dir_used

int dir_used
static

Definition at line 16 of file dvi.c.

Referenced by close_files_and_terminate(), dev_finish(), dev_setup(), dvi_dir(), initialize(), and synch_dir().

◆ dirmode

int dirmode
extern

◆ dvi_curf

DEV_FONT dvi_curf
static

Definition at line 9 of file dvi.c.

Referenced by dev_initfont(), and dev_setfont().

◆ dvi_h

int dvi_h = 0

Definition at line 5 of file dvi.c.

Referenced by dev_dir(), dev_initpage(), hlist_out(), ship_out(), synch_dir(), synch_h(), and vlist_out().

◆ dvi_move

◆ dvi_move_beg

int dvi_move_beg

Definition at line 299 of file dvi.c.

Referenced by bs_ignore(), bs_mline(), bs_spec(), es_ignore(), es_mline(), and es_spec().

◆ dvi_v

int dvi_v = 0

Definition at line 6 of file dvi.c.

Referenced by dev_dir(), dev_initpage(), hlist_out(), ship_out(), synch_dir(), synch_v(), and vlist_out().

◆ dvipos

◆ endstr

int(* endstr) () ( )

Definition at line 298 of file dvi.c.

Referenced by end_string(), and init_begend_str().

◆ instring

◆ lpagep

long lpagep

Definition at line 13 of file dvi.c.

Referenced by dev_bop(), dev_endsetup(), and dev_finish().

◆ num

unsigned long num
extern

Definition at line 621 of file disdvi.c.

Referenced by __gmp_expr< mpq_t, mpq_t >::__gmp_expr(), __gmpq_get_num(), __gmpq_set_num(), __gmpq_set_si(), __gmpq_set_str(), __gmpq_set_ui(), __gmpz_bin_ui(), __gmpz_divexact(), __gmpz_tdiv_q(), __gmpz_tdiv_qr(), __gmpz_tdiv_r(), _cairo_int128_divrem(), _cairo_int64_32_div(), _cairo_int64_divrem(), _cairo_int_96by64_32x64_divrem(), _cairo_uint128_divrem(), _cairo_uint64_divrem(), _cairo_uint_96by64_32x64_divrem(), _cmsCalloc(), _cmsCallocDefaultFn(), _cmsFloat2Half(), _cmsHalf2Float(), _print(), a2i(), XRef::add(), AddChar(), AddStr(), Afm(), applemac_enc(), ArcSegment(), argnum_error(), AssignLineToPoint(), AxoPhotonArc(), AxoZigZagArc(), DataBuilderCollationIterator::backwardNumCodePoints(), UIterCollationIterator::backwardNumCodePoints(), FCDUIterCollationIterator::backwardNumCodePoints(), UTF16CollationIterator::backwardNumCodePoints(), FCDUTF16CollationIterator::backwardNumCodePoints(), UTF8CollationIterator::backwardNumCodePoints(), FCDUTF8CollationIterator::backwardNumCodePoints(), bbspecial(), bcwrite_knum(), bcwrite_ktabk(), BrotliStoreHuffmanTree(), cairo_pdf_interchange_write_page_labels(), cancel(), cf2_stack_pop(), cff_parseOutline(), cff_parser_run(), characters_from_lua(), CharEncoding(), charstring_int(), Efont::Cff::Dict::check(), checkIfEnumList(), checkIfNumStr(), chkcontinue(), CmdBreveChar(), CmdCounter(), CmdFontFamily(), CmdHacekChar(), CmdHatChar(), CmdLApostrophChar(), CmdLength(), CmdMultiCol(), CmdTabular(), CmdTildeChar(), CmdUmlauteChar(), CmdVecChar(), CmdVerb(), CmdVerbatim(), coerce_step_counter(), collectCurrencyNames(), compile_address(), ComputeDashCirc(), ComputeDashGluonArc(), concat(), XRef::constructObjectEntry(), XRef::constructObjectStreamEntries(), XRef::constructXRef(), XRef::constructXRefEntry(), converte(), CopyHPFile(), OptionT< ValueType, ExtractorType >::copyvalue_simple(), CorrectGrid(), cp1250_enc(), cp852_enc(), CurrentCyrillicFontFamily(), Curve(), FoFiType1C::cvtGlyph(), cvtRational(), DashArrowArc(), DashArrowDoubleArc(), DashArrowDoubleLine(), DashArrowLine(), DashCArc(), DashDoubleArc(), DashDoubleLine(), DashDoublePhotonArc(), DashDoubleZigZagArc(), DashGluonCirc(), DashLine(), DashPhotonArc(), DashZigZagArc(), DeCodeStr(), decompress_smooth_data(), DefTypeFont(), dev_endsetup(), dev_finish(), DoConv(), doMergeFormDict(), doMergeNameTree(), DoOneObject(), dopage(), dopr(), DoublePhotonArc(), PSOutputDev::drawForm(), dumpint(), dumpsizedint(), eat(), eats(), EF2Dot14(), poppler::document::embedded_files(), encodeRunShort(), ExecuteTest(), expandTheorem(), graphite2::Segment::extendLength(), FcCharSetFindLeafForward(), FcCharSetIsSubset(), FcCharSetMerge(), FcCompare(), FcFontRenderPrepare(), FcPatternPrint2(), XRef::fetch(), fetch_number(), Machine::Code::decoder::fetch_opcode(), find_key(), find_symbol(), findbb(), FindLongestMatch(), Catalog::findPage(), PDFDoc::findPage(), FindSeac(), FixedDecimal::FixedDecimal(), flo_ceil(), flo_finite_p(), flo_floor(), flo_infinite_p(), flo_nan_p(), flo_round(), flo_to_f(), flo_truncate(), flush(), font_from_lua(), font_malloc_charinfo(), FontPart(), for(), FormWidget::FormWidget(), DataBuilderCollationIterator::forwardNumCodePoints(), UIterCollationIterator::forwardNumCodePoints(), FCDUIterCollationIterator::forwardNumCodePoints(), UTF16CollationIterator::forwardNumCodePoints(), FCDUTF16CollationIterator::forwardNumCodePoints(), UTF8CollationIterator::forwardNumCodePoints(), FCDUTF8CollationIterator::forwardNumCodePoints(), fputl(), fputnum(), fputnum2(), FT_Get_Advances(), ft_hash_num_insert(), ft_hash_num_lookup(), func_call(), GenBlockPattern(), GenMBAddrIncr(), GenMotionCode(), get_buffered_signed_num(), get_buffered_unsigned_num(), Efont::Type1Font::get_dict_size(), get_pkt_signed_num(), get_pkt_unsigned_num(), get_unsigned_num(), getbytes(), FoFiType1C::getDeltaIntArray(), XFAScanner::getFieldBarcodeInfo(), HTMLGen::getFontDefn(), HTMLGen::getFontFile(), getmark(), number::impl::MixedUnitLongNameHandler::getMixedUnitModifier(), getnum(), Parser::getObj(), getpages(), getsecs(), GluonArcHelp(), GluonCirc(), GluonCircHelp(), gstring_subst(), hash_num_lookup(), idxread(), in_integer(), incMacroBlockBits(), incNumBlocks(), infile(), initSnum(), int_chr_binary(), int_rev(), int_to_f(), int_to_i(), interpretCommands(), itostr(), kpathsea_xputenv_int(), l_set_node_data(), lastpage(), latin2_enc(), latin3_enc(), listNumStr(), Load_Format_25(), LoadVector(), AcroForm::lookupAnnotPage(), lua_nodelib_direct_getfield(), lua_nodelib_direct_setfield(), lua_nodelib_fast_getfield(), lua_nodelib_fast_setfield(), lua_tointeger(), luaV_tonumber(), main(), make_odither_array(), Catalog::makeLetterLabel(), Catalog::makeRomanNumeral(), maketex(), merge_state_array(), meterWord(), mpfr_bernoulli_internal(), mpfr_set_q(), mpq_helper_canonicalize(), mpq_set_str(), mrb_check_num_exact(), mrb_fix2binstr(), mrb_int_chr(), myatodim(), new_nvar(), next_enc(), numcount(), otc_read_tabdir(), otfMakeDevice(), otfPrintDevice(), drvLWO::out_float(), OutHEX(), packet_local_fonts(), pagesort(), parse_record(), parseAsciiDigits(), parsedimen(), parsedouble(), parseint(), parsespecs(), ParseSpecs(), pdf_add_ref(), pdf_concat_stream(), pdf_dict_add_ref(), PhotonArc(), PhotonArcHelp(), pixConvertGrayToColormap8(), pmxMeter(), png_ascii_from_fixed(), png_build_16bit_table(), png_build_16to8_table(), png_free_data(), png_handle_hIST(), png_handle_PLTE(), png_run(), Polygon(), pop_fail_stack(), postamble(), preamble(), Prepare(), Rule::printAppliers(), printConverters(), printGPOS22(), printGPOS31(), printGPOS41(), printGPOS51(), printGPOS61(), Image::printLoaders(), printOutBundle(), printpage(), process_dvi_file(), PS_Conv_Strtol(), PS_Conv_ToInt(), psh_blues_scale_zones(), psh_calc_max_height(), push_fail_stack(), pushF26Dot6(), put_breve_char(), put_dot_char(), put_dots(), put_tilde_char(), putbits(), putc2(), radialEdge(), read_APP1_Exif(), graphite2::GlyphCache::Loader::read_box(), read_device_table(), graphite2::GlyphCache::Loader::read_glyph(), read_next_number(), read_objstm(), read_pair_set_list(), read_rgb_bits(), ReadArray(), ReadInput(), ReadNumber(), Catalog::readPageLabelTree2(), ReadPostAmble(), readpreamble(), Hints::readTables(), ReadTail(), rterror(), RtfFontNumber(), save_line(), scale(), scan_dimen(), scan_dimen_part(), ScanChars(), searchpageloc(), SeparateLine(), Efont::Type1Font::set_dict_size(), CFF::parsed_cs_str_t::set_prefix(), SVGTree::setFont(), DVIToSVGActions::setFont(), FormFieldButton::setNumSiblings(), setOnly(), setSnumFor(), PSOutputDev::setupForm(), PSOutputDev::setupImage(), PSOutputDev::setupImages(), SFDGetShortTable(), singledimen(), SpecLookup(), split_label(), Store(), str_unpack(), str_utflength(), str_utfvalue(), str_write_java(), double_conversion::StringToDoubleConverter::StringToIeee(), strpad(), strrpt(), strstartnum(), OT::PairSet::subset(), TabularMultiParameters(), tokenize(), tpic_parse_special(), trans2dvi(), TransliteratorSpec::TransliteratorSpec(), trytoparseenc(), TT_Get_Face_Metrics(), TTFGetFontName(), TTFGetPSFontName(), u_printf_double_handler(), u_printf_hex_handler(), u_printf_integer_handler(), u_printf_octal_handler(), u_printf_percent_handler(), u_printf_scidbl_handler(), u_printf_scientific_handler(), u_printf_spellout_handler(), u_printf_uinteger_handler(), u_scanf_double_handler(), u_scanf_hex_handler(), u_scanf_integer_handler(), u_scanf_octal_handler(), u_scanf_percent_handler(), u_scanf_scidbl_handler(), u_scanf_scientific_handler(), u_scanf_spellout_handler(), update_progress_bar(), uprv_calloc_68(), uprv_makeDenseRanges(), util_calloc(), Efont::CharstringInterp::vector_command(), ErrorHandler::vxformat(), write_epdf_object(), write_image_object(), write_n(), write_rgb_bits(), wsort(), yyparse(), ZigZagArcHelp(), ZoneIterator::ZoneIterator(), and XRef::~XRef().

◆ postambleptr

long postambleptr
extern

Definition at line 59 of file dvi2.c.

Referenced by AllDone(), dev_finish(), FindPostAmblePtr(), and ReadPostAmble().

◆ spmax

int spmax = 0

Definition at line 10 of file dvi.c.

Referenced by dev_finish(), and dvi_push().

◆ vert_moveovercom

int vert_moveovercom
static

Definition at line 15 of file dvi.c.

Referenced by dev_makemoveover(), and dev_setup().