help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] Import GDK Key Symbols


From: Holger Hans Peter Freyther
Subject: Re: [Help-smalltalk] Import GDK Key Symbols
Date: Sat, 24 Aug 2013 09:36:52 +0200
User-agent: Mutt/1.5.21 (2010-09-15)

On Sat, Aug 24, 2013 at 07:47:44AM +0200, Holger Hans Peter Freyther wrote:

> but luckily these appear to be all defines so we can generate code
> like this?
> 
> #ifdef GDK_TouchpadToggle
> .... code
> #endif

I wrote this piece of awk:

+function print_numeric_define(c_name)
+{
+  selector = smalltalkize(tolower(c_name))
+  return "#ifdef " c_name "\n  printf(\"\\n" selector " ^%d!\", (int) " c_name 
");\n#endif"
+}
+

and will commit a patch for this over the weekend (unless there are
objections to it).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]