Ease portability
This commit is contained in:
parent
09b1fc7466
commit
b0eb6d5fb6
66
main.c
66
main.c
|
@ -3,6 +3,8 @@
|
|||
* by af123, 2011 - 2018
|
||||
*/
|
||||
|
||||
#define UNUSED_PARAMETER __attribute__((unused))
|
||||
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <ctype.h>
|
||||
|
@ -102,21 +104,21 @@ syntax()
|
|||
if (str && *(str) == 0x1f) uncompress_epg(&(str), &(len))
|
||||
|
||||
void
|
||||
pass(struct epg *epg __attribute__((unused)),
|
||||
struct section *s __attribute__((unused)),
|
||||
struct data *d __attribute__((unused)),
|
||||
struct descriptor **ds __attribute__((unused)),
|
||||
void *var __attribute__((unused)))
|
||||
pass(struct epg *epg UNUSED_PARAMETER,
|
||||
struct section *s UNUSED_PARAMETER,
|
||||
struct data *d UNUSED_PARAMETER,
|
||||
struct descriptor **ds UNUSED_PARAMETER,
|
||||
void *var UNUSED_PARAMETER)
|
||||
{
|
||||
/* Do nothing. */
|
||||
}
|
||||
|
||||
void
|
||||
latest(struct epg *epg __attribute__((unused)),
|
||||
struct section *s __attribute__((unused)),
|
||||
struct data *d __attribute__((unused)),
|
||||
struct descriptor **ds __attribute__((unused)),
|
||||
void *var __attribute__((unused)))
|
||||
latest(struct epg *epg UNUSED_PARAMETER,
|
||||
struct section *s UNUSED_PARAMETER,
|
||||
struct data *d UNUSED_PARAMETER,
|
||||
struct descriptor **ds UNUSED_PARAMETER,
|
||||
void *var UNUSED_PARAMETER)
|
||||
{
|
||||
time_t tm;
|
||||
|
||||
|
@ -127,11 +129,11 @@ latest(struct epg *epg __attribute__((unused)),
|
|||
}
|
||||
|
||||
void
|
||||
earliest(struct epg *epg __attribute__((unused)),
|
||||
struct section *s __attribute__((unused)),
|
||||
struct data *d __attribute__((unused)),
|
||||
struct descriptor **ds __attribute__((unused)),
|
||||
void *var __attribute__((unused)))
|
||||
earliest(struct epg *epg UNUSED_PARAMETER,
|
||||
struct section *s UNUSED_PARAMETER,
|
||||
struct data *d UNUSED_PARAMETER,
|
||||
struct descriptor **ds UNUSED_PARAMETER,
|
||||
void *var UNUSED_PARAMETER)
|
||||
{
|
||||
time_t tm;
|
||||
|
||||
|
@ -142,11 +144,11 @@ earliest(struct epg *epg __attribute__((unused)),
|
|||
}
|
||||
|
||||
void
|
||||
d78check(struct epg *epg __attribute__((unused)),
|
||||
struct section *s __attribute__((unused)),
|
||||
struct data *d __attribute__((unused)),
|
||||
struct descriptor **ds __attribute__((unused)),
|
||||
void *var __attribute__((unused)))
|
||||
d78check(struct epg *epg UNUSED_PARAMETER,
|
||||
struct section *s UNUSED_PARAMETER,
|
||||
struct data *d UNUSED_PARAMETER,
|
||||
struct descriptor **ds UNUSED_PARAMETER,
|
||||
void *var UNUSED_PARAMETER)
|
||||
{
|
||||
if (ds[PARSER_EXTENDED_EVENT])
|
||||
{
|
||||
|
@ -156,9 +158,9 @@ d78check(struct epg *epg __attribute__((unused)),
|
|||
}
|
||||
|
||||
void
|
||||
dumpraw(struct epg *epg __attribute__((unused)),
|
||||
dumpraw(struct epg *epg UNUSED_PARAMETER,
|
||||
struct section *s, struct data *d, struct descriptor **ds,
|
||||
void *var __attribute__((unused)))
|
||||
void *var UNUSED_PARAMETER)
|
||||
{
|
||||
dump_section(s);
|
||||
dump_data(d);
|
||||
|
@ -303,9 +305,9 @@ sqlitedumpend(char *file, int commit)
|
|||
}
|
||||
|
||||
void
|
||||
sqlitedump(struct epg *epg __attribute__((unused)),
|
||||
sqlitedump(struct epg *epg UNUSED_PARAMETER,
|
||||
struct section *s, struct data *d, struct descriptor **ds,
|
||||
void *var __attribute__((unused)))
|
||||
void *var UNUSED_PARAMETER)
|
||||
{
|
||||
time_t tm, dur;
|
||||
|
||||
|
@ -407,9 +409,9 @@ jsonend()
|
|||
}
|
||||
|
||||
void
|
||||
json(struct epg *epg __attribute__((unused)),
|
||||
json(struct epg *epg UNUSED_PARAMETER,
|
||||
struct section *s, struct data *d, struct descriptor **ds,
|
||||
void *var __attribute__((unused)))
|
||||
void *var UNUSED_PARAMETER)
|
||||
{
|
||||
time_t tm, dur;
|
||||
|
||||
|
@ -545,9 +547,9 @@ sqldumpend()
|
|||
}
|
||||
|
||||
void
|
||||
sqldump(struct epg *epg __attribute__((unused)),
|
||||
sqldump(struct epg *epg UNUSED_PARAMETER,
|
||||
struct section *s, struct data *d, struct descriptor **ds,
|
||||
void *var __attribute__((unused)))
|
||||
void *var UNUSED_PARAMETER)
|
||||
{
|
||||
time_t tm, dur;
|
||||
|
||||
|
@ -626,9 +628,9 @@ sqldump(struct epg *epg __attribute__((unused)),
|
|||
}
|
||||
|
||||
void
|
||||
dump(struct epg *epg __attribute__((unused)),
|
||||
dump(struct epg *epg UNUSED_PARAMETER,
|
||||
struct section *s, struct data *d, struct descriptor **ds,
|
||||
void *var __attribute__((unused)))
|
||||
void *var UNUSED_PARAMETER)
|
||||
{
|
||||
time_t tm;
|
||||
int cm;
|
||||
|
@ -837,7 +839,7 @@ dump(struct epg *epg __attribute__((unused)),
|
|||
}
|
||||
|
||||
void
|
||||
search(struct epg *epg __attribute__((unused)),
|
||||
search(struct epg *epg UNUSED_PARAMETER,
|
||||
struct section *s, struct data *d, struct descriptor **ds,
|
||||
void *var)
|
||||
{
|
||||
|
@ -854,7 +856,7 @@ search(struct epg *epg __attribute__((unused)),
|
|||
}
|
||||
|
||||
void
|
||||
searchall(struct epg *epg __attribute__((unused)),
|
||||
searchall(struct epg *epg UNUSED_PARAMETER,
|
||||
struct section *s, struct data *d, struct descriptor **ds,
|
||||
void *var)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue