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)  

disdvi.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <string.h>
#include "commands.h"
Include dependency graph for disdvi.c:

Go to the source code of this file.

Classes

struct  _font
 

Macros

#define LASTCHAR   127 /* max dvi character, above are commands */
 
#define get1()   num(1)
 
#define get2()   num(2)
 
#define get3()   num(3)
 
#define get4()   num(4)
 
#define sget1()   snum(1)
 
#define sget2()   snum(2)
 
#define sget3()   snum(3)
 
#define sget4()   snum(4)
 

Typedefs

typedef struct _font font
 

Functions

void bop (void)
 
void preamble (void)
 
void postamble (void)
 
void postpostamble (void)
 
void fontdef (int x)
 
const char * fontname (unsigned long fntnum)
 
void special (int x)
 
void printnonprint (int ch)
 
unsigned long num (int size)
 
long snum (int size)
 
void usage (void)
 
void picfile (int opcode)
 
void natfontdef (int opcode)
 
void glyphs (int opcode)
 
void dvidir (int opcode)
 
void invalid (int opcode)
 
int main (int argc, char **argv)
 

Variables

const char * disdvi = "@(#) disdvi.c 2.26 20101027 M.J.E. Mol (c) 1989-2010, marcel@mesa.nl"
 
fontfonts = NULL
 
FILEdvifp
 
char * dvi_name
 
long pc = 0
 
char * progname
 
int is_ptex = 0
 
int is_xetex = 0
 
const char * dvi_ext = ".dvi"
 

Macro Definition Documentation

◆ get1

#define get1 ( )    num(1)

Definition at line 84 of file disdvi.c.

◆ get2

#define get2 ( )    num(2)

Definition at line 85 of file disdvi.c.

◆ get3

#define get3 ( )    num(3)

Definition at line 86 of file disdvi.c.

◆ get4

#define get4 ( )    num(4)

Definition at line 87 of file disdvi.c.

◆ LASTCHAR

#define LASTCHAR   127 /* max dvi character, above are commands */

Definition at line 82 of file disdvi.c.

◆ sget1

#define sget1 ( )    snum(1)

Definition at line 88 of file disdvi.c.

◆ sget2

#define sget2 ( )    snum(2)

Definition at line 89 of file disdvi.c.

◆ sget3

#define sget3 ( )    snum(3)

Definition at line 90 of file disdvi.c.

◆ sget4

#define sget4 ( )    snum(4)

Definition at line 91 of file disdvi.c.

Typedef Documentation

◆ font

typedef struct _font font

Function Documentation

◆ bop()

void bop ( void  )

Definition at line 356 of file disdvi.c.

References i, pc, printf(), and sget4.

Referenced by epsftest(), findbb(), main(), and ship_out().

◆ dvidir()

void dvidir ( int  opcode)

Definition at line 806 of file disdvi.c.

References get1, invalid(), is_ptex, and printf().

Referenced by main().

◆ fontdef()

void fontdef ( int  x)

Definition at line 484 of file disdvi.c.

References exit(), fnt, fonts, free, get1, get4, i, int(), malloc, op_table::name, name, NULL, num(), pc, perror(), printf(), and cordic::x.

Referenced by main().

◆ fontname()

const char* fontname ( unsigned long  fntnum)

Definition at line 543 of file disdvi.c.

References fnt, fonts, op_table::name, and NULL.

Referenced by main().

◆ glyphs()

void glyphs ( int  opcode)

Definition at line 775 of file disdvi.c.

References exit(), get2, i, invalid(), is_xetex, j, malloc, n, NULL, perror(), printf(), SET_GL_ST, sget4, width, and cordic::x.

Referenced by _cairo_analysis_surface_show_glyphs(), _cairo_analysis_surface_show_text_glyphs(), _cairo_composite_rectangles_init_for_glyphs(), _cairo_compositor_glyphs(), _cairo_default_context_glyph_extents(), _cairo_default_context_glyph_path(), _cairo_default_context_glyphs(), _cairo_fallback_compositor_glyphs(), _cairo_gl_msaa_compositor_glyphs(), _cairo_gl_surface_glyphs(), _cairo_gstate_glyph_extents(), _cairo_gstate_glyph_path(), _cairo_gstate_show_text_glyphs(), _cairo_gstate_transform_glyphs_to_backend(), _cairo_image_surface_glyphs(), _cairo_mask_compositor_glyphs(), _cairo_paginated_surface_show_text_glyphs(), _cairo_pdf_operators_emit_cluster(), _cairo_pdf_operators_show_text_glyphs(), _cairo_pdf_surface_emit_type3_font_subset(), _cairo_pdf_surface_show_text_glyphs(), _cairo_ps_surface_show_text_glyphs(), _cairo_qt_surface_show_glyphs(), _cairo_quartz_image_surface_glyphs(), _cairo_quartz_surface_glyphs(), _cairo_recording_surface_show_text_glyphs(), _cairo_scaled_font_glyph_approximate_extents(), _cairo_scaled_font_glyph_device_extents(), _cairo_scaled_font_glyph_path(), _cairo_script_surface_show_text_glyphs(), _cairo_shape_mask_compositor_glyphs(), _cairo_surface_fallback_glyphs(), _cairo_surface_observer_glyphs(), _cairo_surface_offset_glyphs(), _cairo_surface_show_text_glyphs(), _cairo_surface_subsurface_glyphs(), _cairo_surface_wrapper_show_text_glyphs(), _cairo_svg_surface_show_glyphs(), _cairo_tee_surface_show_text_glyphs(), _cairo_traps_compositor_glyphs(), _cairo_type3_glyph_surface_show_glyphs(), _cairo_user_text_to_glyphs(), _cairo_win32_display_surface_glyphs(), _cairo_win32_gdi_compositor_glyphs(), _cairo_win32_printing_surface_emit_win32_glyphs(), _cairo_win32_printing_surface_show_glyphs(), _cairo_win32_scaled_font_text_to_glyphs(), _cairo_win32_scaled_font_type1_text_to_glyphs(), _cairo_win32_surface_emit_glyphs(), _cairo_xcb_connection_render_add_glyphs(), _cairo_xcb_connection_render_free_glyphs(), _cairo_xcb_fallback_compositor_glyphs(), _cairo_xcb_render_compositor_glyphs(), _cairo_xcb_surface_glyphs(), _cairo_xcb_surface_render_glyphs_via_mask(), _cairo_xlib_shm_compositor_glyphs(), _cairo_xlib_surface_glyphs(), _cairo_xml_emit_scaled_font(), _cairo_xml_surface_glyphs(), _can_composite_glyphs(), _draw_glyphs_on_surface(), _emit_glyphs_chunk(), _emit_scaled_glyphs(), _Gen816Enc(), OT::glyf::_populate_subset_glyphs(), _remove_invalid_gids(), _vg_surface_show_glyphs(), aat_dumpmorx_ligatures(), aat_dumpmorx_substitutions(), add_char(), add_glyphs(), add_record_glyphs(), allmarkglyphs(), AnchorClassDecompose(), ParagraphLayout::Line::append(), ParagraphLayout::appendRun(), Metrics::apply(), Metrics::apply_alternates(), ApplyTickedFeatures(), arabic_fallback_synthesize_lookup_single(), OT::array_is_subset_of(), ASMFromCoverageFPST(), bdf_free_font(), BuildClassNames(), cairo_glyph_extents(), cairo_glyph_free(), cairo_glyph_path(), cairo_scaled_font_glyph_extents(), cairo_scaled_font_text_extents(), cairo_scaled_font_text_to_glyphs(), cairo_scaled_font_text_to_glyphs_internal_cached(), cairo_scaled_font_text_to_glyphs_internal_uncached(), cairo_show_glyphs(), cairo_show_text(), cairo_show_text_glyphs(), cairo_text_extents(), cairo_text_path(), cff_pack_charsets(), OT::chain_context_intersects(), CIDFont_type2_dofont(), OT::ClassDef_remap_and_serialize(), ClassesFromNames(), OT::GPOS::closure_lookups(), OT::GSUB::closure_lookups(), OT::GSUBGPOS::closure_lookups(), DVIReader::cmdXGlyphArray(), DVIReader::cmdXGlyphString(), DVIReader::cmdXTextAndGlyphs(), OT::collect_array(), OT::collect_class(), OT::ClassDefFormat1::collect_class(), OT::ClassDefFormat2::collect_class(), OT::ClassDef::collect_class(), OT::collect_coverage(), OT::RangeRecord::collect_coverage(), OT::CoverageFormat1::collect_coverage(), OT::CoverageFormat2::collect_coverage(), OT::Coverage::collect_coverage(), OT::ClassDefFormat1::collect_coverage(), OT::ClassDefFormat2::collect_coverage(), OT::ClassDef::collect_coverage(), OT::PosLookup::collect_coverage(), OT::SubstLookup::collect_coverage(), OT::collect_glyph(), composeglyph(), composite_color_glyphs(), composite_glyphs(), consonant_position_from_face(), OT::context_intersects(), CoverageMinusClasses(), do_a_standard_enc(), do_builtin_encoding(), do_custom_encoding(), DoAATLayout(), downpsfont(), Paragraph::draw(), GDISurface::drawGlyphs(), GnomeSurface::drawGlyphs(), dump_glyphs(), dumpcoveragetable(), dumpg___ContextChainClass(), dumpg___ContextChainCoverage(), dumpg___ContextChainGlyphs(), dumpglyphs(), dumpgposkernclass(), dumpGPOSpairpos(), dumpGPOSsimplepos(), dumpGSUBligdata(), dumpGSUBmultiplesubs(), dumpGSUBsimplesubs(), DVIToSVG::dviXGlyphArray(), DVIToSVG::dviXGlyphString(), DVIToSVG::dviXTextAndGlyphs(), encoding_flush_all(), fea_AddAllLigPosibilities(), fea_AddGlyphs(), fea_glyphs_to_names(), fea_LookupTypeFromItem(), fea_markedglyphs_to_fpst(), fea_ParseGlyphClass(), fea_ParseIgnore(), fea_ParseSubstitute(), fea_process_pos_pair(), fea_process_pos_single(), fea_process_sub_ligature(), fea_process_sub_single(), fetch_Glyphs(), g___ChainingSubTable1(), g___ChainingSubTable2(), g___ChainingSubTable3(), g___ContextSubTable1(), g___ContextSubTable2(), g___ContextSubTable3(), gallium_surface_glyphs(), generateMapList(), get_encoding(), OT::GDEF::get_glyphs_in_class(), getCoverageTable(), getGlyphs(), glyph_length(), graphite2::GlyphCache::GlyphCache(), GlyphsFromClasses(), GlyphsFromInitialClasses(), GlyphsToNames(), gposCursiveSubTable(), gposKernSubTable(), gposSimplePos(), gr_slot_advance_X(), gsubLigatureSubTable(), gsubMultipleSubTable(), gsubReverseChainSubTable(), gsubSimpleSubTable(), gxv_just_actSubrecord_type0_validate(), hb_ot_layout_get_glyphs_in_class(), hb_ot_layout_lookup_substitute_closure(), hb_ot_layout_lookup_would_substitute(), hb_ot_layout_lookups_substitute_closure(), hb_ot_shape_glyphs_closure(), i915_surface_glyphs(), i965_add_glyph_rectangle(), i965_glyphs_accumulate_rectangle(), i965_glyphs_emit_rectangle(), i965_surface_glyphs(), initial_reordering_consonant_syllable(), intel_surface_glyphs(), OT::RangeRecord::intersects(), OT::CoverageFormat1::intersects(), OT::CoverageFormat2::intersects(), OT::Coverage::intersects(), OT::ClassDefFormat1::intersects(), OT::ClassDefFormat2::intersects(), OT::ClassDef::intersects(), OT::SinglePosFormat1::intersects(), OT::SinglePosFormat2::intersects(), OT::PairPosFormat1::intersects(), OT::PairPosFormat2::intersects(), OT::CursivePosFormat1::intersects(), OT::MarkBasePosFormat1::intersects(), OT::MarkLigPosFormat1::intersects(), OT::MarkMarkPosFormat1::intersects(), OT::PosLookup::intersects(), OT::SingleSubstFormat1::intersects(), OT::SingleSubstFormat2::intersects(), OT::Sequence::intersects(), OT::MultipleSubstFormat1::intersects(), OT::AlternateSet::intersects(), OT::AlternateSubstFormat1::intersects(), OT::Ligature::intersects(), OT::LigatureSet::intersects(), OT::LigatureSubstFormat1::intersects(), OT::ReverseChainSingleSubstFormat1::intersects(), OT::SubstLookup::intersects(), OT::ContextFormat1::intersects(), OT::ContextFormat2::intersects(), OT::ContextFormat3::intersects(), OT::ChainContextFormat1::intersects(), OT::ChainContextFormat2::intersects(), OT::ChainContextFormat3::intersects(), OT::ChainRule::intersects(), OT::ChainRuleSet::intersects(), OT::PairSet::intersects(), OT::Rule::intersects(), OT::RuleSet::intersects(), OT::PosLookupSubTable::intersects(), OT::SubstLookupSubTable::intersects(), OT::intersects_class(), OT::ClassDefFormat1::intersects_class(), OT::ClassDefFormat2::intersects_class(), OT::ClassDef::intersects_class(), OT::intersects_coverage(), OT::CoverageFormat1::intersects_coverage(), OT::CoverageFormat2::intersects_coverage(), OT::Coverage::intersects_coverage(), OT::intersects_glyph(), lookup_gpos(), main(), make_tt_subset(), mapCharToGlyphFromCTFont(), measure_native_node(), morx_cg_FigureClasses(), morx_dumpASM(), morx_dumpLigaFeature(), morx_dumpnestedsubs(), morx_dumpSubsFeature(), morx_lookupmap(), nameGlyphsAccordingToCFF(), Metrics::next_encoding(), graphite2::GlyphCache::Loader::operator delete(), OrderedGlyphsFromNames(), OrderedInitialGlyphs(), otf_dumpgdef(), otf_dumpjstf(), otfcc_readCFFAndGlyfTables(), output_encoding(), ParagraphLayout::ParagraphLayout(), pf_draw(), pixman_composite_glyphs(), pixman_composite_glyphs_no_mask(), pixman_glyph_get_extents(), pixman_glyph_get_mask_format(), DVIReader::putGlyphArray(), radeon_surface_glyphs(), GnomeFontInstance::rasterizeGlyphs(), readcffglyphs(), readttfencodings(), readttfgdef(), reencode(), release_glyphs(), rs_drawGlyphs(), OT::SinglePosFormat1::serialize(), OT::SinglePosFormat2::serialize(), OT::AlternateSubstFormat1::serialize(), OT::AlternateSubst::serialize(), OT::MultipleSubstFormat1::serialize(), OT::MultipleSubst::serialize(), OT::CoverageFormat1::serialize(), OT::CoverageFormat2::serialize(), OT::Coverage::serialize(), OT::SingleSubst::serialize(), OT::SingleSubstFormat1::serialize(), OT::SingleSubstFormat2::serialize(), OT::CursivePosFormat1::serialize(), OT::SubstLookup::serialize_alternate(), OT::SubstLookup::serialize_multiple(), OT::SubstLookup::serialize_single(), SFFigureDefWidth(), SFGlyphsFromNames(), SFGlyphsWithLigatureinLookup(), SFGlyphsWithPSTinSubtable(), SFMatchGlyphs(), SFOrderedGlyphs(), SFOrderedGlyphsWithPSTinSubtable(), OT::glyf::subset(), OT::ClassDefFormat1::subset(), OT::ClassDefFormat2::subset(), t1_free_encode(), t1_get_encode(), AAT::InsertionSubtable< Types >::driver_context_t::transition(), ttf_math_dump_extended(), ttf_math_dump_italic_top(), ttf_math_dump_mathkern(), ttf_math_read_extended(), ttf_math_read_gvtable(), ttf_math_read_icta(), ttf_math_read_mathkern(), Type1GetGlyphs(), Type1GetMetrics(), Type1OpenScalable(), hb_indic_would_substitute_feature_t::would_substitute(), and ParagraphLayout::~ParagraphLayout().

◆ invalid()

◆ main()

◆ natfontdef()

void natfontdef ( int  opcode)

Definition at line 703 of file disdvi.c.

References exit(), flags, fnt, fonts, free, get1, get2, get4, i, int(), invalid(), is_xetex, malloc, op_table::name, name, NULL, num(), pc, perror(), and printf().

Referenced by main().

◆ num()

unsigned long num ( int  size)

Definition at line 621 of file disdvi.c.

Referenced by fontdef(), main(), natfontdef(), and special().

◆ picfile()

void picfile ( int  opcode)

Definition at line 678 of file disdvi.c.

References get1, get2, i, int(), invalid(), is_xetex, pc, printf(), and sget4.

Referenced by main().

◆ postamble()

void postamble ( void  )

Definition at line 379 of file disdvi.c.

Referenced by main().

◆ postpostamble()

void postpostamble ( void  )

Definition at line 436 of file disdvi.c.

References EOF, get1, get4, i, int(), pc, printf(), and TRAILER.

Referenced by main().

◆ preamble()

void preamble ( void  )

Definition at line 408 of file disdvi.c.

References get1, get4, i, int(), pc, and printf().

Referenced by main().

◆ printnonprint()

void printnonprint ( int  ch)

Definition at line 563 of file disdvi.c.

References ch, fc-lang::default, and printf().

Referenced by main().

◆ snum()

long snum ( int  size)

Definition at line 640 of file disdvi.c.

References dvifp, getc, i, pc, size, and cordic::x.

Referenced by main().

◆ special()

void special ( int  x)

Definition at line 463 of file disdvi.c.

References get1, len, num(), pc, printf(), and cordic::x.

Referenced by main().

◆ usage()

void usage ( void  uerr)

Definition at line 662 of file disdvi.c.

References disdvi, fprintf, and progname.

Referenced by main().

Variable Documentation

◆ disdvi

const char* disdvi = "@(#) disdvi.c 2.26 20101027 M.J.E. Mol (c) 1989-2010, marcel@mesa.nl"

Definition at line 42 of file disdvi.c.

Referenced by usage().

◆ dvi_ext

const char* dvi_ext = ".dvi"

Definition at line 120 of file disdvi.c.

Referenced by main().

◆ dvi_name

char* dvi_name

Definition at line 113 of file disdvi.c.

Referenced by main().

◆ dvifp

FILE* dvifp

Definition at line 112 of file disdvi.c.

Referenced by main(), and snum().

◆ fonts

font* fonts = NULL

Definition at line 111 of file disdvi.c.

Referenced by fontdef(), fontname(), and natfontdef().

◆ is_ptex

int is_ptex = 0

Definition at line 118 of file disdvi.c.

Referenced by dvidir(), and main().

◆ is_xetex

int is_xetex = 0

Definition at line 119 of file disdvi.c.

Referenced by glyphs(), main(), natfontdef(), and picfile().

◆ pc

else pc = 0

Definition at line 114 of file disdvi.c.

Referenced by asm_retf(), asm_tail_link(), bcemit_branch(), bcemit_branch_f(), bcemit_branch_t(), bcemit_INS(), blacklist_pc(), bop(), brw_set_predicate_control(), catch_handler_find(), check_call_unroll(), check_method_breakpoint(), check_start_pc_for_line(), codedump(), constructor(), crec_snap_caller(), cur_topslot(), currentline(), dasm_getpclabel(), dasm_link(), dasm_put(), debug_frameline(), debug_localname(), debug_varname(), discharge2reg(), ThaiBreakEngine::divideUpDictionaryRange(), LaoBreakEngine::divideUpDictionaryRange(), BurmeseBreakEngine::divideUpDictionaryRange(), KhmerBreakEngine::divideUpDictionaryRange(), drvNOI::draw_polygon(), drvNOI::draw_polyline(), dumppointarrays(), each_backtrace(), EASSERT(), emit_B(), emit_S(), error_stop(), expr_table(), filterpc(), find_kinit(), findsetreg(), fixjump(), fontdef(), fs_fixup_ret(), funcnamefromcode(), gdImageSharpen(), gdImageSubSharpen(), gen_jmpdst(), genjmp(), genjmp2(), get_file(), Bezier::getBBox(), getjump(), getjumpcontrol(), StreamPredictor::getNextLine(), getobjname(), gmpscan(), gola_close(), gola_new(), gola_patch(), gotostat(), innerloopleft(), interp(), invertjump(), jmp_next(), jmp_patch(), jmp_patchins(), jmp_patchtestreg(), kname(), lj_cf_jit_util_funcbc(), lj_cf_jit_util_funcinfo(), lj_debug_funcname(), lj_debug_line(), lj_debug_pushloc(), lj_dispatch_call(), lj_dispatch_ins(), lj_dispatch_stitch(), lj_err_optype(), lj_err_optype_call(), lj_meta_tailcall(), lj_record_ins(), lj_snap_restore(), lj_trace_exit(), lj_trace_hot(), lj_trace_ins(), lj_trace_stitch(), luaF_getlocalname(), luaK_goiffalse(), luaK_goiftrue(), luaK_patchlist(), luaK_setreturns(), luaV_execute(), main(), mkpaths(), mktexupd(), mrb_code_fetch_hook(), mrb_debug_get_filename(), mrb_debug_get_line(), mrb_proc_arity(), mrb_vm_exec(), natfontdef(), negatecondition(), newlabelentry(), paeth_predictor(), ParseMathsExpression(), parsePointNumbers(), penalty_pc(), picfile(), png_read_filter_row_paeth_1byte_pixel(), png_read_filter_row_paeth_multibyte_pixel(), png_setup_paeth_row(), png_setup_paeth_row_only(), postpostamble(), ppa_print_sweep(), pr_dump(), preamble(), predict_next(), PrintCode(), printscreen(), privcurve_to_curve(), sub_path::read(), read_char_packets(), rec_comp_fixup(), rec_loop_interp(), rec_setup_root(), recff_cdata_arith(), recff_stitch(), runtime_error(), setup_upvals(), snap_usedef(), snum(), special(), trace_abort(), trace_hotside(), trace_stop(), trace_unpatch(), traverse_stack(), and CoonsPatch::valueAt().

◆ progname

char* progname

Definition at line 116 of file disdvi.c.

Referenced by main(), and usage().