Skip to content
Browse files

Updated to 0.3 from Stephen Nestinger

  • Loading branch information...
1 parent 961d2e4 commit a88ac72404ca212cfa2dee91a60109a73a26fafc anderson committed Feb 11, 2006
View
2 ch/c/Makefile.win
@@ -12,7 +12,7 @@ OBJ = obj
IFLAGS = -I ../../src
# If libgif or libpng is not available, remove it from the following line
-LFLAGS = ../../win32/release/libming.lib ../../zlib/zlib.lib ../../libpng/libpng.lib ../../libgif/libgif.lib
+LFLAGS = ../../win32/release/libming.lib ../../zlib/zlib.lib ../../libpng/libpng.lib #../../libgif/libgif.lib
CFLAGS = /MD /nologo
View
6 ch/c/handmade/SWFMovie_output_chdl.c
@@ -10,7 +10,7 @@ EXPORTCH int SWFMovie_output_chdl(void *varg) {
SWFMovie movie;
SWFByteOutputMethod method;
void *data;
- int level;
+ // int level;
int retval;
Ch_VaStart(interp, ap, varg);
@@ -22,8 +22,8 @@ EXPORTCH int SWFMovie_output_chdl(void *varg) {
method = (SWFByteOutputMethod)fileOutputMethod_funarg;
}
data = Ch_VaArg(interp, ap, void *);
- level = Ch_VaArg(interp, ap, int);
- retval = SWFMovie_output(movie, method, data, level);
+ /* level = Ch_VaArg(interp, ap, int); */
+ retval = SWFMovie_output(movie, method, data); //, level);
Ch_VaEnd(interp, ap);
return retval;
}
View
5 ch/chfhandmade/SWFMovie_output.chf
@@ -1,4 +1,5 @@
-int SWFMovie_output(SWFMovie movie, SWFByteOutputMethod method, void *data, int level) {
+int SWFMovie_output(SWFMovie movie, SWFByteOutputMethod method, void *data){
+ //, int level) {
void *fptr;
int retval;
@@ -7,6 +8,6 @@ int SWFMovie_output(SWFMovie movie, SWFByteOutputMethod method, void *data, int
fprintf(_stderr, "Error: %s(): dlsym(): %s\n", __func__, dlerror());
return -1;
}
- dlrunfun(fptr, &retval, SWFMovie_output, movie, method, data, level);
+ dlrunfun(fptr, &retval, SWFMovie_output, movie, method, data); //, level);
return retval;
}
View
2 ch/demos/action.c
@@ -55,6 +55,6 @@ int main(int argc, char *argv[])
SWFMovie_add(movie, (SWFBlock)compileSWFActionCode("gotoFrame(1); play();"));
SWFMovie_nextFrame(movie);
- SWFMovie_save(movie, "action.swf", 0);
+ SWFMovie_save(movie, "action.swf");
return 0;
}
View
2 ch/demos/button.c
@@ -43,7 +43,7 @@ int main(int argc, char *argv[])
timeline= SWFMovie_add(movie,(SWFBlock) b);
SWFDisplayItem_moveTo(timeline,160.00, 120.00);
SWFMovie_nextFrame(movie);
- SWFMovie_save(movie, "button.swf", 0);
+ SWFMovie_save(movie, "button.swf");
return 0;
}
View
2 ch/demos/cxform.c
@@ -58,7 +58,7 @@ int main(int argc, char *argv[])
SWFMovie_nextFrame(m);
}
- SWFMovie_save(m, "cxform.swf", 0);
+ SWFMovie_save(m, "cxform.swf");
fclose(file_bitmap); /* Do not close earlier or an error will happen */
return 0;
View
2 ch/demos/drag.c
@@ -47,7 +47,7 @@ int main(int argc, char *argv[])
SWFDisplayItem_moveTo(timeline, 160,120);
SWFMovie_nextFrame(movie);
- SWFMovie_save(movie, "drag.swf", 0);
+ SWFMovie_save(movie, "drag.swf");
return 0;
}
View
2 ch/demos/gradient.c
@@ -56,7 +56,7 @@ int main(int argc, char *argv[])
SWFMovie_nextFrame(movie);
- SWFMovie_save(movie, "gradient.swf", 0);
+ SWFMovie_save(movie, "gradient.swf");
return 0;
}
View
2 ch/demos/gradientxform.c
@@ -73,7 +73,7 @@ int main(int argc, char *argv[])
SWFMovie_nextFrame(movie);
}
- SWFMovie_save(movie, "gradientxform.swf", 0);
+ SWFMovie_save(movie, "gradientxform.swf");
return 0;
}
View
2 ch/demos/jpegfill.c
@@ -34,7 +34,7 @@ int main(int argc, char *argv[])
SWFMovie_add(m, (SWFBlock) shape);
- SWFMovie_save(m, "jpegfill.swf", 0);
+ SWFMovie_save(m, "jpegfill.swf");
fclose(file_bitmap); /* Do not close earlier or an error will happen */
return 0;
View
2 ch/demos/png.c
@@ -35,7 +35,7 @@ int main(int argc, char *argv[])
timeline= SWFMovie_add(movie, (SWFBlock) shape);
SWFDisplayItem_moveTo(timeline, 0.00, 0.00);
SWFMovie_nextFrame(movie);
- SWFMovie_save(movie, "png.swf", 0);
+ SWFMovie_save(movie, "png.swf");
fclose(file_bitmap);
return 0;
View
14 ch/pkgcreate.ch
@@ -1,5 +1,5 @@
#!/bin/ch
-/* For creating Ch Ming 1.0, May 2, 2005
+/* For creating Ch Ming 1.0, Feb 10, 2006
this script does the following:
+ Copies headers from <MING_HOME>/src/include to ./chming/include subfolder
@@ -51,6 +51,7 @@ if ((info.vermajor*100+ info.verminor*10 + info.vermicro) < 501) {
exit(-1);
}
+
echo Cleaning up existing directories and create new ones ...
if (!access(pkgname, F_OK))
rm -rf $pkgname
@@ -59,9 +60,12 @@ if (!access(pkgname, F_OK))
echo create $pkgname directories
mkdir $pkgname
mkdir $pkgname/dl $pkgname/lib $pkgname/include $pkgname/demos $pkgname/bin
+if(access("chfcreate", R_OK)) {
+ mkdir chfcreate
+}
echo Copying header files ...
-cp -f ../src/ming.h $pkgname/include
+cp -f ../src/ming.h $pkgname/include
cp -f ../src/ming_config.h $pkgname/include
// if the original package doesn't have the modiciation for Ch
@@ -80,9 +84,11 @@ if(`grep LOAD_CHDL $pkgname/include/ming.h` == NULL)
}
echo Copying demo programs ...
-cp -fr demos/* $pkgname/demos
-cp -f ../src/test.c $pkgname/demos
+cp -fr demos/* $pkgname/demos
chmod 755 $pkgname/demos/*.c*
+if(!access(stradd(pkgname, "/demos/CVS"), R_OK)) {
+ rm -rf $pkgname/demos/CVS
+}
//echo copying DLLs ...
#if defined(_WIN32_)
View
4 ch/readme.txt
@@ -18,7 +18,9 @@ System Requirements
Ch is available from http://www.softintegration.com.
(2) It has been tested and works with Ming version 0.3 beta 1 or above.
It might work with lower version without guarantee. For Windows, the
- release version of the Ming library must be built.
+ release version of the Ming library must be built. For Unix, either
+ static or shared versions of the Ming library can be used. With
+ shared, the library must be installed.
(3) the dependant ZLIB binary library for Ming is required
(4) the dependant GIF binary library for Ming is optional
(5) the dependant PNG binary library for Ming is optional

0 comments on commit a88ac72

Please sign in to comment.
Something went wrong with that request. Please try again.