diff --git a/msfontextract/makefile.mk b/msfontextract/makefile.mk index 9d0f13112f22..11616007ad12 100644 --- a/msfontextract/makefile.mk +++ b/msfontextract/makefile.mk @@ -2,9 +2,9 @@ # # $RCSfile: makefile.mk,v $ # -# $Revision: 1.1 $ +# $Revision: 1.2 $ # -# last change: $Author: mh $ $Date: 2004-04-08 13:49:55 $ +# last change: $Author: khendricks $ $Date: 2004-04-08 14:37:56 $ # # The Contents of this file are made available subject to the terms of # either of the following licenses @@ -64,6 +64,7 @@ PRJ=. PRJNAME=msfontextract TARGET=libmspack +NO_DEFAULT_STL=TRUE # --- Settings ----------------------------------------------------- diff --git a/msfontextract/msfontextract.patch b/msfontextract/msfontextract.patch index 1b635489223d..cc1aa7f3b3e2 100644 --- a/msfontextract/msfontextract.patch +++ b/msfontextract/msfontextract.patch @@ -1,5 +1,5 @@ -*** misc/libmspack/mspack/makefile.mk 2004-01-25 11:18:01.000000000 -0500 ---- misc/build/libmspack/mspack/makefile.mk 2004-01-25 11:15:16.000000000 -0500 +*** misc/libmspack/mspack/makefile.mk 2004-03-05 11:07:50.000000000 -0500 +--- misc/build/libmspack/mspack/makefile.mk 2004-03-05 11:07:32.000000000 -0500 *************** *** 1 **** ! dummy @@ -8,9 +8,9 @@ ! # ! # $RCSfile: msfontextract.patch,v $ ! # -! # $Revision: 1.1 $ +! # $Revision: 1.2 $ ! # -! # last change: $Author: mh $ $Date: 2004-04-08 13:49:56 $ +! # last change: $Author: khendricks $ $Date: 2004-04-08 14:37:56 $ ! # ! # The Contents of this file are made available subject to the terms of ! # either of the following licenses @@ -72,7 +72,7 @@ ! TARGET=msfontextract ! TARGETTYPE=CUI ! LIBTARGET=NO -! +! NO_DEFAULT_STL=TRUE ! # --- Settings ----------------------------------------------------- ! ! @@ -102,8 +102,8 @@ ! # --- Targets ------------------------------------------------------ ! ! .INCLUDE : target.mk -*** misc/libmspack/mspack/ministub.c 2004-01-25 11:18:01.000000000 -0500 ---- misc/build/libmspack/mspack/ministub.c 2004-01-25 11:15:16.000000000 -0500 +*** misc/libmspack/mspack/ministub.c 2004-03-05 11:07:50.000000000 -0500 +--- misc/build/libmspack/mspack/ministub.c 2004-03-05 11:06:11.000000000 -0500 *************** *** 1 **** ! dummy @@ -119,12 +119,12 @@ ! int qtmd_decompress() {return MSPACK_ERR_DECRUNCH;} ! void qtmd_free() {} ! -*** misc/libmspack/mspack/msfontextract.c 2004-01-25 11:18:01.000000000 -0500 ---- misc/build/libmspack/mspack/msfontextract.c 2004-01-25 11:17:42.000000000 -0500 +*** misc/libmspack/mspack/msfontextract.c 2004-03-05 11:07:50.000000000 -0500 +--- misc/build/libmspack/mspack/msfontextract.c 2004-03-05 11:06:11.000000000 -0500 *************** *** 1 **** ! dummy ---- 1,111 ---- +--- 1,107 ---- ! /* ! * Portions (almost all!) (C) 2003 Stuart Caie. ! * you can redistribute it and/or modify it under @@ -185,8 +185,6 @@ ! main(int argc, char** argv) ! { ! -! char * ef = NULL; -! char * dp = NULL; ! struct mscab_decompressor *cabd; ! struct mscabd_cabinet *cab; ! struct mscabd_file *file; @@ -195,7 +193,6 @@ ! ! /* argv[1] is the cabinet to extract */ ! /* argv[2] is the path to extract to */ -! ! if ((!(argv[1])) || (!(argv[2]))) { ! fprintf(stderr,"Usage: %s \n",argv[0]); ! return 1; @@ -214,14 +211,13 @@ ! } ! ! -! ! /* look for an embedded cabinet */ ! if ((cab = cabd->search(cabd, argv[1]))) { ! /* for all files in the cabinet */ ! for (file = cab->files; file; file = file->next) { ! if (!(ename = create_output_name(file->filename, argv[2]))) continue; ! if ((cabd->extract(cabd, file, ename))) { -! fprintf(stderr,"%s: extract error on \"%s\": %s\n", argv[1], +! fprintf(stderr,"%s: extract error on \"%s\": %s\n",argv[1], ! ename, error_msg(cabd->last_error(cabd))); ! exit(1); ! } @@ -230,9 +226,40 @@ ! cabd->close(cabd, cab); ! } ! else { -! fprintf(stderr, "%s: no embedded cabinet found\n", argv[1]); +! fprintf(stderr, "%s: no embedded cabinet found\n", argv[1] ); ! } ! mspack_destroy_cab_decompressor(cabd); ! return 0; ! } ! +*** misc/libmspack/mspack/mspack.h 2003-12-12 12:06:15.000000000 -0500 +--- misc/build/libmspack/mspack/mspack.h 2004-03-05 11:06:11.000000000 -0500 +*************** +*** 120,125 **** +--- 120,130 ---- + #include + #include + ++ /* MS Compiler defines size_t in stddef.h */ ++ #if defined(_MSC_VER) ++ #include ++ #endif ++ + /** + * System self-test function, to ensure both library and calling program + * can use one another. +*** misc/libmspack/mspack/system.h 2003-09-11 10:06:52.000000000 -0400 +--- misc/build/libmspack/mspack/system.h 2004-03-05 11:06:11.000000000 -0500 +*************** +*** 18,23 **** +--- 18,27 ---- + # define D(x) + #endif + ++ /* Brutal hack to make it compile with MS .NET Compiler that doesn't ++ know what inline means. */ ++ #define inline ++ + /* endian-neutral reading of little-endian data */ + #define __egi32(a,n) ( (((a)[n+3]) << 24) | (((a)[n+2]) << 16) | \ + (((a)[n+1]) << 8) | ((a)[n+0]) ) diff --git a/msfontextract/prj/build.lst b/msfontextract/prj/build.lst index 8967fe6edf70..99ca8744550f 100644 --- a/msfontextract/prj/build.lst +++ b/msfontextract/prj/build.lst @@ -1,2 +1,2 @@ -mf msfontextract : salhelper NULL +mf msfontextract : NULL mf msfontextract nmake - all mf_mkout NULL diff --git a/msfontextract/prj/d.lst b/msfontextract/prj/d.lst index 221e6d1b7d18..e312f1659df7 100644 --- a/msfontextract/prj/d.lst +++ b/msfontextract/prj/d.lst @@ -1 +1,4 @@ ..\%__SRC%\bin\msfontextract %_DEST%\bin%_EXT%\msfontextract + +..\%__SRC%\bin\msfontextract.exe %_DEST%\bin%_EXT%\msfontextract.exe +