Back to index

tetex-bin  3.0
genind.h
Go to the documentation of this file.
00001 /*
00002  *
00003  *  This file is part of
00004  *     MakeIndex - A formatter and format independent index processor
00005  *
00006  *  Copyright (C) 1989 by Chen & Harrison International Systems, Inc.
00007  *  Copyright (C) 1988 by Olivetti Research Center
00008  *  Copyright (C) 1987 by Regents of the University of California
00009  *
00010  *  Author:
00011  *     Pehong Chen
00012  *     Chen & Harrison International Systems, Inc.
00013  *     Palo Alto, California
00014  *     USA
00015  *     (phc@renoir.berkeley.edu or chen@orc.olivetti.com)
00016  *
00017  *  Contributors:
00018  *     Please refer to the CONTRIB file that comes with this release
00019  *     for a list of people who have contributed to this and/or previous
00020  *     release(s) of MakeIndex.
00021  *
00022  *  All rights reserved by the copyright holders.  See the copyright
00023  *  notice distributed with this software for a complete description of
00024  *  the conditions under which it is made available.
00025  *
00026  */
00027 
00028 #define IND_ERROR(F, D) { \
00029     if (idx_dot) { \
00030        fprintf(ilg_fp, "\n"); \
00031        idx_dot = FALSE; \
00032     } \
00033     fprintf(ilg_fp, \
00034     "## Warning (input = %s, line = %d; output = %s, line = %d):\n   -- ", \
00035            curr->fn, curr->lc, ind_fn, ind_lc+1); \
00036     fprintf(ilg_fp, F, D); \
00037     ind_ec++; \
00038 }
00039 
00040 #define PUTC(C) { \
00041     fputc(C, ind_fp); \
00042 }
00043 
00044 #define PUT(S) { \
00045     fputs(S, ind_fp); \
00046 }
00047 
00048 #define PUTLN(S) { \
00049     fputs(S, ind_fp); \
00050     fputc('\n', ind_fp); \
00051     ind_lc++; \
00052 }
00053 
00054 #define SAVE { \
00055     begin = the_end = curr; \
00056     prev_encap = encap; \
00057 }
00058