Remove tab chars from retro C sources.

This commit is contained in:
Oliver Schmidt 2013-01-28 23:43:08 +01:00
parent 0a88373add
commit 1a5e20bc5f
12 changed files with 41 additions and 41 deletions

View file

@ -58,9 +58,9 @@ ctk_mouse_init(void)
if(okay) {
okay = mouse_install(&mouse_def_callbacks, module_control.module) == MOUSE_ERR_OK;
if(okay) {
atexit((void (*)(void))mouse_uninstall);
atexit((void (*)(void))mouse_uninstall);
} else {
mod_free(module_control.module);
mod_free(module_control.module);
}
}
cfs_close(module_control.callerdata);

View file

@ -214,21 +214,21 @@ PROCESS_THREAD(dhcp_process, ev, data)
dhcpc_appcall(ev, data);
} else if(ev == ctk_signal_button_activate) {
if(data == (process_data_t)&requestbutton) {
dhcpc_request();
set_statustext("Requesting...");
dhcpc_request();
set_statustext("Requesting...");
}
if(data == (process_data_t)&savebutton) {
apply_tcpipconfig();
app_quit();
apply_tcpipconfig();
app_quit();
}
if(data == (process_data_t)&cancelbutton) {
app_quit();
app_quit();
}
} else if(
#if CTK_CONF_WINDOWCLOSE
ev == ctk_signal_window_close ||
ev == ctk_signal_window_close ||
#endif
ev == PROCESS_EVENT_EXIT) {
ev == PROCESS_EVENT_EXIT) {
app_quit();
}
}

View file

@ -78,7 +78,7 @@ config_read(char *filename)
}
if(cfs_read(file, &config, sizeof(config)) < sizeof(config)
- sizeof(config.ethernetcfg.name)) {
- sizeof(config.ethernetcfg.name)) {
log_message(filename, ": No config file");
error_exit();
}

View file

@ -71,10 +71,10 @@ pollhandler(void)
} else if(BUF->type == uip_htons(UIP_ETHTYPE_ARP)) {
uip_arp_arpin();
/* If the above function invocation resulted in data that
should be sent out on the network, the global variable
uip_len is set to a value > 0. */
should be sent out on the network, the global variable
uip_len is set to a value > 0. */
if(uip_len > 0) {
ethernet_send();
ethernet_send();
}
}
}

View file

@ -73,7 +73,7 @@ ethernet_init(struct ethernet_config *config)
byte = mod_load(&module_control);
if(byte != MLOAD_OK) {
log_message(config->name, byte == MLOAD_ERR_MEM? ": Out of memory":
": No module");
": No module");
error_exit();
}

View file

@ -57,8 +57,8 @@ mtarch_remove(void)
/*--------------------------------------------------------------------------*/
void
mtarch_start(struct mtarch_thread *thread,
void (* function)(void *data),
void *data)
void (* function)(void *data),
void *data)
{
memset(thread->cpustack, 0, sizeof(thread->cpustack));
memset(thread->cstack, 0, sizeof(thread->cstack));

View file

@ -38,9 +38,9 @@
#include "6502def.h"
#define CTK_CONF_MENU_KEY CH_ESC
#define CTK_CONF_WINDOWSWITCH_KEY 0x17 /* Ctrl-W */
#define CTK_CONF_WIDGETUP_KEY 0x01 /* Ctrl-A */
#define CTK_CONF_WIDGETDOWN_KEY '\t' /* Tab or Ctrl-I */
#define CTK_CONF_WINDOWSWITCH_KEY 0x17 /* Ctrl-W */
#define CTK_CONF_WIDGETUP_KEY 0x01 /* Ctrl-A */
#define CTK_CONF_WIDGETDOWN_KEY '\t' /* Tab or Ctrl-I */
#define MOUSE_CONF_XTOC(x) ((x) * 2 / 7)
#define MOUSE_CONF_YTOC(y) ((y) / 8)

View file

@ -51,9 +51,9 @@
#endif /* WITH_DNS */
PROCINIT(&etimer_process,
CTK_PROCESS
RESOLV_PROCESS
&tcpip_process);
CTK_PROCESS
RESOLV_PROCESS
&tcpip_process);
void clock_update(void);

View file

@ -38,9 +38,9 @@
#include "6502def.h"
#define CTK_CONF_MENU_KEY CH_ESC
#define CTK_CONF_WINDOWSWITCH_KEY 0x17 /* Ctrl-W */
#define CTK_CONF_WIDGETUP_KEY 0x01 /* Ctrl-A */
#define CTK_CONF_WIDGETDOWN_KEY '\t' /* Tab or Ctrl-I */
#define CTK_CONF_WINDOWSWITCH_KEY 0x17 /* Ctrl-W */
#define CTK_CONF_WIDGETUP_KEY 0x01 /* Ctrl-A */
#define CTK_CONF_WIDGETDOWN_KEY '\t' /* Tab or Ctrl-I */
#define textcolor(color) COLOR_WHITE

View file

@ -51,9 +51,9 @@
#endif /* WITH_DNS */
PROCINIT(&etimer_process,
CTK_PROCESS
RESOLV_PROCESS
&tcpip_process);
CTK_PROCESS
RESOLV_PROCESS
&tcpip_process);
/*-----------------------------------------------------------------------------------*/
void

View file

@ -53,9 +53,9 @@
#endif /* WITH_DNS */
PROCINIT(&etimer_process,
CTK_PROCESS
RESOLV_PROCESS
&tcpip_process);
CTK_PROCESS
RESOLV_PROCESS
&tcpip_process);
/*-----------------------------------------------------------------------------------*/
void

View file

@ -53,9 +53,9 @@
#endif /* WITH_DNS */
PROCINIT(&etimer_process,
CTK_PROCESS
RESOLV_PROCESS
&tcpip_process);
CTK_PROCESS
RESOLV_PROCESS
&tcpip_process);
/*-----------------------------------------------------------------------------------*/
void