This file is indexed.

/usr/include/qsopt_ex/format_mpf.h is in libqsopt-ex-dev 2.5.10.3-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/* WARNING! This file was autogenerated from template */
/****************************************************************************/
/*                                                                          */
/*  This file is part of QSopt_ex.                                          */
/*                                                                          */
/*  (c) Copyright 2006 by David Applegate, William Cook, Sanjeeb Dash,      */
/*  and Daniel Espinoza                                                     */
/*                                                                          */
/*  Sanjeeb Dash ownership of copyright in QSopt_ex is derived from his     */
/*  copyright in QSopt.                                                     */
/*                                                                          */
/*  This code may be used under the terms of the GNU General Public License */
/*  (Version 2.1 or later) as published by the Free Software Foundation.    */
/*                                                                          */
/*  Alternatively, use is granted for research purposes only.               */
/*                                                                          */
/*  It is your choice of which of these two licenses you are operating      */
/*  under.                                                                  */
/*                                                                          */
/*  We make no guarantees about the correctness or usefulness of this code. */
/*                                                                          */
/****************************************************************************/

/* RCSINFO $Id: format_mpf.h,v 1.3 2003/11/05 16:59:48 meven Exp $ */
#ifndef mpf_QS_FORMAT_ERROR_H
#define mpf_QS_FORMAT_ERROR_H

#include <stdio.h>

#include "qsopt_mpf.h"
#include "eg_io.h"

/****************************************************************************/
/*
   The LP/MPS readers, writers, 
       mpf_ILLrawlpdata_to_lpdata, and 
   use mpf_ILLformat_error to report problems with their input iff
       the line reader used in reading the problem  or 
       the  mpf_qserror_collector pointer passed to mpf_ILLwrite_lp_file
   is not NULL.

   The QSgui code uses this feature to collect mpf_qsformat_error instances 
   which it uses after reading is done to insert error messages into the 
   input window. 
*/
/****************************************************************************/

/* 
for error type USE: 
          QS_DATA_ERROR			
          QS_DATA_WARN			
          QS_MPS_FORMAT_ERROR		
          QS_MPS_FORMAT_WARN		
          QS_LP_FORMAT_ERROR		
          QS_LP_FORMAT_WARN		
          QS_LP_OBJ_WARN			
          QS_GENERIC_ERROR		
*/

typedef struct mpf_qsformat_error
{
	char *desc;
	char *theLine;
	struct mpf_qsformat_error *next;
	int type;
	int lineNumber;								/* 1 based line counting */
	int at;
}
mpf_qsformat_error;

extern int mpf_ILLformat_error_create (
	mpf_qsformat_error * error,
	int mode,
	const char *desc,
	int lineNum,
	const char *theLine,
	int atPos);
extern void mpf_ILLformat_error_delete (
	mpf_qsformat_error * error);

extern void mpf_ILLformat_error_print (
	EGioFile_t * out,
	mpf_qsformat_error * e);



/*****************************************************************************
 * collecting error messages 
 * either with defining own qsad_error_fct and corresponding data structure 
 * or by using predefined mpf_ILLadd_error_to_memory fct with mpf_qserror_memory
 */

typedef int (
	*mpf_qsadd_error_fct) (
	void *dest,
	const mpf_qsformat_error * error);

typedef struct mpf_qserror_collector
{
	mpf_qsadd_error_fct add_error;
	void *dest;
}
mpf_qserror_collector;

typedef struct mpf_qserror_memory
{
	unsigned int nerror;
	mpf_qsformat_error *error_list;
	char has_error[QS_INPUT_NERROR];
	char hasErrorLines;
}
mpf_qserror_memory;


extern mpf_qserror_collector *mpf_ILLerror_collector_new (
	mpf_qsadd_error_fct fct,
	void *dest);

mpf_qserror_collector *mpf_ILLerror_memory_collector_new (
	mpf_qserror_memory * dest);

extern void mpf_ILLerror_collector_free (
	mpf_qserror_collector * c);

#define mpf_ILLformat_error(collector, error)  \
	((collector)->add_error((collector)->dest, error))


extern int mpf_ILLadd_error_to_memory (
	void *dest,
	const mpf_qsformat_error * error);

extern mpf_qserror_memory *mpf_ILLerror_memory_create (
	int takeErrorLines);
extern void mpf_ILLerror_memory_free (
	mpf_qserror_memory * mem);

#endif