Modernise decl styles
This commit is contained in:
parent
d98d990752
commit
e014e4c6d5
|
@ -1825,7 +1825,7 @@ const struct fet_db_record *fet_db_find_by_msg28(uint8_t *data, int len)
|
|||
|
||||
if (r->msg28_data[0] == data[0] &&
|
||||
r->msg28_data[1] == data[1]) {
|
||||
const static int coefficients[FET_DB_MSG28_LEN] = {
|
||||
static const int coefficients[FET_DB_MSG28_LEN] = {
|
||||
1, 1, 1, 1, 1, 1, 1, 1,
|
||||
1, 1, 0, 0, 1, 1, 1, 1,
|
||||
10, 1
|
||||
|
|
|
@ -90,7 +90,7 @@ struct tilib_device {
|
|||
|
||||
#define MID_HALT_ANY (MID_BREAKPOINT | MID_CPU_STOPPED)
|
||||
|
||||
const static MessageID_t my_message_ids = {
|
||||
static const MessageID_t my_message_ids = {
|
||||
.uiMsgIdSingleStep = MID_SINGLE_STEP,
|
||||
.uiMsgIdBreakpoint = MID_BREAKPOINT,
|
||||
.uiMsgIdStorage = MID_STORAGE,
|
||||
|
|
|
@ -337,11 +337,13 @@ int name(address_t addr, datatype data) { \
|
|||
\
|
||||
return ret; \
|
||||
}
|
||||
#define IO_REQUEST_FUNC_S(name, method, datatype) \
|
||||
static IO_REQUEST_FUNC(name, method, datatype)
|
||||
|
||||
IO_REQUEST_FUNC(simio_write, write, uint16_t)
|
||||
IO_REQUEST_FUNC(simio_read, read, uint16_t *)
|
||||
IO_REQUEST_FUNC(static simio_write_b_device, write_b, uint8_t)
|
||||
IO_REQUEST_FUNC(static simio_read_b_device, read_b, uint8_t *)
|
||||
IO_REQUEST_FUNC_S(simio_write_b_device, write_b, uint8_t)
|
||||
IO_REQUEST_FUNC_S(simio_read_b_device, read_b, uint8_t *)
|
||||
|
||||
int simio_write_b(address_t addr, uint8_t data)
|
||||
{
|
||||
|
|
|
@ -171,7 +171,7 @@ static int parse_cmdline_args(int argc, char **argv,
|
|||
struct cmdline_args *args)
|
||||
{
|
||||
int opt;
|
||||
const static struct option longopts[] = {
|
||||
static const struct option longopts[] = {
|
||||
{"help", 0, 0, 'H'},
|
||||
{"fet-list", 0, 0, 'L'},
|
||||
{"fet-force-id", 1, 0, 'F'},
|
||||
|
@ -189,7 +189,7 @@ static int parse_cmdline_args(int argc, char **argv,
|
|||
switch (opt) {
|
||||
case 'q':
|
||||
{
|
||||
const static union opdb_value v = {
|
||||
static const union opdb_value v = {
|
||||
.boolean = 1
|
||||
};
|
||||
|
||||
|
|
|
@ -380,7 +380,7 @@ static int do_isearch(address_t addr, address_t len,
|
|||
|
||||
int cmd_isearch(char **arg)
|
||||
{
|
||||
const static struct {
|
||||
static const struct {
|
||||
const char *name;
|
||||
int (*func)(const char *term, char **arg,
|
||||
struct isearch_query *q);
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "opdb.h"
|
||||
#include "util.h"
|
||||
|
||||
const static struct opdb_key keys[] = {
|
||||
static const struct opdb_key keys[] = {
|
||||
{
|
||||
.name = "color",
|
||||
.type = OPDB_TYPE_BOOLEAN,
|
||||
|
|
|
@ -102,7 +102,7 @@ void ctrlc_init(void)
|
|||
#if defined(__CYGWIN__)
|
||||
signal(SIGINT, sigint_handler);
|
||||
#else
|
||||
const static struct sigaction siga = {
|
||||
static const struct sigaction siga = {
|
||||
.sa_handler = sigint_handler,
|
||||
.sa_flags = 0
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue