1
0
mirror of https://github.com/arsenetar/dupeguru.git synced 2025-03-10 05:34:36 +00:00

Removed "inline" directive from C modules (doesn't work in VC).

This commit is contained in:
Virgil Dupras 2010-01-31 11:33:26 +01:00
parent 348b039fa3
commit 967aeecf5b
2 changed files with 6 additions and 6 deletions

View File

@ -15,13 +15,13 @@ static PyObject *NoBlocksError;
/* avgdiff/maxdiff has been called with 2 block lists of different size. */
static PyObject *DifferentBlockCountError;
static inline int
static int
max(int a, int b)
{
return b > a ? b : a;
}
static inline int
static int
min(int a, int b)
{
return b < a ? b : a;
@ -100,7 +100,7 @@ getblock(PyObject *image)
/* Returns the difference between the first block and the second.
* It returns an absolute sum of the 3 differences (RGB).
*/
static inline int
static int
diff(PyObject *first, PyObject *second)
{
Py_ssize_t r1, g1, b1, r2, b2, g2;

View File

@ -10,19 +10,19 @@
#define PY_SSIZE_T_CLEAN
#include "Python.h"
static inline int
static int
max(int a, int b)
{
return b > a ? b : a;
}
static inline int
static int
min(int a, int b)
{
return b < a ? b : a;
}
static inline PyObject*
static PyObject*
getblock(PyObject *image)
{
int width, height, pixel_count, red, green, blue, bytes_per_line;