home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / FUNNEL_S / SOURCES / LISTER.H < prev    next >
C/C++ Source or Header  |  1992-05-27  |  3KB  |  76 lines

  1. /*##############################################################################
  2.  
  3. FUNNNELWEB COPYRIGHT
  4. ====================
  5. FunnelWeb is a literate-programming macro preprocessor.
  6.  
  7. Copyright (C) 1992 Ross N. Williams.
  8.  
  9.    Ross N. Williams
  10.    ross@spam.adelaide.edu.au
  11.    16 Lerwick Avenue, Hazelwood Park 5066, Australia.
  12.  
  13. This program is free software; you can redistribute it and/or modify
  14. it under the terms of Version 2 of the GNU General Public License as
  15. published by the Free Software Foundation.
  16.  
  17. This program is distributed WITHOUT ANY WARRANTY; without even the implied
  18. warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  19. See Version 2 of the GNU General Public License for more details.
  20.  
  21. You should have received a copy of Version 2 of the GNU General Public
  22. License along with this program. If not, you can FTP the license from
  23. prep.ai.mit.edu/pub/gnu/COPYING-2 or write to the Free Software
  24. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  25.  
  26. Section 2a of the license requires that all changes to this file be
  27. recorded prominently in this file. Please record all changes here.
  28.  
  29. Programmers:
  30.    RNW  Ross N. Williams  ross@spam.adelaide.edu.au
  31.  
  32. Changes:
  33.    07-May-1992  RNW  Program prepared for release under GNU GPL V2.
  34.  
  35. ##############################################################################*/
  36.  
  37.  
  38. /******************************************************************************/
  39. /*                                   LISTER.H                                 */
  40. /******************************************************************************/
  41.  
  42. #include "style.h"
  43.  
  44. #include "data.h"
  45.  
  46. /******************************************************************************/
  47.  
  48. EXPORT void lr_ini P_((void));
  49. /* Initialize the lister. Calling this function destroys all the lister       */
  50. /* package's old internal data structures and sets them to a well-defined     */
  51. /* initial state (empty) and prepares the lister for the incoming messages.   */
  52. /* This function may be called at any time and many times.                    */
  53.  
  54. EXPORT void lr_mes P_((ps_t *,char *));
  55. EXPORT void lr_war P_((ps_t *,char *));
  56. EXPORT void lr_err P_((ps_t *,char *));
  57. EXPORT void lr_sev P_((ps_t *,char *));
  58. /* The functions above allow the user to record four different kinds of       */
  59. /* messages and to specify exactly where in the listing each message is to    */
  60. /* appear.                                                                    */
  61.  
  62. EXPORT void lr_gen P_((p_wf_t,uword));
  63. /* Merges the global structure line_list with the message table stored by the */
  64. /* lister package and writes the resultant listing to the p_wf_t stream.      */
  65. /* The second parameter is the number of lines of context around each         */
  66. /* diagnostic. The lister does not write the entire input file out. It only   */
  67. /* writes input lines near a diagnostic. The context argument specifies the   */
  68. /* number of lines that should be written around each diagnostic.             */
  69. /* Note: A context of 100 is special and means that no lines should be        */
  70. /*       omitted in between diagnostics.                                      */
  71.  
  72. /******************************************************************************/
  73. /*                               End of LISTER.H                              */
  74. /******************************************************************************/
  75.  
  76.