mirror of
https://github.com/wiidev/usbloadergx.git
synced 2024-11-15 16:05:10 +01:00
0f17471b27
*Added sources of the custom libs to the branches *Fixed crash when switching from list layout to grid/carousel layout *Removed 1:1 copy option because its meaningless and almost the same as installing all partitions *Fixed install partition selection. This option needs a reset. Go to settings and reselect your option for this. *Fixed schinese and tchinese language modes (filename bugs. has to be schinese.lang and tchinese.lang like on SVN) *Fixed bug in sound buffer circle *Fixed incorrect behaviour of x-flip when selecting system like (thx Cyan for the patch) *Accept ios revision 65535 for Waninkokos IOSes (thx to PPSainity for pointing it out) *Merged the new theming style branch into trunk. Just as a reminder: ALL old themes will not work until the themers did port it to the new style! *Removed old theme style completely Theme example: The example file of the theme is the Default.them file. It can be found in the SVN trunk. Change in loading of themes: When selecting a theme now a list of all .them files in a folder is displayed. The image folder of that theme has to be in the same folder as the .them file. The image path is defined in the head of the .them file in the line with "Image-Folder: Example\n".
71 lines
2.0 KiB
C
71 lines
2.0 KiB
C
/*
|
|
* Header file for common error description library.
|
|
*
|
|
* Copyright 1988, Student Information Processing Board of the
|
|
* Massachusetts Institute of Technology.
|
|
*
|
|
* For copyright and distribution info, see the documentation supplied
|
|
* with this package.
|
|
*/
|
|
|
|
#if !defined(__COM_ERR_H) && !defined(__COM_ERR_H__)
|
|
|
|
#ifdef __GNUC__
|
|
#define COM_ERR_ATTR(x) __attribute__(x)
|
|
#else
|
|
#define COM_ERR_ATTR(x)
|
|
#endif
|
|
|
|
#ifndef DEBUG_GEKKO
|
|
#define OMIT_COM_ERR
|
|
#endif
|
|
|
|
#include <stddef.h>
|
|
#include <stdarg.h>
|
|
|
|
typedef long errcode_t;
|
|
|
|
struct error_table {
|
|
char const * const * msgs;
|
|
long base;
|
|
int n_msgs;
|
|
};
|
|
struct et_list;
|
|
|
|
extern void com_err (const char *, long, const char *, ...)
|
|
COM_ERR_ATTR((format(printf, 3, 4)));
|
|
|
|
extern void com_err_va (const char *whoami, errcode_t code, const char *fmt,
|
|
va_list args)
|
|
COM_ERR_ATTR((format(printf, 3, 0)));
|
|
|
|
extern char const *error_message (long);
|
|
extern void (*com_err_hook) (const char *, long, const char *, va_list);
|
|
extern void (*set_com_err_hook (void (*) (const char *, long,
|
|
const char *, va_list)))
|
|
(const char *, long, const char *, va_list);
|
|
extern void (*reset_com_err_hook (void)) (const char *, long,
|
|
const char *, va_list);
|
|
extern int init_error_table(const char * const *msgs, long base, int count);
|
|
|
|
extern errcode_t add_error_table(const struct error_table * et);
|
|
extern errcode_t remove_error_table(const struct error_table * et);
|
|
extern void add_to_error_table(struct et_list *new_table);
|
|
|
|
/* Provided for Heimdall compatibility */
|
|
extern const char *com_right(struct et_list *list, long code);
|
|
extern const char *com_right_r(struct et_list *list, long code, char *str, size_t len);
|
|
extern void initialize_error_table_r(struct et_list **list,
|
|
const char **messages,
|
|
int num_errors,
|
|
long base);
|
|
extern void free_error_table(struct et_list *et);
|
|
|
|
/* Provided for compatibility with other com_err libraries */
|
|
extern int et_list_lock(void);
|
|
extern int et_list_unlock(void);
|
|
|
|
#define __COM_ERR_H
|
|
#define __COM_ERR_H__
|
|
#endif /* !defined(__COM_ERR_H) && !defined(__COM_ERR_H__)*/
|