# HG changeset patch # User charles # Date 1255043472 -3600 # Node ID 0b4bc5c0868e1d179c8b939cc9dc477562900d1f # Parent 43c9f5f8b5c6c425d4b19117a6ec262870f1cd97 More SWIG pythonry diff --git a/direct/python/Makefile b/direct/python/Makefile --- a/direct/python/Makefile +++ b/direct/python/Makefile @@ -62,7 +62,14 @@ yaffs_wrap.c: yaffs.i yaffsfs_for_swig.h swig -python yaffs.i yaffsfs_for_swig.h: yaffsfs.h - cat yaffsfs.h | sed -e "s/YCHAR/char/g" | sed -e "s/YUCHAR/unsigned char/g" | sed -e "s/struct yaffs_stat/struct yaffs_stat_struct/g" > $@ + cat yaffsfs.h | \ + sed -e "s/YCHAR/char/g" | \ + sed -e "s/YUCHAR/unsigned char/g" | \ + sed -e "s/void \*/char \*/g" | \ + sed -e "s/loff_t/long long/g" | \ + sed -e "s/off_t/long/g" | \ + sed -e "s/struct yaffs_stat/struct yaffs_stat_struct/g" \ + > $@ $(ALLOBJS): %.o: %.c gcc -c $(CFLAGS) -I/usr/include/python2.6/ -o $@ $< diff --git a/direct/python/yaffs_swig_helper.c b/direct/python/yaffs_swig_helper.c --- a/direct/python/yaffs_swig_helper.c +++ b/direct/python/yaffs_swig_helper.c @@ -18,4 +18,6 @@ int yaffs_print_constants(void) printf( "O_WRONLY.......%d\n",O_WRONLY); printf( "O_RDWR.........%d\n",O_RDWR); printf( "O_TRUNC........%d\n",O_TRUNC); + + return 0; }