| 1 |
/* |
| 2 |
* |
| 3 |
* This file is part of |
| 4 |
* MakeIndex - A formatter and format independent index processor |
| 5 |
* |
| 6 |
* Copyright (C) 1998-2011 by the TeX Live project. |
| 7 |
* Copyright (C) 1989 by Chen & Harrison International Systems, Inc. |
| 8 |
* Copyright (C) 1988 by Olivetti Research Center |
| 9 |
* Copyright (C) 1987 by Regents of the University of California |
| 10 |
* |
| 11 |
* Author: |
| 12 |
* Pehong Chen |
| 13 |
* Chen & Harrison International Systems, Inc. |
| 14 |
* Palo Alto, California |
| 15 |
* USA |
| 16 |
* |
| 17 |
* Contributors: |
| 18 |
* Please refer to the CONTRIB file that comes with this release |
| 19 |
* for a list of people who have contributed to this and/or previous |
| 20 |
* release(s) of MakeIndex. |
| 21 |
* |
| 22 |
* All rights reserved by the copyright holders. See the copyright |
| 23 |
* notice distributed with this software for a complete description of |
| 24 |
* the conditions under which it is made available. |
| 25 |
* |
| 26 |
*/ |
| 27 |
|
| 28 |
#define IND_ERROR(F) { \ |
| 29 |
if (idx_dot) { \ |
| 30 |
fprintf(ilg_fp, "\n"); \ |
| 31 |
idx_dot = FALSE; \ |
| 32 |
} \ |
| 33 |
fprintf(ilg_fp, \ |
| 34 |
"## Warning (input = %s, line = %d; output = %s, line = %d):\n -- ", \ |
| 35 |
curr->fn, curr->lc, ind_fn, ind_lc+1); \ |
| 36 |
fprintf(ilg_fp, F); \ |
| 37 |
ind_ec++; \ |
| 38 |
} |
| 39 |
|
| 40 |
#define IND_ERROR1(F, D) { \ |
| 41 |
if (idx_dot) { \ |
| 42 |
fprintf(ilg_fp, "\n"); \ |
| 43 |
idx_dot = FALSE; \ |
| 44 |
} \ |
| 45 |
fprintf(ilg_fp, \ |
| 46 |
"## Warning (input = %s, line = %d; output = %s, line = %d):\n -- ", \ |
| 47 |
curr->fn, curr->lc, ind_fn, ind_lc+1); \ |
| 48 |
fprintf(ilg_fp, F, D); \ |
| 49 |
ind_ec++; \ |
| 50 |
} |
| 51 |
|
| 52 |
#define PUTC(C) { \ |
| 53 |
fputc(C, ind_fp); \ |
| 54 |
} |
| 55 |
|
| 56 |
#define PUT(S) { \ |
| 57 |
fputs(S, ind_fp); \ |
| 58 |
} |
| 59 |
|
| 60 |
#define PUTLN(S) { \ |
| 61 |
fputs(S, ind_fp); \ |
| 62 |
fputc('\n', ind_fp); \ |
| 63 |
ind_lc++; \ |
| 64 |
} |
| 65 |
|
| 66 |
#define SAVE { \ |
| 67 |
begin = the_end = curr; \ |
| 68 |
prev_encap = encap; \ |
| 69 |
} |
| 70 |
|