diff options
Diffstat (limited to 'atobm.c')
-rw-r--r-- | atobm.c | 24 |
1 files changed, 12 insertions, 12 deletions
@@ -38,21 +38,21 @@ from The Open Group. static char *ProgramName; -static void doit(FILE *fp, char *filename, char *chars, +static void doit(FILE *fp, char *filename, char *chars, int xhot, int yhot, char *name); -static void +static void usage (void) { fprintf (stderr, "usage: %s [-options ...] [filename]\n\n", ProgramName); - fprintf (stderr, + fprintf (stderr, "where options include:\n"); - fprintf (stderr, + fprintf (stderr, " -chars cc chars to use for 0 and 1 bits, respectively\n"); - fprintf (stderr, + fprintf (stderr, " -name variable name to use in bitmap file\n"); - fprintf (stderr, + fprintf (stderr, " -xhot number x position of hotspot\n"); fprintf (stderr, " -yhot number y position of hotspot\n"); @@ -162,10 +162,10 @@ main (int argc, char *argv[]) static void -doit (FILE *fp, - char *filename, - char *chars, - int xhot, int yhot, +doit (FILE *fp, + char *filename, + char *chars, + int xhot, int yhot, char *name) { int i, j; @@ -187,7 +187,7 @@ doit (FILE *fp, static unsigned char masktable[] = { 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80 }; int padded = 0; - + #define NTOALLOC 16 #define NewSList() \ slist = (struct _scan_list *) calloc (1, sizeof *slist); \ @@ -204,7 +204,7 @@ doit (FILE *fp, return; \ } \ slist->used = 0; \ - slist->next = NULL; + slist->next = NULL; while (1) { buf[0] = '\0'; |