[gs-cvs] gs/src

Stefan Kemper stefan at ghostscript.com
Mon Jul 11 15:08:32 PDT 2005


Update of /cvs/ghostscript/gs/src
In directory casper2:/tmp/cvs-serv20510

Modified Files:
	gdevpxut.c 
Log Message:
Fix MSVC compile error

DETAILS:

MSVC prevents dynamic structure initialization 
gcc is more liberal.

Final code is simpler using a function call.


Index: gdevpxut.c
===================================================================
RCS file: /cvs/ghostscript/gs/src/gdevpxut.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- gdevpxut.c	7 Jul 2005 16:44:17 -0000	1.7
+++ gdevpxut.c	11 Jul 2005 22:08:30 -0000	1.8
@@ -118,12 +118,7 @@
 
     if (media_source != NULL)
 	tray = *media_source;
-    {
-	byte page_header_2[] = {
-	    DUB(tray), DA(pxaMediaSource)
-	};
-	PX_PUT_LIT(s, page_header_2);
-    }
+    px_put_uba(s, tray, pxaMediaSource);
     if (pms)
 	*pms = size;
 



More information about the gs-cvs mailing list