Re: Official .defs files



> 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]