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)  

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

Go to the source code of this file.

Macros

#define MKIND_C   1
 

Functions

static void check_all (char *fn, int ind_given, int ilg_given, int log_given)
 
static void check_idx (char *fn, int open_fn)
 
static void find_pageno (void)
 
static void open_sty (char *fn)
 
static void prepare_idx (void)
 
static void process_idx (char **fn, int use_stdin, int sty_given, int ind_given, int ilg_given, int log_given)
 
int mk_getc (FILE *stream)
 
int main (int argc, char *argv[])
 
static void process_idx (char *fn[], int use_stdin, int sty_given, int ind_given, int ilg_given, int log_given)
 
int strtoint (char *str)
 

Variables

int letter_ordering = 0
 
int compress_blanks = 0
 
int merge_page = 1
 
int init_page = 0
 
int even_odd = -1
 
int verbose = 1
 
int german_sort = 0
 
int thai_sort = 0
 
int locale_sort = 0
 
int fn_no = -1
 
int idx_dot = 1
 
int idx_tt = 0
 
int idx_et = 0
 
int idx_gt = 0
 
FIELD_PTRidx_key
 
FILElog_fp
 
FILEsty_fp
 
FILEidx_fp
 
FILEind_fp
 
FILEilg_fp
 
const char * pgm_fn
 
char sty_fn [999]
 
const char * idx_fn
 
char ind [999]
 
const char * ind_fn
 
char ilg [999]
 
const char * ilg_fn
 
char pageno [99]
 
static char log_fn [999]
 
static char base [999]
 
static int need_version = 1
 
static int lookahead = -2
 

Macro Definition Documentation

◆ MKIND_C

#define MKIND_C   1

Definition at line 28 of file mkind.c.

Function Documentation

◆ check_all()

static void check_all ( char *  fn,
int  ind_given,
int  ilg_given,
int  log_given 
)
static

◆ check_idx()

static void check_idx ( char *  fn,
int  open_fn 
)
static

◆ find_pageno()

static void find_pageno ( void  )
static

Definition at line 468 of file mkind.c.

References c, FALSE, fprintf, fseek, GET_CHAR, i, ilg_fp, init_page, isdigit, log_fn, log_fp, LSQ, NUL, p, pageno, and SPC.

Referenced by check_all().

◆ main()

◆ mk_getc()

int mk_getc ( FILE stream)

Definition at line 86 of file mkind.c.

References ch, getc, LFD, and lookahead.

◆ open_sty()

static void open_sty ( char *  fn)
static

◆ prepare_idx()

static void prepare_idx ( void  )
static

Definition at line 274 of file mkind.c.

References calloc(), FATAL, fprintf, head, i, idx_gt, idx_key, NULL, ptr, and void.

Referenced by main().

◆ process_idx() [1/2]

static void process_idx ( char **  fn,
int  use_stdin,
int  sty_given,
int  ind_given,
int  ilg_given,
int  log_given 
)
static

Referenced by main().

◆ process_idx() [2/2]

static void process_idx ( char *  fn[],
int  use_stdin,
int  sty_given,
int  ind_given,
int  ilg_given,
int  log_given 
)
static

◆ strtoint()

int strtoint ( char *  str)

Definition at line 563 of file mkind.c.

References NUL, and str.

Referenced by insert_page(), and scan_arabic().

Variable Documentation

◆ base

char base[999]
static

Definition at line 65 of file mkind.c.

Referenced by check_all(), check_idx(), and main().

◆ compress_blanks

int compress_blanks = 0

Definition at line 33 of file mkind.c.

Referenced by main(), scan_arg1(), and scan_field().

◆ even_odd

int even_odd = -1

Definition at line 36 of file mkind.c.

Referenced by insert_page(), and main().

◆ fn_no

int fn_no = -1

Definition at line 41 of file mkind.c.

Referenced by main(), and process_idx().

◆ german_sort

int german_sort = 0

Definition at line 38 of file mkind.c.

Referenced by compare_one(), compare_string(), main(), new_entry(), process_idx(), and scan_key().

◆ idx_dot

int idx_dot = 1

Definition at line 42 of file mkind.c.

◆ idx_et

int idx_et = 0

Definition at line 45 of file mkind.c.

Referenced by main(), and scan_idx().

◆ idx_fn

const char* idx_fn

Definition at line 57 of file mkind.c.

Referenced by check_idx(), make_key(), process_idx(), and scan_idx().

◆ idx_fp

FILE* idx_fp

Definition at line 51 of file mkind.c.

Referenced by check_idx(), flush_to_eol(), process_idx(), scan_arg1(), scan_arg2(), and scan_idx().

◆ idx_gt

int idx_gt = 0

Definition at line 46 of file mkind.c.

Referenced by gen_ind(), main(), prepare_idx(), and sort_idx().

◆ idx_key

FIELD_PTR* idx_key

Definition at line 48 of file mkind.c.

Referenced by gen_ind(), make_entry(), prepare_idx(), and sort_idx().

◆ idx_tt

int idx_tt = 0

Definition at line 44 of file mkind.c.

Referenced by main(), and scan_idx().

◆ ilg

char ilg[999]

Definition at line 60 of file mkind.c.

Referenced by check_all().

◆ ilg_fn

const char* ilg_fn

Definition at line 61 of file mkind.c.

Referenced by check_all(), main(), and process_idx().

◆ ilg_fp

FILE* ilg_fp

Definition at line 53 of file mkind.c.

Referenced by check_all(), find_pageno(), main(), and process_idx().

◆ ind

◆ ind_fn

const char* ind_fn

Definition at line 59 of file mkind.c.

Referenced by check_all(), gen_ind(), main(), and process_idx().

◆ ind_fp

FILE* ind_fp

Definition at line 52 of file mkind.c.

Referenced by check_all(), main(), and process_idx().

◆ init_page

int init_page = 0

Definition at line 35 of file mkind.c.

Referenced by find_pageno(), gen_ind(), and main().

◆ letter_ordering

int letter_ordering = 0

Definition at line 32 of file mkind.c.

Referenced by compare_string(), and main().

◆ locale_sort

int locale_sort = 0

Definition at line 40 of file mkind.c.

Referenced by check_mixsym(), compare_string(), and main().

◆ log_fn

char log_fn[999]
static

Definition at line 64 of file mkind.c.

Referenced by check_all(), and find_pageno().

◆ log_fp

FILE* log_fp

Definition at line 49 of file mkind.c.

Referenced by check_all(), and find_pageno().

◆ lookahead

◆ merge_page

int merge_page = 1

Definition at line 34 of file mkind.c.

Referenced by main(), and old_entry().

◆ need_version

int need_version = 1
static

Definition at line 66 of file mkind.c.

Referenced by process_idx().

◆ pageno

◆ pgm_fn

const char* pgm_fn

Definition at line 55 of file mkind.c.

Referenced by main().

◆ sty_fn

char sty_fn[999]

Definition at line 56 of file mkind.c.

Referenced by open_sty(), and scan_sty().

◆ sty_fp

FILE* sty_fp

Definition at line 50 of file mkind.c.

Referenced by next_nonblank(), open_sty(), scan_char(), scan_spec(), scan_string(), and scan_sty().

◆ thai_sort

int thai_sort = 0

Definition at line 39 of file mkind.c.

Referenced by first_letter(), and main().

◆ verbose

int verbose = 1

Definition at line 37 of file mkind.c.

Referenced by main(), and process_idx().