Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added missing includes for database.hpp See issue 39 #40

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bindings/py_module.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#define PY_SSIZE_T_CLEAN

#include "Python.h"
#include "python_bindings.hpp"

Expand Down
4 changes: 2 additions & 2 deletions bindings/py_ropium.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static void ROPium_dealloc(PyObject* self){

static PyObject* ROPium_load(PyObject* self, PyObject* args){
const char* filename;
int filename_len;
Py_ssize_t filename_len;
int filenum = 0;
stringstream ss;
string gadget_file;
Expand Down Expand Up @@ -70,7 +70,7 @@ static PyObject* ROPium_load(PyObject* self, PyObject* args){

static PyObject* ROPium_compile(PyObject* self, PyObject* args){
const char* query;
int query_len;
Py_ssize_t query_len;
ROPChain* ropchain;

if( ! PyArg_ParseTuple(args, "s#", &query, &query_len) ){
Expand Down
1 change: 1 addition & 0 deletions bindings/python_bindings.hpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#ifndef PYTHON_BINDINGS_INCLUDE_H
#define PYTHON_BINDINGS_INCLUDE_H
#define PY_SSIZE_T_CLEAN

#include "Python.h"
#include "structmember.h"
Expand Down
1 change: 1 addition & 0 deletions libropium/include/database.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

#include <iostream>
#include <tuple>
#include <array>
#include <unordered_map>
#include "utils.hpp"
#include "expression.hpp"
Expand Down