From: Vladimir Testov <vladimir.testov@rosalab.ru>
To: grub-devel@gnu.org
Subject: [PATCH] [9/11] [gfxmenu/list] minmax functions (taken from GRUB2 source code)
Date: Thu, 11 Apr 2013 15:38:10 +0400 [thread overview]
Message-ID: <1915075.qEp6UshPKv@icedphoenix> (raw)
[-- Attachment #1: Type: text/plain, Size: 266 bytes --]
functions currently included in grub2 source code.
(grub_min, grub_max)
patch only for compatibility so someone could make grub2 binaries from
grub-2.00.tar.gz
--
With best regards,
_______________________________
Vladimir Testov, ROSA Laboratory.
www.rosalab.ru
[-- Attachment #2: grub-2.00-minmax.patch --]
[-- Type: text/x-patch, Size: 663 bytes --]
diff -Naur grub-2.00/include/grub/misc.h grub-minmax/include/grub/misc.h
--- grub-2.00/include/grub/misc.h 2012-06-22 19:26:38.000000000 +0400
+++ grub-minmax/include/grub/misc.h 2013-04-10 14:18:35.899855927 +0400
@@ -52,6 +52,9 @@
#define grub_dprintf(condition, fmt, args...) grub_real_dprintf(GRUB_FILE, __LINE__, condition, fmt, ## args)
+#define grub_max(a, b) (((a) > (b)) ? (a) : (b))
+#define grub_min(a, b) (((a) < (b)) ? (a) : (b))
+
void *EXPORT_FUNC(grub_memmove) (void *dest, const void *src, grub_size_t n);
char *EXPORT_FUNC(grub_strcpy) (char *dest, const char *src);
char *EXPORT_FUNC(grub_strncpy) (char *dest, const char *src, int c);
next reply other threads:[~2013-04-11 11:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-11 11:38 Vladimir Testov [this message]
2013-04-11 17:25 ` [PATCH] [9/11] [gfxmenu/list] minmax functions (taken from GRUB2 source code) Andrey Borzenkov
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=1915075.qEp6UshPKv@icedphoenix \
--to=vladimir.testov@rosalab.ru \
--cc=grub-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.
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 NNTP newsgroup(s).