Skip to content

Commit

Permalink
fix Cython complaints (#247)
Browse files Browse the repository at this point in the history
* fix Cython complaints

* trigger tests again
  • Loading branch information
malb authored Aug 4, 2023
1 parent d5053da commit 85be3c9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/fpylll/fplll/enumeration.pyx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
include "fpylll/config.pxi"


from cython.operator cimport dereference as deref, preincrement as inc

from libcpp.vector cimport vector
Expand Down
4 changes: 2 additions & 2 deletions src/fpylll/fplll/enumeration_callback_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
#include <Python.h>
#include <fplll/fplll.h>

extern "C" {
//extern "C" {
bool evaluator_callback_call_obj(PyObject *obj, int n, double *new_sol_coord);
}
//}

class PyCallbackEvaluatorWrapper {
public:
Expand Down
16 changes: 8 additions & 8 deletions src/fpylll/fplll/fplll.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -844,7 +844,7 @@ cdef extern from "fplll/bkz_param.h" namespace "fplll":

string dump_gso_filename

vector[Strategy] load_strategies_json(const string &filename) nogil except+
vector[Strategy] load_strategies_json(const string &filename) except + nogil
const string default_strategy_path() nogil
const string default_strategy() nogil
const string strategy_full_path(const string &strategy_path) nogil
Expand All @@ -859,19 +859,19 @@ cdef extern from "fplll/bkz.h" namespace "fplll":
int svp_preprocessing(int kappa, int block_size, const BKZParam &param) nogil
int svp_postprocessing(int kappa, int block_size, const vector[FT] &solution) nogil

int svp_reduction(int kappa, int block_size, const BKZParam &param, int dual) nogil except +
int svp_reduction(int kappa, int block_size, const BKZParam &param, int dual) except + nogil

int tour(const int loop, int &kappa_max, const BKZParam &param, int min_row, int max_row) nogil except +
int sd_tour(const int loop, const BKZParam &param, int min_row, int max_row) nogil except +
int slide_tour(const int loop, const BKZParam &param, int min_row, int max_row) nogil except +
int tour(const int loop, int &kappa_max, const BKZParam &param, int min_row, int max_row) except + nogil
int sd_tour(const int loop, const BKZParam &param, int min_row, int max_row) except + nogil
int slide_tour(const int loop, const BKZParam &param, int min_row, int max_row) except + nogil

int hkz(int &kappaMax, const BKZParam &param, int min_row, int max_row) nogil except +
int hkz(int &kappaMax, const BKZParam &param, int min_row, int max_row) except + nogil

int bkz()

void rerandomize_block(int min_row, int max_row, int density) nogil except +
void rerandomize_block(int min_row, int max_row, int density) except + nogil

void dump_gso(const string filename, const string prefix, int append) nogil except +
void dump_gso(const string filename, const string prefix, int append) except + nogil

int status

Expand Down

0 comments on commit 85be3c9

Please sign in to comment.