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)  

stack.c File Reference
#include "config.h"
#include "ttf.h"
#include "ttfutil.h"
Include dependency graph for stack.c:

Go to the source code of this file.

Macros

#define stack   (vm->Stack)
 
#define sp   (vm->sp)
 
#define limit   (vm->stklimit)
 
#define ins   (vm->iStream)
 
#define ip   (vm->ip)
 

Enumerations

enum  TTF_ERROR { StackOverflow , InstructionOverflow }
 

Functions

void Push (VirtualMachine *vm, LONG l)
 
LONG Pop (VirtualMachine *vm)
 
BYTE GetBYTE (VirtualMachine *vm)
 
SHORT GetSHORT (VirtualMachine *vm)
 

Macro Definition Documentation

◆ ins

#define ins   (vm->iStream)

Definition at line 13 of file stack.c.

◆ ip

#define ip   (vm->ip)

Definition at line 14 of file stack.c.

◆ limit

char * limit   (vm->stklimit)

Definition at line 12 of file stack.c.

Referenced by Push().

◆ sp

* sp   (vm->sp)

Definition at line 11 of file stack.c.

Referenced by __gmp_nextprime(), __gmp_randinit_lc_2exp_size(), __gmpf_init_set(), __gmpn_bsqrt(), __gmpn_rootrem(), __gmpn_sqrtrem(), __gmpn_strongfibo(), __gmpz_gcdext(), __gmpz_inp_raw(), _bdf_is_atom(), _bdf_list_split(), _CubicSolve(), _Ex_ConvertEnvVariables(), _Ex_ConvertToUnixFormat(), _gdImageFillTiled(), _InterpretPS(), _IsExtremum(), _logLuvNop(), _SCClearHintMasks(), _SCRefNumberPoints2(), _SplineCharIsFlexible(), _SplineFindExtrema(), _SplineSetFindTop(), _ttfapprox(), add_segment(), add_string(), TextPage::addChar(), AddEdge(), AddEntry(), AddGhostSegment(), AddLineSegment(), AddMajorEdge(), AddSpline(), AdjustForImperfectSlopeMatch(), alloc_sys(), alloc_trim(), aload(), AlreadyQuadraticCheck(), HTMLGen::appendSpans(), AssignPtNumbers(), TextPage::assignSimpleLayoutPositions(), bbdopage(), BindKeyStroke(), blank_setstring(), BoundIterateSplineSolve(), buffer_get_script(), BuildEnvironmentEntry(), BuildExtensionLists(), TextPage::buildLine(), BuildOS2String(), TextPage::buildOverlappingTextColumn(), buildstems(), cairo_pdf_interchange_write_annot(), callback_conv_args(), ccall_get_results(), graphite2::vm::Machine::check_final_stack(), CheckExtremaForSingleBitErrors(), CheckForMailArriving(), CheckProgramMode(), ChordMid(), cl_hash(), ClosestSplineSolve(), cmpdcd_setstring(), cmpntt_setstring(), cmsGDBAddPoint(), cmsGDBCheckPoint(), COMPARE(), ComputeDashPhotonArc(), ConnectsAcross(), copy_string(), StringPair::create(), CreateGlobalVariableList(), crec_alloc(), crec_arith_int64(), crec_arith_meta(), crec_arith_ptr(), crec_ct_ct(), crec_ct_tv(), crec_index_bf(), crec_toint(), crec_tv_ct(), CubicSolve(), dbl_add(), dbl_cmpg(), dbl_cmpl(), dbl_div(), dbl_fix(), dbl_float(), dbl_mul(), dbl_neg(), dbl_sub(), dbl_widen(), dbl_zcheck(), DeleteGlobalVariableList(), DGifGetImageDesc(), DGifSlurp(), do_query_features(), do_query_scripts(), dodot(), DoMatOp(), DoMatTransform(), dopage(), dopwd(), dospecial(), doswap(), MarkedContentOutputDev::drawChar(), dvi_push(), EraseStroke(), PostScriptFunction::exec(), ExpandAWord(), ExtractNameAndIndex(), fallbackQSort3(), Fax3Cleanup(), Fax3Close(), Fax3Decode1D(), Fax3Decode2D(), Fax3DecodeRLE(), Fax3Encode(), Fax3Encode1DRow(), Fax3PostEncode(), Fax3PreDecode(), Fax3PreEncode(), Fax3PrintDir(), Fax3PutBits(), Fax3PutEOL(), Fax3SetupState(), Fax3VGetField(), Fax3VSetField(), Fax4Decode(), Fax4Encode(), Fax4PostEncode(), ffixquadrants(), FFLineTo(), FigureHintMask(), FigureSpline1(), FigureStemActive(), FindClosestOpposite(), FindFileAndExtension(), FindLocationOfExecutable(), FindOrMakeGhostStem(), FindRefPointsNew(), findstemat(), flo_add(), flo_cmpg(), flo_cmpl(), flo_div(), flo_fix(), flo_float(), flo_mul(), flo_neg(), flo_sub(), flo_trunc(), flo_zcheck(), forgetstack(), Free_SinglePos(), FreeSavedImages(), freestuff(), gc_alloc(), gc_collect(), gdImageFill(), gen_assignment(), gen_call(), gen_vmassignment(), get(), Get_EMS_Driver(), get_jfm_pos(), TextPage::getAverageLineSpacing(), ICUService::getDisplayNames(), TextPage::getLineSpacing(), GetMemoryAreaNumber(), GetPoint(), GetValidPointDataIndex(), GetVariableName(), GlobAWord(), GlyphDataInit(), glyphmatches(), gmtload(), GoodCurve(), gssentry(), has_segment_link(), hgcd_matrix_apply(), HintsRenumber(), horAcc8(), horDiff16(), horDiff8(), in_gif_reader(), InitCCITTFax3(), inspect_i(), int_div(), int_mod(), interp(), InterpolateMissingSector(), ioescapestopped(), IsAnglePoint(), IsCorrectSide(), IsExtremum(), IsFlexSmooth(), IsHV(), IsInflectionPoint(), ComposeNormalizer2::isNormalizedUTF8(), ISolveWithin(), IsSplinePeak(), IterateSolve(), IterateSplineSolve(), IterateSplineSolveFixup(), jstfm_setstring_abs_gen(), jstfm_setstring_gen(), jswl_setstring(), jswl_setstring_abs(), jvf_setstring(), L16fromY(), L16toGry(), L16toY(), l_R(), LineTo(), LineType(), lj_alloc_destroy(), lj_carith_check64(), lj_cconv_ct_ct(), lj_cconv_ct_tv(), lj_cconv_tv_bf(), lj_cconv_tv_ct(), lj_cdata_get(), lj_cf_ffi_clib___index(), lj_cf_ffi_copy(), lj_strscan_scan(), Load_SinglePos(), localsub(), LogL16Decode(), LogL16Encode(), LogL16InitState(), LogLuvCleanup(), LogLuvDecode24(), LogLuvDecode32(), LogLuvEncode24(), LogLuvEncode32(), LogLuvInitState(), LogLuvSetupDecode(), LogLuvSetupEncode(), LogLuvVGetField(), LogLuvVSetField(), long_add(), long_cmp(), long_div(), long_ext(), long_flo(), long_mod(), long_mul(), long_neg(), long_sub(), long_zcheck(), Lookup_SinglePos(), Luv24fromLuv48(), Luv24fromXYZ(), Luv24toLuv48(), Luv24toRGB(), Luv24toXYZ(), Luv32fromLuv48(), Luv32fromXYZ(), Luv32toLuv48(), Luv32toRGB(), Luv32toXYZ(), LWZReadByte(), LZWDecode(), LZWDecodeCompat(), LZWEncode(), LZWPostEncode(), LZWPreDecode(), LZWPreEncode(), LZWSetupDecode(), LZWSetupEncode(), main(), mainQSort3(), MakeSavedImage(), MathsSubstitute(), max_expand(), mchar_setstring(), memmove(), memrchr(), memrcpy(), mpfr_div(), mpfr_set_1_2(), mpfr_sqrt(), mpn_dc_sqrt(), mpn_dc_sqrtrem(), mpn_get_str(), mpn_get_str_bits(), mpn_get_str_other(), mpn_limb_get_str(), mpn_llriter(), mpn_rootrem_internal(), mpn_set_str(), mpn_set_str_bits(), mpn_set_str_other(), mpn_sqrtrem(), mpn_sqrtrem2(), mpq_get_str(), mpq_set_str(), mpz_get_str(), mpz_init_set_str(), mpz_set_str(), narrow_conv_emit(), ne_d(), NEW(), new_script_from_string(), new_script_from_tag(), NEWFLEX(), OnEdge(), OnHHint(), OnVHint(), OverlapClusterCpAngles(), P_fclose(), P_fdopen(), P_fflush(), P_FmtFixed(), P_FmtInt(), P_FmtLong(), P_FmtLongReal(), P_FmtReal(), P_FmtString(), P_fopen(), P_fputc(), P_fread(), P_fseek(), P_ftell(), P_fwrite(), P_gc_debug(), P_gc_heap_size(), P_GetArgc(), P_InitFiles(), P_load_lib(), P_obgetc(), P_toupper(), P_ungetc(), P_unlink(), P_xmain_exit(), ParallelToDir(), parse_filename(), parse_lineno(), parse_uint(), DvipsEncoding::parse_word_group(), parsedimen(), parsedouble(), parseint(), pdf_read_object(), pfed_glyph_layer(), pfed_read_normal_contour(), pfed_readguidelines(), PhotonArcHelp(), png_combine_row(), png_do_chop(), png_do_compose(), png_do_expand(), png_do_expand_16(), png_do_expand_palette(), png_do_gamma(), png_do_gray_to_rgb(), png_do_pack(), png_do_quantize(), png_do_read_filler(), png_do_read_interlace(), png_do_read_invert_alpha(), png_do_read_swap_alpha(), png_do_rgb_to_gray(), png_do_scale_16_to_8(), png_do_strip_channel(), png_do_unpack(), png_do_write_interlace(), png_do_write_invert_alpha(), png_do_write_swap_alpha(), png_push_save_buffer(), PointInit(), Pop(), PredictorDecodeRow(), PredictorDecodeTile(), PredictorEncodeRow(), PredictorEncodeTile(), PredictorPrintDir(), PredictorSetup(), PredictorSetupDecode(), PredictorSetupEncode(), PredictorVGetField(), PredictorVSetField(), prescanpages(), ProcessSpaceInParameters(), PSCharStringToBB(), PSCharStringToSplines(), Push(), TextTrieMap::put(), putspan(), QuantizeToSector(), QuickBlues(), quotedString(), rast_setstring(), rd_F(), readcffprivate(), readcfftopdict(), CollationRuleParser::readWords(), realf_setstring(), recff_cdata_arith(), recff_clib_index(), release_unused_segments(), ReleaseMemoryCell(), RemoveMagicMarkers(), RemoveNextSP(), RemovePrevSP(), RestoreStandardIO(), rollstack(), run(), RunOnPoints(), S_dup2(), SameLine(), scan(), scanfont(), ScanNextToken(), scavenge(), SCClearRounds(), SCDefaultInterpolation(), SCGuessHintInstancesLight(), SCGuessHintPoints(), SCNumberPoints(), SCPointsNumberedProperly(), script(), SCUnflex(), search_edge(), segment_holding(), SetMemoryAreaNumber(), settzname(), SetUpCLI(), SFDGetMinimumDistances(), SFDGetSplineSet(), skip_char(), sp_color(), sp_pdf_bann(), sp_pdf_bcolor(), sp_to_dvi(), SPAdjustControl(), SPAverageCps(), SPFigureCP(), SPFigurePlusCP(), SPInterpolate(), SpIsExtremum(), SPLCheckValidity(), Spline2DFindExtrema(), Spline2DFindPointsOfInflection(), SplineAddExtrema(), SplineAtInflection(), SplineAtMinMax(), SplineCharTangentNextCP(), SplineCharTangentPrevCP(), SplineFindBounds(), SplineFindExtrema(), SplineMaybeBisect(), SplinePointCatagorize(), SplinePointCategorize(), SplinePointCreate(), SplinePointFree(), SplinePointIsACorner(), SplinePointMDFree(), SplinePointReCatagorize(), SplinePointRound(), SplineRemoveExtremaTooClose(), SplineSetAddExtrema(), SplineSetFixCPs(), SplineSetQuickBounds(), SplineSetQuickConservativeBounds(), SplineSetsRound2Int(), SplineSolve(), SplineSolveFull(), SplinesRemoveBetween(), SPNew(), SPTouchControl(), SPWeightedAverageCps(), SSAddPoints(), SSIsSelected(), SSPsNumberPoints(), SSRemoveBacktracks(), SSRemoveColinearPoints(), SSRemoveReversals(), SSRemoveTiny(), SSTtfNumberPoints(), step(), strcache_iscached(), strcache_print_stats(), swabHorAcc16(), sym_inspect(), tag(), tex_init_rand(), tex_scaledimen(), tex_unif_rand(), tfm_setstring(), tfm_setstring_abs(), TIFFInitSGILog(), TIFFPredictorInit(), TIFFVGetFieldDefaulted(), time1(), time2sub(), timesub(), ToCartesian(), TOfNextMajor(), ToSpherical(), PostScriptFunction::transform(), TransformPoint(), TransformPointExtended(), traverse_stack(), ttfbuildcontours(), ttfFindPointInSC(), typesequiv(), tzload(), tzparse(), unum_parseDecimal_68(), value_point(), vf_setstring(), VI_InsertWords(), virf_setstring(), WalkSpline(), write_sp(), write_sp_nodebug(), and WriteToExtendedFile().

◆ stack

#define stack   (vm->Stack)

Definition at line 10 of file stack.c.

Enumeration Type Documentation

◆ TTF_ERROR

enum TTF_ERROR
Enumerator
StackOverflow 
InstructionOverflow 

Definition at line 16 of file stack.c.

Function Documentation

◆ GetBYTE()

BYTE GetBYTE ( VirtualMachine vm)
inline

Definition at line 48 of file stack.c.

References VirtualMachine::Error_State, ins, InstructionOverflow, and ip.

Referenced by Interp_NPUSHB(), Interp_NPUSHW(), and Interp_PUSHB().

◆ GetSHORT()

SHORT GetSHORT ( VirtualMachine vm)
inline

Definition at line 59 of file stack.c.

References VirtualMachine::Error_State, ins, InstructionOverflow, ip, and n.

Referenced by Interp_NPUSHW(), and Interp_PUSHW().

◆ Pop()

◆ Push()

void Push ( VirtualMachine vm,
LONG  l 
)
inline

Definition at line 19 of file stack.c.

References VirtualMachine::Error_State, cutout::l, limit, sp, and StackOverflow.