eliminate headers

modern
Connor Olding 8 years ago
parent ff6ee0e980
commit c9b1c760b1
  1. 8
      args.c
  2. 9
      args.h
  3. 10
      crc32.c
  4. 13
      crc32.h
  5. 7
      main.c

@ -1,12 +1,4 @@
/* Copyright (C) 2012 Connor Olding
*
* This program is licensed under the terms of the MIT License, and
* is distributed without any warranty. You should have received a
* copy of the license along with this program; see the file LICENSE.
*/
#include <stddef.h>
#include "args.h"
static int argc, argi;
static char **argv, *flag;

@ -1,9 +0,0 @@
/* Copyright (C) 2012 Connor Olding
*
* This program is licensed under the terms of the MIT License, and
* is distributed without any warranty. You should have received a
* copy of the license along with this program; see the file LICENSE.
*/
void args_parse(int argc, char **argv,
void flagfn(char, char*()), void plainfn(char*));

@ -1,12 +1,4 @@
/* Copyright (C) 2012 Connor Olding
*
* This program is licensed under the terms of the MIT License, and
* is distributed without any warranty. You should have received a
* copy of the license along with this program; see the file LICENSE.
*/
typedef unsigned long ulong;
#include "crc32.h"
enum { CRC_TABLE_SIZE = 0x100 };
ulong
crc_reflect(ulong input)

@ -1,13 +0,0 @@
/* Copyright (C) 2012 Connor Olding
*
* This program is licensed under the terms of the MIT License, and
* is distributed without any warranty. You should have received a
* copy of the license along with this program; see the file LICENSE.
*/
enum { CRC_TABLE_SIZE = 0x100 };
void crc_fill_table(ulong *table, int big, ulong polynomial);
void crc_be_cycle(ulong *table, ulong *remainder, char c);
void crc_le_cycle(ulong *table, ulong *remainder, char c);
ulong crc_reflect(ulong input);

@ -1,10 +1,3 @@
/* Copyright (C) 2012 Connor Olding
*
* This program is licensed under the terms of the MIT License, and
* is distributed without any warranty. You should have received a
* copy of the license along with this program; see the file LICENSE.
*/
#include <stdio.h>
#include <stdlib.h>

Loading…
Cancel
Save