More formatting updates. Reduced whitespace, looks even better.
This commit is contained in:
1 parent
a98c8109a8
commit
ddfd41f53e
78 files changed
-590
No files matched your search
@@ -18,10 +18,8 @@
|
||||
#include "../../shared/sockets.h"
|
||||
#include "../../shared/debug.h"
|
||||
|
||||
|
||||
// TODO: Commenting... Everything!
|
||||
|
||||
|
||||
int Quit = 0;
|
||||
int sock;
|
||||
|
||||
@@ -33,7 +31,6 @@ int lcd_hgt;
|
||||
int lcd_cellwid;
|
||||
int lcd_cellhgt;
|
||||
|
||||
|
||||
/*
|
||||
Mode List:
|
||||
See below... (default_sequence[])
|
||||
@@ -47,7 +44,6 @@ void main_loop (mode * sequence);
|
||||
// 1/8th second is a single time unit...
|
||||
#define TIME_UNIT 125000
|
||||
|
||||
|
||||
// Contains a list of modes to run
|
||||
mode default_sequence[] = {
|
||||
// which on off inv timer/visible
|
||||
@@ -75,7 +71,6 @@ mode default_sequence[] = {
|
||||
|
||||
// TODO: Config file; not just command line
|
||||
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
@@ -97,8 +92,6 @@ main (int argc, char **argv)
|
||||
// and just in case, "kill -KILL" (which cannot be trapped; but oh well)
|
||||
signal (SIGKILL, exit_program);
|
||||
|
||||
|
||||
|
||||
// Command line
|
||||
memcpy (sequence, default_sequence, sizeof (default_sequence));
|
||||
for (i = 1, j = 0; i < argc; i++) {
|
||||
@@ -157,7 +150,6 @@ main (int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Connect to the server...
|
||||
usleep (500000); // wait for the server to start up
|
||||
sock = sock_connect (server, port);
|
||||
@@ -168,7 +160,6 @@ main (int argc, char **argv)
|
||||
sock_send_string (sock, "hello\n");
|
||||
usleep (500000); // wait for the server to say hi.
|
||||
|
||||
|
||||
// We grab the real values below, from the "connect" line.
|
||||
lcd_wid = 20;
|
||||
lcd_hgt = 4;
|
||||
@@ -186,7 +177,6 @@ main (int argc, char **argv)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
HelpScreen ()
|
||||
{
|
||||
@@ -203,7 +193,6 @@ HelpScreen ()
|
||||
exit (0);
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// Called upon TERM and INTR signals...
|
||||
//
|
||||
@@ -216,7 +205,6 @@ exit_program (int val)
|
||||
exit (0);
|
||||
}
|
||||
|
||||
|
||||
///////////////////////////////////////////////////////////////////
|
||||
// Main program loop...
|
||||
//
|
||||
@@ -230,7 +218,6 @@ main_loop (mode * sequence)
|
||||
int argc, newtoken;
|
||||
int len;
|
||||
|
||||
|
||||
// Main loop
|
||||
// Run whatever screen we want, then wait. Woo-hoo!
|
||||
while (!Quit) {
|
||||
|
||||
Reference in new issue
Block a user