From: Andreas Schwab <schwab@suse.de>
Cc: emacs-devel@gnu.org
Subject: Re: [PATCH] Delayed loading of image libraries
Date: Wed, 30 Jun 2004 12:15:29 +0200 [thread overview]
Message-ID: <jed63hbbcu.fsf@sykes.suse.de> (raw)
In-Reply-To: <20040610133420.CAC7.JMBARRANQUERO@wke.es> (Juanma Barranquero's message of "Thu, 10 Jun 2004 14:38:46 +0200")
Juanma Barranquero <jmbarranquero@wke.es> writes:
> +DEFUN ("init-image-library", Finit_image_library, Sinit_image_library, 2, 2, 0,
> + doc: /* Initialize image library implementing image type TYPE.
> +Return non-nil if TYPE is a supported image type.
> +
> +Image types pbm and xbm are prebuilt; other types are loaded here.
> +Libraries to load are specified in alist LIBRARIES (usually, the value
> +of `image-library-alist', which see. */)
> + (type, libraries)
> +{
> + Lisp_Object tested;
> +
> + /* Don't try to reload the library. */
> + tested = Fassq (type, Vimage_type_cache);
> + if (CONSP (tested))
> + return XCDR (tested);
> +
> +#if defined (HAVE_XPM) || defined (MAC_OS)
> + if (EQ (type, Qxpm))
> + return CHECK_LIB_AVAILABLE(&xpm_type, init_xpm_functions);
> +#endif
Please make libraries an explicit parameter of CHECK_LIB_AVAILABLE, so
that it does not look like it is completely ignored. Also, you are
missing to declare the parameters. Please always compile with -Wall.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux AG, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
next prev parent reply other threads:[~2004-06-30 10:15 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-10 12:38 [PATCH] Delayed loading of image libraries Juanma Barranquero
2004-06-30 10:15 ` Andreas Schwab [this message]
2004-06-30 11:13 ` Juanma Barranquero
2004-06-30 11:24 ` Andreas Schwab
2004-06-30 11:34 ` Juanma Barranquero
2004-06-30 11:41 ` Andreas Schwab
2004-06-30 13:00 ` Juanma Barranquero
2004-06-30 15:42 ` Miles Bader
2004-07-01 9:30 ` Juanma Barranquero
2004-07-01 9:48 ` Miles Bader
2004-07-01 10:13 ` Juanma Barranquero
2004-07-02 1:16 ` Miles Bader
2004-07-02 7:02 ` Juanma Barranquero
2004-07-02 7:10 ` David Kastrup
2004-07-02 7:41 ` Juanma Barranquero
2004-07-02 7:56 ` Miles Bader
2004-07-02 8:10 ` Juanma Barranquero
2004-07-02 8:20 ` Miles Bader
2004-07-02 8:45 ` Juanma Barranquero
2004-07-02 8:59 ` Miles Bader
2004-07-02 9:02 ` Miles Bader
2004-07-02 8:11 ` David Kastrup
2004-07-02 8:34 ` Juanma Barranquero
2004-07-03 18:21 ` Richard Stallman
2004-06-30 14:19 ` Stefan
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jed63hbbcu.fsf@sykes.suse.de \
--to=schwab@suse.de \
--cc=emacs-devel@gnu.org \
/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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).