public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* ggi terminal for gnuplot
@ 2008-06-24 23:37 Peter Rosin
  2008-06-26 10:34 ` Peter Rosin
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Rosin @ 2008-06-24 23:37 UTC (permalink / raw)
  To: cygwin; +Cc: dr.volker.zell

[-- Attachment #1: Type: text/plain, Size: 659 bytes --]

Hi!

I noticed the following in the cygport file of gnuplot

	# This gives parse errors
	#  --with-ggi

and thought I'd have a look.

The cause is a type cleanup in libggi, and here's a patch to
make gnuplot follow.

Unfortunately the build is killed later by some tex config thing
that I don't have the energy to follow up on, so I have not
tested if this does anything useful other than fixing the first
ggi related build error. Since I don't know if there are more
problems later in the build I'm sending this anyway.

Another variant would be to build with GG_NEED_OLD_INTTYPES
defined, but I think the attached patch is a better approach.

Cheers,
Peter

[-- Attachment #2: ggi.patch --]
[-- Type: text/plain, Size: 1265 bytes --]

--- gnuplot-4.2.3/term/ggi.trm.old	2008-06-25 00:02:24.951334700 +0200
+++ gnuplot-4.2.3/term/ggi.trm	2008-06-25 00:02:42.826509600 +0200
@@ -116,9 +116,9 @@
 } GGI_vertex_t;
 
 TERM_PUBLIC long int GGI_SetTime(const struct timeval* current);
-TERM_PUBLIC int GGI_from_keysym __PROTO((uint32 keysym));
-TERM_PUBLIC int GGI_from_button __PROTO((uint32 button));
-TERM_PUBLIC int GGI_y __PROTO((sint32 y));
+TERM_PUBLIC int GGI_from_keysym __PROTO((uint32_t keysym));
+TERM_PUBLIC int GGI_from_button __PROTO((uint32_t button));
+TERM_PUBLIC int GGI_y __PROTO((int32_t y));
 TERM_PUBLIC int GGI_dispatch_event __PROTO((const ggi_event* event));
 TERM_PUBLIC int GGI_eventually_update_modifiers __PROTO((const ggi_event* event, const int add));
 TERM_PUBLIC int GGI_waitforinput __PROTO((void));
@@ -645,7 +645,7 @@
 
 /* translate ggi keysym to gnuplot keysym */
 TERM_PUBLIC int
-GGI_from_keysym(uint32 keysym)
+GGI_from_keysym(uint32_t keysym)
 {
     switch (keysym) {
 	case GIIUC_BackSpace:
@@ -811,7 +811,7 @@
 }
 
 TERM_PUBLIC int
-GGI_from_button(uint32 button)
+GGI_from_button(uint32_t button)
 {
     switch (button) {
     case GII_PBUTTON_LEFT:
@@ -827,7 +827,7 @@
 }
 
 TERM_PUBLIC int
-GGI_y(sint32 y)
+GGI_y(int32_t y)
 {
     return GGIymax - y;
 }


[-- Attachment #3: Type: text/plain, Size: 218 bytes --]

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-08-20 14:19 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-24 23:37 ggi terminal for gnuplot Peter Rosin
2008-06-26 10:34 ` Peter Rosin
2008-06-27  7:58   ` Peter Rosin
2008-08-18  1:44     ` Peter Rosin
2008-08-20 15:14       ` Dr. Volker Zell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).