Ignore:
Timestamp:
08/31/12 10:47:36 (13 years ago)
Author:
Mathieu Morlighem
Message:

CHG: preparing mex module conversion to python

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/modules/Scotch/Scotch.h

    r13213 r13214  
    55#ifndef _SCOTCH_H
    66#define _SCOTCH_H
    7 
    8 #ifdef HAVE_CONFIG_H
    9         #include <config.h>
    10 #else
    11         #error "Cannot compile with HAVE_CONFIG_H symbol! run configure first!"
    12 #endif
    13 
    14 /*For python modules: needs to come before header files inclusion*/
    15 #ifdef _HAVE_PYTHON_
    16 #define PY_ARRAY_UNIQUE_SYMBOL PythonIOSymbol
    17 #endif
    187
    198/* local prototypes: */
     
    3524/*  Scotch structures and prototypes  */
    3625#ifdef MATLAB
    37                 #include "mat.h"
    38                 #include "mex.h"
    39                 #include "matrix.h"
     26#include "mat.h"
     27#include "mex.h"
     28#include "matrix.h"
    4029
    41                 #define printf mexPrintf
    42                 #define fprintf(file,...) (file == stdout || file == stderr ? mexPrintf(__VA_ARGS__) : fprintf(file,__VA_ARGS__))
    43                 #define malloc mxMalloc
    44                 #define calloc mxCalloc
    45                 #define realloc mxRealloc
    46                 #define free mxFree
    47                 #define exit(status) mexErrMsgTxt("exit=" #status)
     30#define printf mexPrintf
     31#define fprintf(file,...) (file == stdout || file == stderr ? mexPrintf(__VA_ARGS__) : fprintf(file,__VA_ARGS__))
     32#define malloc mxMalloc
     33#define calloc mxCalloc
     34#define realloc mxRealloc
     35#define free mxFree
     36#define exit(status) mexErrMsgTxt("exit=" #status)
    4837#endif
    4938
    50 
    5139#endif  /* _SCOTCH_H */
Note: See TracChangeset for help on using the changeset viewer.