From: Kevin Ryde <user42@zip.com.au>
To: guile-gtk@sources.redhat.com
Subject: build initcode
Date: Mon, 11 Aug 2003 00:35:00 -0000 [thread overview]
Message-ID: <878yq1116p.fsf@zip.com.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 555 bytes --]
I think a little initcode option would be good on functions, to allow
a bit of code to be inserted at the start.
* build-guile-gtk-1.2 (emit-funcs): Add "initcode" option to insert
code at the start of a function.
For instance,
(define-func gdk_pixbuf_render_threshold_alpha
none
((GdkPixbuf pixbuf)
(GdkWindow bitmap)
(int src_x)
(int src_y)
(int dest_x)
(int dest_y)
(int width)
(int height)
(int alpha_threshold))
(initcode "gdk_rgb_init()"))
And similarly for the main gdkrgb functions.
[-- Attachment #2: build-guile-gtk-1.2.initcode.diff --]
[-- Type: text/plain, Size: 431 bytes --]
--- build-guile-gtk-1.2.~1.21.~ 2003-08-11 10:31:21.000000000 +1000
+++ build-guile-gtk-1.2 2003-08-11 10:32:04.000000000 +1000
@@ -943,6 +943,11 @@
(if deprecated?
(@ " sgtk_issue_deprecation_warning (~s);~%" deprecated?))
+ ;; initializer code, if any
+ (let ((initcode (get-opt-val opts 'initcode #f)))
+ (if initcode
+ (@ " ~a;~%" initcode)))
+
(cond
(n-hack
(for-each (lambda (p)
next reply other threads:[~2003-08-11 0:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-08-11 0:35 Kevin Ryde [this message]
2003-08-28 0:44 ` gdk-pixbuf and gdk_rgb_init Kevin Ryde
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878yq1116p.fsf@zip.com.au \
--to=user42@zip.com.au \
--cc=guile-gtk@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).