Skip to content

Commit 767848e

Browse files
committed
WIP: Expose less
1 parent 24c4436 commit 767848e

File tree

6 files changed

+20
-93
lines changed

6 files changed

+20
-93
lines changed

Makefile.am

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ libqsopt_ex_la_CFLAGS = \
192192
libqsopt_ex_la_LDFLAGS = \
193193
-no-undefined \
194194
-version-info $(LT_VERSION_INFO) \
195+
-export-symbols-regex "(QS|dbl_QS|mpq_QS|mpf_QS|EGio|mpq_ILL_MAXDOUBLE|mpq_ILL_MINDOUBLE)" \
195196
$(AM_LDFLAGS)
196197
libqsopt_ex_la_LIBADD = $(GMP_LIBS)
197198

@@ -212,11 +213,18 @@ tests_test_qs_SOURCES = tests/test_qs.c
212213
tests_test_qs_CFLAGS = $(AM_CFLAGS) $(GMP_CFLAGS)
213214
tests_test_qs_LDADD = $(GMP_LIBS) libqsopt_ex.la
214215

215-
tests_eg_sloan_SOURCES = tests/eg_sloan.c tests/eg_sloan.h
216+
tests_eg_sloan_SOURCES = \
217+
tests/eg_sloan.c tests/eg_sloan.h \
218+
qsopt_ex/eg_exutil.c \
219+
qsopt_ex/eg_lpnum.c \
220+
qsopt_ex/eg_memslab.c
216221
tests_eg_sloan_CFLAGS = $(AM_CFLAGS) $(GMP_CFLAGS)
217222
tests_eg_sloan_LDADD = $(GMP_LIBS) libqsopt_ex.la
218223

219-
esolver_esolver_SOURCES = esolver/esolver.c
224+
esolver_esolver_SOURCES = \
225+
esolver/esolver.c \
226+
qsopt_ex/bgetopt.c \
227+
qsopt_ex/zeit.c
220228
esolver_esolver_CFLAGS = $(AM_CFLAGS) $(GMP_CFLAGS)
221229
esolver_esolver_LDADD = $(GMP_LIBS) libqsopt_ex.la
222230

esolver/esolver.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@
3131

3232
#include "QSopt_ex.h"
3333

34+
#include "bgetopt.h"
3435
#include "except.h"
3536
#include "logging-private.h"
36-
#include "qs_config.h"
37+
#include "zeit.h"
3738

3839
/* ========================================================================= */
3940
/** @name static parameters for the main program */

qsopt_ex/QSopt_ex.h

Lines changed: 2 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -21,94 +21,11 @@
2121
#ifndef QSOPT_EX_H
2222
#define QSOPT_EX_H
2323

24-
#include "eg_elist.h"
25-
#include "eg_io.h"
26-
#include "eg_lpnum.h"
27-
#include "eg_macros.h"
28-
#include "eg_mem.h"
29-
#include "eg_memslab.h"
30-
31-
#include "eg_lpnum.dbl.h"
32-
#include "eg_lpnum.mpf.h"
33-
#include "eg_lpnum.mpq.h"
34-
35-
#include "basicdefs.h"
36-
#include "urandom.h"
37-
#include "symtab.h"
38-
#include "reporter.h"
39-
#include "bgetopt.h"
40-
#include "zeit.h"
24+
#include "exact.h"
4125
#include "logging.h"
42-
43-
#include "QSopt_ex_version.h"
44-
45-
/* Double template headers */
46-
#include "qstruct_dbl.h"
47-
#include "editor_dbl.h"
48-
#include "dstruct_dbl.h"
49-
#include "factor_dbl.h"
50-
#include "lpdefs_dbl.h"
51-
#include "readline_dbl.h"
52-
#include "lpdata_dbl.h"
53-
#include "basis_dbl.h"
54-
#include "dheaps_i_dbl.h"
5526
#include "qsopt_dbl.h"
56-
#include "format_dbl.h"
57-
#include "price_dbl.h"
58-
#include "priority_dbl.h"
59-
#include "ratio_dbl.h"
60-
#include "read_lp_dbl.h"
61-
#include "read_mps_dbl.h"
62-
#include "simplex_dbl.h"
63-
#include "write_lp_dbl.h"
64-
#include "lib_dbl.h"
65-
#include "eg_numutil_dbl.h"
66-
67-
/* MPQ template headers */
68-
#include "qstruct_mpq.h"
69-
#include "editor_mpq.h"
70-
#include "dstruct_mpq.h"
71-
#include "factor_mpq.h"
72-
#include "lpdefs_mpq.h"
73-
#include "readline_mpq.h"
74-
#include "lpdata_mpq.h"
75-
#include "basis_mpq.h"
76-
#include "dheaps_i_mpq.h"
7727
#include "qsopt_mpq.h"
78-
#include "format_mpq.h"
79-
#include "price_mpq.h"
80-
#include "priority_mpq.h"
81-
#include "ratio_mpq.h"
82-
#include "read_lp_mpq.h"
83-
#include "read_mps_mpq.h"
84-
#include "simplex_mpq.h"
85-
#include "write_lp_mpq.h"
86-
#include "lib_mpq.h"
87-
#include "eg_numutil_mpq.h"
88-
89-
/* MPF template headers */
90-
#include "qstruct_mpf.h"
91-
#include "editor_mpf.h"
92-
#include "dstruct_mpf.h"
93-
#include "factor_mpf.h"
94-
#include "lpdefs_mpf.h"
95-
#include "readline_mpf.h"
96-
#include "lpdata_mpf.h"
97-
#include "basis_mpf.h"
98-
#include "dheaps_i_mpf.h"
9928
#include "qsopt_mpf.h"
100-
#include "format_mpf.h"
101-
#include "price_mpf.h"
102-
#include "priority_mpf.h"
103-
#include "ratio_mpf.h"
104-
#include "read_lp_mpf.h"
105-
#include "read_mps_mpf.h"
106-
#include "simplex_mpf.h"
107-
#include "write_lp_mpf.h"
108-
#include "lib_mpf.h"
109-
#include "eg_numutil_mpf.h"
110-
111-
#include "exact.h"
112-
#include "eg_exutil.h"
29+
#include "QSopt_ex_version.h"
11330

11431
#endif /* !QSOPT_EX_H */

qsopt_ex/bgetopt.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,9 @@
5858
#include <stdio.h>
5959
#include <stdlib.h>
6060

61+
#include "bgetopt.h"
6162
#include "logging-private.h"
6263

63-
#include "util.h"
64-
6564

6665
int ILLutil_bix_getopt (
6766
int ac,

qsopt_ex/util.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ double ILLutil_our_floor (
146146
double *v,
147147
int len);
148148

149-
#include "bgetopt.h"
150149
/*#include "dheaps_i.h"*/
151150
/*#include "priority.h"*/
152151
#endif /* ILL_UTIL_H */

tests/eg_sloan.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@
77
#include <stdio.h>
88
#include <unistd.h>
99

10-
#include "qs_config.h"
10+
#include "QSopt_ex.h"
11+
12+
#include "eg_exutil.h"
13+
#include "eg_lpnum.mpq.h"
1114
#include "logging-private.h"
15+
#include "qs_config.h"
1216

13-
#include "QSopt_ex.h"
1417
/* ========================================================================= */
1518
/** @name Static Variables
1619
* Set of static variables for this program. */

0 commit comments

Comments
 (0)