Re: Official .defs files
- From: Ariel Rios <ariel linuxppc org>
- To: James Henstridge <james daa com au>
- Cc: Karl Nelson <kenelson ece ucdavis edu>, language-bindings gnome org, kenelson boom ece ucdavis edu
- Subject: Re: Official .defs files
- Date: Sat, 12 May 2001 23:33:55 -0400 (EDT)
> They are in the spec.
This is my proposal for enums. Basically it just follows
my previous suggestions and changes the 'value' fields by
removing the (nick) and (c-name) expressions.
(define-enum enum-name
(in-module modname)
(c-name name-in-c)
(value nick value-c-name))
Ex:
(define-enum DirectionType
(in-module "Gtk")
(c-name "GtkDirectionType")
(value "tab-forward" "GTK_DIR_TAB_FORWARD")
(value "tab-backward" "GTK_DIR_TAB_BACKWARD")
(value "up" "GTK_DIR_UP")
(value "down" "GTK_DIR_DOWN")
(value "left" "GTK_DIR_LEFT")
(value "right" "GTK_DIR_RIGHT"))
ariel
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]