IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 3145 for trunk/psLib/swig


Ignore:
Timestamp:
Feb 7, 2005, 1:26:25 PM (21 years ago)
Author:
desonia
Message:

* empty log message *

Location:
trunk/psLib/swig
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/swig/Makefile.am

    r3132 r3145  
    55        rm -rf psLibModule
    66
    7 INCLUDES = -I$(top_srcdir)/src \
    8         -I$(top_srcdir)/src/astronomy \
    9         -I$(top_srcdir)/src/collections \
    10         -I$(top_srcdir)/src/dataManip \
    11         -I$(top_srcdir)/src/fileUtils \
    12         -I$(top_srcdir)/src/image \
    13         -I$(top_srcdir)/src/sysUtils
     7SRCDIR = $(shell cd $(top_srcdir) && pwd)
     8INCLUDES = -I$(SRCDIR)/src \
     9        -I$(SRCDIR)/src/astronomy \
     10        -I$(SRCDIR)/src/collections \
     11        -I$(SRCDIR)/src/dataManip \
     12        -I$(SRCDIR)/src/fileUtils \
     13        -I$(SRCDIR)/src/image \
     14        -I$(SRCDIR)/src/sysUtils
    1415
    1516####################################################
     
    2526        echo "includes=$(INCLUDES)" > psLibModule/setup.txt
    2627        echo "ldflags=-L$(top_builddir)/src $(PSLIB_LIBS)" >> psLibModule/setup.txt
    27         echo "cflags=$(PSLIB_CFLAGS) -Wno-unused -Wno-strict-aliasing" >> psLibModule/setup.txt
     28        echo "cflags=$(CFLAGS) -std=c99 -Wno-unused -Wno-strict-aliasing" >> psLibModule/setup.txt
    2829
    2930psLibModule/pslib_wrap.c: psLibModule pslib.i
  • trunk/psLib/swig/pslib.i

    r3124 r3145  
    55#define SWIG
    66#include "pslib.h"
     7
     8/* SWIG uses malloc/free - make it use the pslib memory functions instead. */
     9/*
     10#define malloc(S)    psAlloc(S)
     11#define realloc(P,S) psRealloc(P,S)
     12#define free(P)      psFree(P)
     13*/
     14
    715%}
     16
     17/* grab the typedefs used throughout psLib, e.g. psU8, psU16,... */
     18%import "psType.h"
     19%import "psMemory.h"
    820
    921%include "cpointer.i"
Note: See TracChangeset for help on using the changeset viewer.