26 |
#include <grub/symbol.h> |
#include <grub/symbol.h> |
27 |
#include <grub/err.h> |
#include <grub/err.h> |
28 |
|
|
29 |
|
#define grub_dprintf(condition, fmt, args...) grub_real_dprintf(__FILE__, __LINE__, condition, fmt, ## args); |
30 |
/* XXX: If grub_memmove is too slow, we must implement grub_memcpy. */ |
/* XXX: If grub_memmove is too slow, we must implement grub_memcpy. */ |
31 |
#define grub_memcpy(d,s,n) grub_memmove ((d), (s), (n)) |
#define grub_memcpy(d,s,n) grub_memmove ((d), (s), (n)) |
32 |
|
|
47 |
int EXPORT_FUNC(grub_strncasecmp) (const char *s1, const char *s2, int c); |
int EXPORT_FUNC(grub_strncasecmp) (const char *s1, const char *s2, int c); |
48 |
char *EXPORT_FUNC(grub_strchr) (const char *s, int c); |
char *EXPORT_FUNC(grub_strchr) (const char *s, int c); |
49 |
char *EXPORT_FUNC(grub_strrchr) (const char *s, int c); |
char *EXPORT_FUNC(grub_strrchr) (const char *s, int c); |
50 |
|
int EXPORT_FUNC(grub_strword) (const char *s, const char *w); |
51 |
|
int EXPORT_FUNC(grub_iswordseparator) (int c); |
52 |
int EXPORT_FUNC(grub_isspace) (int c); |
int EXPORT_FUNC(grub_isspace) (int c); |
53 |
int EXPORT_FUNC(grub_isprint) (int c); |
int EXPORT_FUNC(grub_isprint) (int c); |
54 |
int EXPORT_FUNC(grub_isalpha) (int c); |
int EXPORT_FUNC(grub_isalpha) (int c); |
61 |
void *EXPORT_FUNC(grub_memset) (void *s, int c, grub_size_t n); |
void *EXPORT_FUNC(grub_memset) (void *s, int c, grub_size_t n); |
62 |
grub_size_t EXPORT_FUNC(grub_strlen) (const char *s); |
grub_size_t EXPORT_FUNC(grub_strlen) (const char *s); |
63 |
int EXPORT_FUNC(grub_printf) (const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); |
int EXPORT_FUNC(grub_printf) (const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); |
64 |
|
void EXPORT_FUNC(grub_real_dprintf) (const char *file, |
65 |
|
const int line, |
66 |
|
const char *condition, |
67 |
|
const char *fmt, ...) __attribute__ ((format (printf, 4, 5))); |
68 |
int EXPORT_FUNC(grub_vprintf) (const char *fmt, va_list args); |
int EXPORT_FUNC(grub_vprintf) (const char *fmt, va_list args); |
69 |
int EXPORT_FUNC(grub_sprintf) (char *str, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); |
int EXPORT_FUNC(grub_sprintf) (char *str, const char *fmt, ...) __attribute__ ((format (printf, 2, 3))); |
70 |
int EXPORT_FUNC(grub_vsprintf) (char *str, const char *fmt, va_list args); |
int EXPORT_FUNC(grub_vsprintf) (char *str, const char *fmt, va_list args); |