Remove tab chars from retro C sources.
This commit is contained in:
parent
0a88373add
commit
1a5e20bc5f
@ -58,9 +58,9 @@ ctk_mouse_init(void)
|
|||||||
if(okay) {
|
if(okay) {
|
||||||
okay = mouse_install(&mouse_def_callbacks, module_control.module) == MOUSE_ERR_OK;
|
okay = mouse_install(&mouse_def_callbacks, module_control.module) == MOUSE_ERR_OK;
|
||||||
if(okay) {
|
if(okay) {
|
||||||
atexit((void (*)(void))mouse_uninstall);
|
atexit((void (*)(void))mouse_uninstall);
|
||||||
} else {
|
} else {
|
||||||
mod_free(module_control.module);
|
mod_free(module_control.module);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
cfs_close(module_control.callerdata);
|
cfs_close(module_control.callerdata);
|
||||||
|
@ -214,21 +214,21 @@ PROCESS_THREAD(dhcp_process, ev, data)
|
|||||||
dhcpc_appcall(ev, data);
|
dhcpc_appcall(ev, data);
|
||||||
} else if(ev == ctk_signal_button_activate) {
|
} else if(ev == ctk_signal_button_activate) {
|
||||||
if(data == (process_data_t)&requestbutton) {
|
if(data == (process_data_t)&requestbutton) {
|
||||||
dhcpc_request();
|
dhcpc_request();
|
||||||
set_statustext("Requesting...");
|
set_statustext("Requesting...");
|
||||||
}
|
}
|
||||||
if(data == (process_data_t)&savebutton) {
|
if(data == (process_data_t)&savebutton) {
|
||||||
apply_tcpipconfig();
|
apply_tcpipconfig();
|
||||||
app_quit();
|
app_quit();
|
||||||
}
|
}
|
||||||
if(data == (process_data_t)&cancelbutton) {
|
if(data == (process_data_t)&cancelbutton) {
|
||||||
app_quit();
|
app_quit();
|
||||||
}
|
}
|
||||||
} else if(
|
} else if(
|
||||||
#if CTK_CONF_WINDOWCLOSE
|
#if CTK_CONF_WINDOWCLOSE
|
||||||
ev == ctk_signal_window_close ||
|
ev == ctk_signal_window_close ||
|
||||||
#endif
|
#endif
|
||||||
ev == PROCESS_EVENT_EXIT) {
|
ev == PROCESS_EVENT_EXIT) {
|
||||||
app_quit();
|
app_quit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -78,7 +78,7 @@ config_read(char *filename)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(cfs_read(file, &config, sizeof(config)) < sizeof(config)
|
if(cfs_read(file, &config, sizeof(config)) < sizeof(config)
|
||||||
- sizeof(config.ethernetcfg.name)) {
|
- sizeof(config.ethernetcfg.name)) {
|
||||||
log_message(filename, ": No config file");
|
log_message(filename, ": No config file");
|
||||||
error_exit();
|
error_exit();
|
||||||
}
|
}
|
||||||
|
@ -71,10 +71,10 @@ pollhandler(void)
|
|||||||
} else if(BUF->type == uip_htons(UIP_ETHTYPE_ARP)) {
|
} else if(BUF->type == uip_htons(UIP_ETHTYPE_ARP)) {
|
||||||
uip_arp_arpin();
|
uip_arp_arpin();
|
||||||
/* If the above function invocation resulted in data that
|
/* If the above function invocation resulted in data that
|
||||||
should be sent out on the network, the global variable
|
should be sent out on the network, the global variable
|
||||||
uip_len is set to a value > 0. */
|
uip_len is set to a value > 0. */
|
||||||
if(uip_len > 0) {
|
if(uip_len > 0) {
|
||||||
ethernet_send();
|
ethernet_send();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -73,7 +73,7 @@ ethernet_init(struct ethernet_config *config)
|
|||||||
byte = mod_load(&module_control);
|
byte = mod_load(&module_control);
|
||||||
if(byte != MLOAD_OK) {
|
if(byte != MLOAD_OK) {
|
||||||
log_message(config->name, byte == MLOAD_ERR_MEM? ": Out of memory":
|
log_message(config->name, byte == MLOAD_ERR_MEM? ": Out of memory":
|
||||||
": No module");
|
": No module");
|
||||||
error_exit();
|
error_exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,12 +57,12 @@ mtarch_remove(void)
|
|||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
mtarch_start(struct mtarch_thread *thread,
|
mtarch_start(struct mtarch_thread *thread,
|
||||||
void (* function)(void *data),
|
void (* function)(void *data),
|
||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
memset(thread->cpustack, 0, sizeof(thread->cpustack));
|
memset(thread->cpustack, 0, sizeof(thread->cpustack));
|
||||||
memset(thread->cstack, 0, sizeof(thread->cstack));
|
memset(thread->cstack, 0, sizeof(thread->cstack));
|
||||||
|
|
||||||
/* Copy current zero page content as template. */
|
/* Copy current zero page content as template. */
|
||||||
mtarch_asm_threadzp = thread->zp;
|
mtarch_asm_threadzp = thread->zp;
|
||||||
mtarch_asm_start();
|
mtarch_asm_start();
|
||||||
@ -79,7 +79,7 @@ mtarch_start(struct mtarch_thread *thread,
|
|||||||
/* Setup the C stack with the data pointer. */
|
/* Setup the C stack with the data pointer. */
|
||||||
thread->cstack[MTARCH_CSTACKSIZE - 2] = ((unsigned short)data) / 0x100; /* high byte of data pointer */
|
thread->cstack[MTARCH_CSTACKSIZE - 2] = ((unsigned short)data) / 0x100; /* high byte of data pointer */
|
||||||
thread->cstack[MTARCH_CSTACKSIZE - 3] = ((unsigned short)data) % 0x100; /* low byte of data pointer */
|
thread->cstack[MTARCH_CSTACKSIZE - 3] = ((unsigned short)data) % 0x100; /* low byte of data pointer */
|
||||||
|
|
||||||
/* Setup the C stack pointer. */
|
/* Setup the C stack pointer. */
|
||||||
thread->zp[1] = ((size_t)&thread->cstack[MTARCH_CSTACKSIZE - 3]) / 0x100; /* high byte of C stack pointer */
|
thread->zp[1] = ((size_t)&thread->cstack[MTARCH_CSTACKSIZE - 3]) / 0x100; /* high byte of C stack pointer */
|
||||||
thread->zp[0] = ((size_t)&thread->cstack[MTARCH_CSTACKSIZE - 3]) % 0x100; /* low byte of C stack pointer */
|
thread->zp[0] = ((size_t)&thread->cstack[MTARCH_CSTACKSIZE - 3]) % 0x100; /* low byte of C stack pointer */
|
||||||
@ -100,7 +100,7 @@ mtarch_exec(struct mtarch_thread *thread)
|
|||||||
|
|
||||||
mtarch_asm_threadstack = thread->cpustack;
|
mtarch_asm_threadstack = thread->cpustack;
|
||||||
mtarch_asm_threadzp = thread->zp;
|
mtarch_asm_threadzp = thread->zp;
|
||||||
|
|
||||||
mtarch_asm_exec();
|
mtarch_asm_exec();
|
||||||
|
|
||||||
thread->spreg = mtarch_asm_threadspreg;
|
thread->spreg = mtarch_asm_threadspreg;
|
||||||
|
@ -38,9 +38,9 @@
|
|||||||
#include "6502def.h"
|
#include "6502def.h"
|
||||||
|
|
||||||
#define CTK_CONF_MENU_KEY CH_ESC
|
#define CTK_CONF_MENU_KEY CH_ESC
|
||||||
#define CTK_CONF_WINDOWSWITCH_KEY 0x17 /* Ctrl-W */
|
#define CTK_CONF_WINDOWSWITCH_KEY 0x17 /* Ctrl-W */
|
||||||
#define CTK_CONF_WIDGETUP_KEY 0x01 /* Ctrl-A */
|
#define CTK_CONF_WIDGETUP_KEY 0x01 /* Ctrl-A */
|
||||||
#define CTK_CONF_WIDGETDOWN_KEY '\t' /* Tab or Ctrl-I */
|
#define CTK_CONF_WIDGETDOWN_KEY '\t' /* Tab or Ctrl-I */
|
||||||
|
|
||||||
#define MOUSE_CONF_XTOC(x) ((x) * 2 / 7)
|
#define MOUSE_CONF_XTOC(x) ((x) * 2 / 7)
|
||||||
#define MOUSE_CONF_YTOC(y) ((y) / 8)
|
#define MOUSE_CONF_YTOC(y) ((y) / 8)
|
||||||
|
@ -51,9 +51,9 @@
|
|||||||
#endif /* WITH_DNS */
|
#endif /* WITH_DNS */
|
||||||
|
|
||||||
PROCINIT(&etimer_process,
|
PROCINIT(&etimer_process,
|
||||||
CTK_PROCESS
|
CTK_PROCESS
|
||||||
RESOLV_PROCESS
|
RESOLV_PROCESS
|
||||||
&tcpip_process);
|
&tcpip_process);
|
||||||
|
|
||||||
void clock_update(void);
|
void clock_update(void);
|
||||||
|
|
||||||
@ -101,7 +101,7 @@ main(void)
|
|||||||
autostart_start(autostart_processes);
|
autostart_start(autostart_processes);
|
||||||
|
|
||||||
log_message("Contiki up and running ...", "");
|
log_message("Contiki up and running ...", "");
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
|
|
||||||
process_run();
|
process_run();
|
||||||
|
@ -38,9 +38,9 @@
|
|||||||
#include "6502def.h"
|
#include "6502def.h"
|
||||||
|
|
||||||
#define CTK_CONF_MENU_KEY CH_ESC
|
#define CTK_CONF_MENU_KEY CH_ESC
|
||||||
#define CTK_CONF_WINDOWSWITCH_KEY 0x17 /* Ctrl-W */
|
#define CTK_CONF_WINDOWSWITCH_KEY 0x17 /* Ctrl-W */
|
||||||
#define CTK_CONF_WIDGETUP_KEY 0x01 /* Ctrl-A */
|
#define CTK_CONF_WIDGETUP_KEY 0x01 /* Ctrl-A */
|
||||||
#define CTK_CONF_WIDGETDOWN_KEY '\t' /* Tab or Ctrl-I */
|
#define CTK_CONF_WIDGETDOWN_KEY '\t' /* Tab or Ctrl-I */
|
||||||
|
|
||||||
#define textcolor(color) COLOR_WHITE
|
#define textcolor(color) COLOR_WHITE
|
||||||
|
|
||||||
|
@ -51,9 +51,9 @@
|
|||||||
#endif /* WITH_DNS */
|
#endif /* WITH_DNS */
|
||||||
|
|
||||||
PROCINIT(&etimer_process,
|
PROCINIT(&etimer_process,
|
||||||
CTK_PROCESS
|
CTK_PROCESS
|
||||||
RESOLV_PROCESS
|
RESOLV_PROCESS
|
||||||
&tcpip_process);
|
&tcpip_process);
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
@ -97,7 +97,7 @@ main(void)
|
|||||||
autostart_start(autostart_processes);
|
autostart_start(autostart_processes);
|
||||||
|
|
||||||
log_message("Contiki up and running ...", "");
|
log_message("Contiki up and running ...", "");
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
|
|
||||||
process_run();
|
process_run();
|
||||||
|
@ -53,9 +53,9 @@
|
|||||||
#endif /* WITH_DNS */
|
#endif /* WITH_DNS */
|
||||||
|
|
||||||
PROCINIT(&etimer_process,
|
PROCINIT(&etimer_process,
|
||||||
CTK_PROCESS
|
CTK_PROCESS
|
||||||
RESOLV_PROCESS
|
RESOLV_PROCESS
|
||||||
&tcpip_process);
|
&tcpip_process);
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
@ -115,7 +115,7 @@ main(void)
|
|||||||
autostart_start(autostart_processes);
|
autostart_start(autostart_processes);
|
||||||
|
|
||||||
log_message("Contiki up and running ...", "");
|
log_message("Contiki up and running ...", "");
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
|
|
||||||
process_run();
|
process_run();
|
||||||
|
@ -53,9 +53,9 @@
|
|||||||
#endif /* WITH_DNS */
|
#endif /* WITH_DNS */
|
||||||
|
|
||||||
PROCINIT(&etimer_process,
|
PROCINIT(&etimer_process,
|
||||||
CTK_PROCESS
|
CTK_PROCESS
|
||||||
RESOLV_PROCESS
|
RESOLV_PROCESS
|
||||||
&tcpip_process);
|
&tcpip_process);
|
||||||
|
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
void
|
void
|
||||||
@ -113,7 +113,7 @@ main(void)
|
|||||||
autostart_start(autostart_processes);
|
autostart_start(autostart_processes);
|
||||||
|
|
||||||
log_message("Contiki up and running ...", "");
|
log_message("Contiki up and running ...", "");
|
||||||
|
|
||||||
while(1) {
|
while(1) {
|
||||||
|
|
||||||
process_run();
|
process_run();
|
||||||
|
Loading…
Reference in New Issue
Block a user