grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] [9/11] [gfxmenu/list] minmax functions (taken from GRUB2 source code)
@ 2013-04-11 11:38 Vladimir Testov
  2013-04-11 17:25 ` Andrey Borzenkov
  0 siblings, 1 reply; 2+ messages in thread
From: Vladimir Testov @ 2013-04-11 11:38 UTC (permalink / raw)
  To: grub-devel

[-- 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);

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] [9/11] [gfxmenu/list] minmax functions (taken from GRUB2 source code)
  2013-04-11 11:38 [PATCH] [9/11] [gfxmenu/list] minmax functions (taken from GRUB2 source code) Vladimir Testov
@ 2013-04-11 17:25 ` Andrey Borzenkov
  0 siblings, 0 replies; 2+ messages in thread
From: Andrey Borzenkov @ 2013-04-11 17:25 UTC (permalink / raw)
  To: grub-devel

В Thu, 11 Apr 2013 15:38:10 +0400
Vladimir Testov <vladimir.testov@rosalab.ru> пишет:

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

Already in trunk.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-04-11 17:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-11 11:38 [PATCH] [9/11] [gfxmenu/list] minmax functions (taken from GRUB2 source code) Vladimir Testov
2013-04-11 17:25 ` Andrey Borzenkov

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).