hlfw.ca

binpack

Download patch

ref: 65fed219f2babd104024d0db72ca742121455104
parent: 5aae1846388ce6a7b027d9981d4edd1032cc5c9f
author: Halfwit <michaelmisch1985@gmail.com>
date: Thu Apr 14 03:10:14 PDT 2016

Removing function prototypes, screw the warnings

--- a/binpack.c
+++ b/binpack.c
@@ -27,19 +27,6 @@
   unsigned x, y, w, h;
 };
 
-size_t create_rect(struct input r[]);
-void center(const size_t length, struct output r[], struct mbin mb);
-void sort_bins(struct bins b[], size_t *bin_count);
-void sort_input(struct input r[], const size_t length);
-void create_bins(struct bins bin[], struct output out[], size_t i, size_t j,
-                 size_t *bin_count, struct mbin mb);
-void save_rect(struct bins bin[], struct output out[], struct input r[],
-               size_t i, size_t j, struct mbin mb);
-bool pack_bin(struct output out[], struct input r[], const size_t length,
-              unsigned *bin_width, unsigned *bin_height, struct mbin mb);
-bool resize(struct output out[], struct input r[], const size_t length,
-            unsigned *bin_width, unsigned *bin_height, struct mbin mb, size_t index);
-
 size_t create_rect(struct input r[]) {
   /* Read from stdin, create each rect */
   size_t length = 0;