# HG changeset patch
# User Robert Bradshaw <robertwb@math.washington.edu>
# Date 1284629032 25200
# Node ID 559d1f0400da45889dc0225d6ed372dd87d9fc95
# Parent e40729740c2bd551d2623bbdd177882345b2438f
Use bint not bool.
diff -r e40729740c2b -r 559d1f0400da sage/categories/morphism.pxd
a
|
b
|
|
7 | 7 | |
8 | 8 | cdef class SetMorphism(Morphism): |
9 | 9 | cdef object _function |
10 | | cpdef bool _eq_c_impl(left, Element right) |
| 10 | cpdef bint _eq_c_impl(left, Element right) |
diff -r e40729740c2b -r 559d1f0400da sage/categories/morphism.pyx
a
|
b
|
|
286 | 286 | self._function = _slots['_function'] |
287 | 287 | Map._update_slots(self, _slots) |
288 | 288 | |
289 | | cpdef bool _eq_c_impl(self, Element other): |
| 289 | cpdef bint _eq_c_impl(self, Element other): |
290 | 290 | """ |
291 | 291 | Equality test |
292 | 292 | |
diff -r e40729740c2b -r 559d1f0400da sage/graphs/base/c_graph.pyx
a
|
b
|
|
2466 | 2466 | cdef int direction |
2467 | 2467 | cdef list stack |
2468 | 2468 | cdef bitset_t seen |
2469 | | cdef bool test_out |
2470 | | cdef bool test_in |
| 2469 | cdef bint test_out |
| 2470 | cdef bint test_in |
2471 | 2471 | |
2472 | 2472 | def __init__(self, graph, v, direction=0, reverse=False, |
2473 | 2473 | ignore_direction=False): |
diff -r e40729740c2b -r 559d1f0400da sage/graphs/cliquer.pxd
a
|
b
|
|
8 | 8 | |
9 | 9 | |
10 | 10 | cdef extern from "cliquer/reorder.h": |
11 | | cdef int *reorder_by_greedy_coloring(graph_t *g, bool weighted) |
12 | | cdef int *reorder_by_degree(graph_t *g, bool weighted) |
| 11 | cdef int *reorder_by_greedy_coloring(graph_t *g, bint weighted) |
| 12 | cdef int *reorder_by_degree(graph_t *g, bint weighted) |
13 | 13 | |
14 | 14 | cdef extern from "cliquer/cliquer.h": |
15 | | bool clique_print_time(intlevel, int i, int n, int max, double cputime, double realtime, clique_options *opts) |
| 15 | bint clique_print_time(intlevel, int i, int n, int max, double cputime, double realtime, clique_options *opts) |
16 | 16 | |
17 | 17 | |
18 | 18 | cdef extern from "cliquer/cl.h": |
diff -r e40729740c2b -r 559d1f0400da sage/numerical/mip.pyx
a
|
b
|
|
1632 | 1632 | 5 x_2 +2 x_3 |
1633 | 1633 | """ |
1634 | 1634 | cdef dict d = deepcopy(self._f) |
1635 | | cdef bool first = True |
| 1635 | cdef bint first = True |
1636 | 1636 | t = "" |
1637 | 1637 | |
1638 | 1638 | if d.has_key(-1): |
diff -r e40729740c2b -r 559d1f0400da sage/numerical/mip_glpk.pyx
a
|
b
|
|
181 | 181 | |
182 | 182 | glp_write_lp(lp,NULL,filename) |
183 | 183 | |
184 | | cdef int build_glp_prob(c_glp_prob * lp, c_glp_iocp * iocp, LP, int log, bool names) except -1: |
| 184 | cdef int build_glp_prob(c_glp_prob * lp, c_glp_iocp * iocp, LP, int log, bint names) except -1: |
185 | 185 | """ |
186 | 186 | Builds the GLPK structure corresponding to the LP |
187 | 187 | |
diff -r e40729740c2b -r 559d1f0400da sage/numerical/osi_interface.pxd
a
|
b
|
|
10 | 10 | ctypedef struct c_CoinPackedMatrix "CoinPackedMatrix": |
11 | 11 | void setDimensions(int, int) |
12 | 12 | void appendRow(c_CoinPackedVector) |
13 | | c_CoinPackedMatrix *new_c_CoinPackedMatrix "new CoinPackedMatrix" (bool, double, double) |
| 13 | c_CoinPackedMatrix *new_c_CoinPackedMatrix "new CoinPackedMatrix" (bint, double, double) |
14 | 14 | void del_CoinPackedMatrix "delete" (c_CoinPackedMatrix *) |
15 | 15 | |
16 | 16 | cdef extern from "../../local/include/coin/CoinMessageHandler.hpp": |
… |
… |
|
86 | 86 | void del_OsiCbcSolverInterface "delete" (c_OsiCbcSolverInterface *) |
87 | 87 | |
88 | 88 | cdef class Osi_interface: |
89 | | cdef float osi_solve(self, LP, c_OsiSolverInterface * si,bool objective_only, bool is_cplex) except? -687654 |
| 89 | cdef float osi_solve(self, LP, c_OsiSolverInterface * si, bint objective_only, bint is_cplex) except? -687654 |
diff -r e40729740c2b -r 559d1f0400da sage/numerical/osi_interface.pyx
a
|
b
|
|
6 | 6 | cdef int INTEGER = 0 |
7 | 7 | |
8 | 8 | cdef class Osi_interface: |
9 | | cdef float osi_solve(self, LP, c_OsiSolverInterface * si,bool objective_only, bool is_cplex): |
| 9 | cdef float osi_solve(self, LP, c_OsiSolverInterface * si, bint objective_only, bint is_cplex): |
10 | 10 | from itertools import izip |
11 | 11 | n_cols = len(LP._variables_type); |
12 | 12 | |
diff -r e40729740c2b -r 559d1f0400da setup.py
a
|
b
|
|
120 | 120 | |
121 | 121 | for m in ext_modules: |
122 | 122 | m.libraries = ['csage'] + m.libraries + ['stdc++', 'ntl'] |
123 | | m.extra_compile_args += extra_compile_args |
| 123 | m.extra_compile_args += extra_compile_args # + ["-DCYTHON_REFNANNY"] |
124 | 124 | if os.environ.has_key('SAGE_DEBIAN'): |
125 | 125 | m.library_dirs += ['/usr/lib','/usr/lib/eclib','/usr/lib/singular','/usr/lib/R/lib','%s/lib' % SAGE_LOCAL] |
126 | 126 | else: |