[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).
- [Help-smalltalk] Import GDK Key Symbols, Gwenaël Casaccio, 2013/08/15
- [Help-smalltalk] Import GDK Key Symbols, Gwenaël Casaccio, 2013/08/15
- Re: [Help-smalltalk] Import GDK Key Symbols, Holger Hans Peter Freyther, 2013/08/16
- Re: [Help-smalltalk] Import GDK Key Symbols, Holger Hans Peter Freyther, 2013/08/18
- Re: [Help-smalltalk] Import GDK Key Symbols, Gwenaël Casaccio, 2013/08/18
- Re: [Help-smalltalk] Import GDK Key Symbols, Gwenaël Casaccio, 2013/08/18
- Re: [Help-smalltalk] Import GDK Key Symbols, Holger Hans Peter Freyther, 2013/08/18
- Re: [Help-smalltalk] Import GDK Key Symbols, Gwenaël Casaccio, 2013/08/18
- Re: [Help-smalltalk] Import GDK Key Symbols, Holger Hans Peter Freyther, 2013/08/24
- Re: [Help-smalltalk] Import GDK Key Symbols,
Holger Hans Peter Freyther <=