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)  

genind.c File Reference
#include "mkind.h"
#include "genind.h"
Include dependency graph for genind.c:

Go to the source code of this file.

Functions

static void flush_line (int print)
 
static void insert_page (void)
 
static int make_entry (int n)
 
static void make_item (const char *term)
 
static unsigned char first_letter (char *term)
 
static void new_entry (void)
 
static void old_entry (void)
 
static int page_diff (struct KFIELD *a, struct KFIELD *b)
 
static void put_header (int let)
 
static void wrap_line (int print)
 
void gen_ind (void)
 
static int page_diff (FIELD_PTR a, FIELD_PTR b)
 

Variables

static FIELD_PTR curr = NULL
 
static FIELD_PTR prev = NULL
 
static FIELD_PTR begin = NULL
 
static FIELD_PTR the_end = NULL
 
static FIELD_PTR range_ptr
 
static int level = 0
 
static int prev_level = 0
 
static char * encap = NULL
 
static char * prev_encap = NULL
 
static int in_range = 0
 
static int encap_range = 0
 
static char buff [2 *10240]
 
static char line [2 *10240]
 
static int ind_lc = 0
 
static int ind_ec = 0
 
static int ind_indent
 

Function Documentation

◆ first_letter()

static unsigned char first_letter ( char *  term)
static

Definition at line 204 of file genind.c.

References strchr, thai_sort, and TOLOWER.

Referenced by new_entry().

◆ flush_line()

◆ gen_ind()

◆ insert_page()

static void insert_page ( void  )
static

Definition at line 433 of file genind.c.

References even_odd, i, ind_lc, isdigit, j, NUL, pageno, PUT, setpage_close, setpage_open, setpagelen, strtoint(), and TOASCII.

Referenced by gen_ind().

◆ make_entry()

◆ make_item()

static void make_item ( const char *  term)
static

Definition at line 166 of file genind.c.

References KFIELD::af, curr, delim_p, i, ilen_r, ilen_u, ilen_x, ind_indent, ind_lc, item_r, item_u, item_x, level, NUL, prev_level, PUT, SAVE, KFIELD::sf, and sprintf.

Referenced by make_entry(), and new_entry().

◆ new_entry()

◆ old_entry()

◆ page_diff() [1/2]

static int page_diff ( FIELD_PTR  a,
FIELD_PTR  b 
)
static

Definition at line 303 of file genind.c.

References a, b, and i.

◆ page_diff() [2/2]

static int page_diff ( struct KFIELD a,
struct KFIELD b 
)
static

Referenced by flush_line(), and old_entry().

◆ put_header()

static void put_header ( int  let)
static

◆ wrap_line()

static void wrap_line ( int  print)
static

Definition at line 406 of file genind.c.

References buff, delim_n, ind_indent, indent_length, indent_space, len, linemax, print, PUT, PUTLN, sprintf, and strlen().

Referenced by flush_line(), and old_entry().

Variable Documentation

◆ begin

FIELD_PTR begin = NULL
static

Definition at line 37 of file genind.c.

Referenced by _cairo_analysis_surface_tag(), _cairo_paginated_surface_tag(), _cairo_pdf_surface_emit_repeating_function(), _cairo_pdf_surface_tag(), _cairo_ps_surface_emit_repeating_function(), _cairo_ps_surface_emit_truetype_font_subset(), _cairo_recording_surface_tag(), _cairo_surface_tag(), _cairo_surface_wrapper_tag(), graphite2::Vector< T >::_insert_default(), graphite2::FiniteStateMachine::Rules::accumulate_rules(), GlyphFilter::add_pattern(), analyzeLines(), appendix(), applyOnRegion(), applyOnRegion2(), applyOnSpaced(), Vector< T >::assign(), Vector< T * >::begin(), binarySearch(), buildField(), cairo_truetype_font_write_glyf_table(), catch_handler_set(), Efont::OpenType::Font::checksum(), CmdTabular(), codedump(), codegen(), GroupCollapser::collapsible(), EmitUncompressedMetaBlock(), TextSelectionPainter::endPage(), Vector< T >::erase(), ExampleCheck(), AttributeExtractor::extractable(), Efont::OpenType::GsubContext::f3_unparse(), FcParseCharSet(), FcRangeCreateDouble(), FcRangeCreateInteger(), FcRangeGetDouble(), find_box_for_y(), findListHead(), fixListRegion(), flush_line(), fromDecimal(), getTitleBlock(), gradient_property_changed(), gregorio_write_first_letter_alignment_text(), gregorio_write_text(), AttributeExtractor::groupable(), headerFooter(), CL::CommandLine::help(), hint(), hnj_hyphen_load(), htmlListBlock(), indType(), AttributeExtractor::inheritable(), inlineEndRegion(), Vector< T >::insert(), isCenter(), joinBlocks(), justified(), linearSearch(), list(), CL::CommandLine::lookupOption(), main(), Efont::OpenType::GsubSingle::mark_out_glyphs(), Efont::OpenType::GsubMultiple::mark_out_glyphs(), Efont::OpenType::GsubLigature::mark_out_glyphs(), markAsPlain(), markIfExample(), markIfJustified(), markIfTable(), numparse::impl::SeriesMatcher::match(), maxLength(), MergeDStemInfo(), minIndent(), mmListBlock(), msListBlock(), newTextBlock(), next_brace_sub(), operand_length(), outAttribute(), OutHEX(), outputBlock(), graphite2::ShiftCollider::outputJsonDbg(), outputRegion(), outputSetSnum(), overwritePaging(), parse_level(), parse_unicode_number(), parser_yylex(), pickUpLine(), plainText(), Vector< T >::pop_front(), pscopy(), pscopyuntil(), Vector< T >::push_front(), quotedText(), Compiler::ReadNameString(), graphite2::Pass::readStates(), really_get_sfd(), renumPrint(), report_underused_features(), Vector< T >::reserve_and_push_back(), Vector< T >::resize(), roffCapsule(), roffComment(), roffListBlock(), roffTable(), saveTitleBody(), searchForProtoSignature(), section(), PDFCore::setLinearSelection(), SFDReadHintInstances(), shell_quote(), shrinkField(), ErrorHandler::skip_anno(), spacing(), suffix_font_name(), tblCheck(), tblOutput(), texFTitle(), texListBlock(), textOuput(), ubidi_getLogicalIndex_68(), Efont::OpenType::GposSingle::unparse(), Efont::OpenType::GposPair::unparse(), Efont::OpenType::GsubLigature::unparse(), Efont::OpenType::GsubMultiple::unparse(), Efont::OpenType::GsubSingle::unparse(), GroupCollapser::unwrappable(), TextWord::visitSelection(), TextLine::visitSelection(), TextSelectionDumper::visitWord(), and TextSelectionPainter::visitWord().

◆ buff

char buff[2 * 10240]
static

Definition at line 46 of file genind.c.

Referenced by _synctex_log(), addcharset(), addinfo(), addliteral(), addquoted(), BinEDeCrypt(), checkdp(), checkliteral(), checkoption(), chkcontinue(), clean_hyphenation(), codecharset(), converte(), copy2buff(), crcheck(), ZNames::createTimeZoneAndPutInCache(), db_gethook(), decNumberSquareRoot(), dicread(), dicvalread(), do_encoding(), doc_search(), CFF::subr_subsetter_t< SUBSETTER, SUBRS, ACC, ENV, OPSET, endchar_op >::encode_str(), ff_tostring(), flush(), flush_line(), getdestdir(), getestr(), getlname(), getparachar(), getparam(), grandom_fill(), gxv_kern_subtable_fmt1_subtable_setup(), gxv_mort_subtable_type1_subtable_setup(), gxv_mort_subtable_type2_subtable_setup(), gxv_morx_subtable_type1_subtable_setup(), gxv_morx_subtable_type2_subtable_setup(), gxv_morx_subtable_type5_subtable_setup(), gxv_set_length_by_ulong_offset(), gxv_set_length_by_ushort_offset(), gxv_StateTable_subtable_setup(), gxv_XStateTable_subtable_setup(), idxread(), input_line2(), io_tostring(), is_dir(), japanese(), kpathsea_getlongpath(), kpathsea_win32_vfprintf(), l_randomizePivot(), l_str2d(), little4(), lj_cf_debug_gethook(), lj_err_lex(), lmd5(), Load_BitmapData(), load_hyphenation(), load_patterns(), LoadString(), luaG_addinfo(), luaL_loadbuffer(), luaL_loadbufferx(), luaO_pushvfstring(), luaO_tostring(), luaO_utf8esc(), luaU_undump(), luaV_concat(), luaX_lexerror(), luaY_parser(), luaZ_fill(), luaZ_openspace(), main(), make_dir(), make_dir_p(), make_tt_subset(), makeseed(), match(), nkf_open(), old_entry(), ordering(), os_date(), os_tmpname(), OutASCII(), packint(), pagesort(), pcomp(), pdf_font_resource_name(), pfr_lookup_bitmap_data(), pk_bitmap(), PrintConstant(), printinst(), printpage(), put_multibyte(), read_header_file(), read_line(), ReadIOConvert(), ReadTail(), readttf(), search(), sfnt_open(), shipcharacter(), str_format(), str_pack(), styread(), system_(), TTFget_first_glyphs(), TTFsearch_PS_name(), ucurr_forLocale_68(), ucurr_forLocaleAndDate_68(), Update_Max(), uprv_decNumberSquareRoot_68(), utf8esc(), UTF8Slength(), wrap_line(), WriteFontName(), and zip_tostring().

◆ curr

◆ encap

char* encap = NULL
static

Definition at line 42 of file genind.c.

Referenced by make_entry(), and old_entry().

◆ encap_range

int encap_range = 0
static

Definition at line 45 of file genind.c.

Referenced by flush_line(), and old_entry().

◆ in_range

int in_range = 0
static

◆ ind_ec

int ind_ec = 0
static

Definition at line 49 of file genind.c.

Referenced by gen_ind().

◆ ind_indent

int ind_indent
static

Definition at line 50 of file genind.c.

Referenced by make_item(), and wrap_line().

◆ ind_lc

int ind_lc = 0
static

Definition at line 48 of file genind.c.

Referenced by gen_ind(), insert_page(), make_item(), new_entry(), and put_header().

◆ level

int level = 0
static

Definition at line 40 of file genind.c.

Referenced by make_entry(), and make_item().

◆ line

char line[2 * 10240]
static

Definition at line 47 of file genind.c.

◆ prev

FIELD_PTR prev = NULL
static

Definition at line 36 of file genind.c.

Referenced by __cairo_list_add(), __cairo_list_del(), _addAttributeToList(), _addExtensionToList(), _addVariantToList(), _bitmap_next_id(), _bitmap_release_id(), _Bocu1FromUnicode(), _Bocu1FromUnicodeWithOffsets(), _Bocu1ToUnicode(), _Bocu1ToUnicodeWithOffsets(), _cairo_bo_sweep_line_insert(), _cairo_cogl_get_linear_gradient(), _cairo_lzw_compress(), _cairo_path_fixed_line_to(), _cairo_pen_compute_slopes(), _cairo_polygon_add_contour(), _cairo_spline_add_point(), _cairo_xlib_close_display(), _cairo_xlib_device_create(), _getVariant(), AALTRemoveOld(), active_edges_insert(), TableResource::add(), add_CIDHMetrics(), add_CIDVMetrics(), add_heap(), add_kern_before(), add_TTCIDHMetrics(), add_TTCIDVMetrics(), AddBMotionBlock(), AddMotionBlock(), af_glyph_hints_reload(), af_latin_metrics_init_blues(), AnchorPointsRemoveName(), APAnchorClassMerge(), OT::gvar::accelerator_t::apply_deltas_to_points(), apply_filter_TIFF2_1_2_4(), TableResource::applyFilter(), arabic_joining(), asm_setup_regsp(), at_begline_loc_p(), bestpolygon(), BlessLUT(), BMotionSearch(), BMotionSearchCross2(), BMotionSearchExhaust(), BMotionSearchNoInterp(), BMotionSearchSimple(), Cache_Done(), check_downrec_unroll(), ck_fclose(), CMap_release(), cmsDeleteContext(), cmsSetAdaptationStateTHR(), Normalizer2Impl::compose(), Normalizer2Impl::composeUTF8(), ComputeBDiffDCTs(), ComputeBMotionBlock(), ComputeBMotionLumBlock(), ComputeDiffDCTs(), ComputeMotionBlock(), ComputeMotionLumBlock(), DecideOverLiteralContextModeling(), deflate_rle(), do_handle_kerning(), do_pk_font(), do_postproc(), DoBIntraCode(), DoIntraCode(), dpx_stack_roll(), duplicate_tree(), ELOrder(), emit_lso(), enumEitherTrie(), eps_jaggy(), FcConfigAdd(), FcConfigDel(), FcConfigEnableHome(), FcHashTableAddInternal(), FcHashTableDestroy(), FcHashTableRemove(), FcListAppend(), FcPatternObjectAddWithBinding(), FcPatternObjectListAdd(), FcPatternRemove(), fea_GDefLigCarets(), fea_ParseMarkedGlyphs(), fea_SetLookupLink(), FigureProperMonotonicsAtIntersections(), filter_TIFF2_apply_filter(), FindBestMatch(), FindBestMatchExhaust(), FindBestMatchLogarithmic(), FindBestMatchSubSample(), FindBestMatchTwoLevel(), FindCounterGroups(), findHighStart(), FixSubPaths(), flush_line(), FontViewBase_Free(), for_body(), free_block(), FT_Done_GlyphSlot(), FTC_Manager_Compress(), FTC_Manager_FlushN(), FTC_MruNode_Remove(), FTC_MruNode_Up(), func_finduv(), gen_ind(), GenBFrame(), generateFromUTable(), generateToUTable(), geninstrs(), GenPFrame(), get_mem(), get_node_field_id(), getChunkLimit(), XeTeXFontInst::getLastCharCode(), gr_slot_linebreak_before(), handle_lig_word(), handle_ligaturing(), NormalizationTransliterator::handleTransliterate(), hb_buffer_add_utf(), heap16_clear(), heap16_free(), heap16_more(), heap16_sole(), heap32_clear(), heap32_free(), heap32_more(), heap32_sole(), heap64_clear(), heap64_free(), heap64_more(), heap64_sole(), heap8_clear(), heap8_free(), heap8_more(), heap8_sole(), ht_insert_table(), ht_remove_table(), if(), OT::gvar::accelerator_t::infer_delta(), LocaleUtility::initLocaleFromName(), initTables(), inner_join(), ZxNode::insertChildAfter(), iof_heap_back(), IsInflectionPoint(), IsSplinePeak(), jbg_split_planes(), jbig2enc_iaid(), jbig2enc_int(), last_dec(), lj_alloc_free(), local_resume(), local_switch(), longest_match(), lua_nodelib_direct_getfield(), lua_nodelib_direct_setfield(), lua_nodelib_fast_getfield(), lua_nodelib_fast_setfield(), lua_nodelib_fields(), LumAddMotionError(), LumMotionError(), LumMotionErrorA(), LumMotionErrorB(), LumMotionErrorC(), LumMotionErrorD(), make_article(), make_entry(), Normalizer2Impl::makeFCD(), makeline(), makequartercircle(), merge_sorted_edges(), MergeDStemInfo(), SplashXPath::mergeSegments(), MotionSufficient(), mrb_str_len_to_dbl(), new_entry(), note_stack_clear(), note_stack_pop(), old_entry(), OrderNewLookup(), otl_gsub_set_chain(), OTLAppend(), OTLRemove(), CollationRuleParser::parseStarredCharacters(), pdf_concat_stream(), pdf_font_load_pkfont(), pdf_font_load_type1(), peek_token(), PLocalSearch(), PLogarithmicSearch(), PMotionSearch(), pool_fini(), postorder(), prefixed_command(), preorder(), prev_const_chain(), FCDUIterCollationIterator::previousCodePoint(), psreinitnames(), PSubSampleSearch(), PTwoLevelSearch(), Decomposer::rangeHandler(), read_xref(), Normalizer2Impl::recompose(), RefHintsMerge(), GraphicsPath< T >::removeRedundantCommands(), save_marker(), scan_roman_lower(), scan_roman_upper(), SCGuessHintPoints(), scope_add_irep(), scope_new(), SCRemoveDependent(), secCnctable(), U_NAMESPACE_BEGIN::serialize(), SFDFixupRefs(), SFDGetLangName(), SFDReadUTF7Str(), SFKernClassRemoveFree(), SFRemoveAnchorClass(), SFRemoveAnchorPointsOfAC(), SFRemoveLookup(), SFRemoveLookupSubTable(), SFRemoveUnusedLookupSubTables(), snarf_char_class(), socket_recv(), socket_recvfrom(), SortInsertLookup(), BMPSet::spanBackUTF8(), SplineCharDefaultNextCP(), SplineCharDefaultPrevCP(), SplinePointMDFree(), SplineRefigureFixup(), SSRemoveReversals(), SSRemoveTiny(), substituteDoubletWithRule(), substituteSingletWithRule(), svg_jaggy_path(), sweep_line_insert(), tagLookupsWithScript(), TIFFSetErrorHandler(), TIFFSetTagExtender(), TIFFSetWarningHandler(), GraphicsPath< T >::to_param_str(), U_NAMESPACE_BEGIN::toLower(), U_NAMESPACE_BEGIN::toUpper(), try_ligature(), tt_build_tables(), TTFAddLangStr(), ttfFixupRef(), u_shapeArabic_68(), u_writeIdenticalLevelRun_68(), ubidi_addPropertyStarts_68(), ucasemap_internalUTF8ToTitle_68(), ucsdet_enableInputFilter_68(), ulocimp_getKeywords_68(), unlinkuv(), UseGivenEncoding(), usrc_writeArrayOfMostlyInvChars(), ustrcase_internalToTitle_68(), utrie_enum_68(), VStemGeninst(), ZeroMotionBetter(), and ZeroMotionSufficient().

◆ prev_encap

char* prev_encap = NULL
static

Definition at line 43 of file genind.c.

Referenced by flush_line(), make_entry(), and old_entry().

◆ prev_level

int prev_level = 0
static

Definition at line 41 of file genind.c.

Referenced by make_entry(), and make_item().

◆ range_ptr

FIELD_PTR range_ptr
static

Definition at line 39 of file genind.c.

Referenced by gen_ind(), make_entry(), and new_entry().

◆ the_end

FIELD_PTR the_end = NULL
static

Definition at line 38 of file genind.c.

Referenced by flush_line(), and old_entry().