diff options
author | Karl Berry <karl@freefriends.org> | 2006-01-17 21:41:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-01-17 21:41:51 +0000 |
commit | 487ca4806cc046076293cf6cc5fbba0db282bac7 (patch) | |
tree | 847b412ab5158dd7bdd7ed7e5a4cc3fbca94be32 /Build/source/texk/makeindexk/genind.h | |
parent | a3d3111bfe26b8e5f5bc6049dfb2a4ca2edc7881 (diff) |
texk 1
git-svn-id: svn://tug.org/texlive/trunk@1485 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/makeindexk/genind.h')
-rw-r--r-- | Build/source/texk/makeindexk/genind.h | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/Build/source/texk/makeindexk/genind.h b/Build/source/texk/makeindexk/genind.h new file mode 100644 index 00000000000..445f52d7ae9 --- /dev/null +++ b/Build/source/texk/makeindexk/genind.h @@ -0,0 +1,58 @@ +/* + * + * This file is part of + * MakeIndex - A formatter and format independent index processor + * + * Copyright (C) 1989 by Chen & Harrison International Systems, Inc. + * Copyright (C) 1988 by Olivetti Research Center + * Copyright (C) 1987 by Regents of the University of California + * + * Author: + * Pehong Chen + * Chen & Harrison International Systems, Inc. + * Palo Alto, California + * USA + * (phc@renoir.berkeley.edu or chen@orc.olivetti.com) + * + * Contributors: + * Please refer to the CONTRIB file that comes with this release + * for a list of people who have contributed to this and/or previous + * release(s) of MakeIndex. + * + * All rights reserved by the copyright holders. See the copyright + * notice distributed with this software for a complete description of + * the conditions under which it is made available. + * + */ + +#define IND_ERROR(F, D) { \ + if (idx_dot) { \ + fprintf(ilg_fp, "\n"); \ + idx_dot = FALSE; \ + } \ + fprintf(ilg_fp, \ + "## Warning (input = %s, line = %d; output = %s, line = %d):\n -- ", \ + curr->fn, curr->lc, ind_fn, ind_lc+1); \ + fprintf(ilg_fp, F, D); \ + ind_ec++; \ +} + +#define PUTC(C) { \ + fputc(C, ind_fp); \ +} + +#define PUT(S) { \ + fputs(S, ind_fp); \ +} + +#define PUTLN(S) { \ + fputs(S, ind_fp); \ + fputc('\n', ind_fp); \ + ind_lc++; \ +} + +#define SAVE { \ + begin = the_end = curr; \ + prev_encap = encap; \ +} + |