mirror of
https://github.com/ascii-boxes/boxes.git
synced 2025-04-28 18:08:16 +02:00
Added initialization of mmok to please compiler
Changed parameters of empty_side() calls to comply with new signature
This commit is contained in:
parent
1996a361ed
commit
93763e64ec
13
src/remove.c
13
src/remove.c
@ -4,7 +4,7 @@
|
|||||||
* Date created: June 23, 1999 (Wednesday, 20:59h)
|
* Date created: June 23, 1999 (Wednesday, 20:59h)
|
||||||
* Author: Thomas Jensen
|
* Author: Thomas Jensen
|
||||||
* tsjensen@stud.informatik.uni-erlangen.de
|
* tsjensen@stud.informatik.uni-erlangen.de
|
||||||
* Version: $Id$
|
* Version: $Id: remove.c,v 1.1 1999/06/23 19:14:53 tsjensen Exp tsjensen $
|
||||||
* Language: ANSI C
|
* Language: ANSI C
|
||||||
* World Wide Web: http://home.pages.de/~jensen/boxes/
|
* World Wide Web: http://home.pages.de/~jensen/boxes/
|
||||||
* Purpose: Box removal, i.e. the deletion of boxes
|
* Purpose: Box removal, i.e. the deletion of boxes
|
||||||
@ -12,7 +12,10 @@
|
|||||||
*
|
*
|
||||||
* Revision History:
|
* Revision History:
|
||||||
*
|
*
|
||||||
* $Log$
|
* $Log: remove.c,v $
|
||||||
|
* Revision 1.1 1999/06/23 19:14:53 tsjensen
|
||||||
|
* Initial revision
|
||||||
|
*
|
||||||
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@ -25,7 +28,7 @@
|
|||||||
#include "remove.h"
|
#include "remove.h"
|
||||||
|
|
||||||
static const char rcsid_remove_c[] =
|
static const char rcsid_remove_c[] =
|
||||||
"$Id$";
|
"$Id: remove.c,v 1.1 1999/06/23 19:14:53 tsjensen Exp tsjensen $";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -307,7 +310,7 @@ static int detect_horiz (const int aside, size_t *hstart, size_t *hend)
|
|||||||
char *wcs = NULL; /* west corner shape position */
|
char *wcs = NULL; /* west corner shape position */
|
||||||
char *ecs = NULL; /* east corner shape position */
|
char *ecs = NULL; /* east corner shape position */
|
||||||
char *ecs_save; /* temp copy of ecs */
|
char *ecs_save; /* temp copy of ecs */
|
||||||
int mmok; /* true if middle match was ok */
|
int mmok = 0; /* true if middle match was ok */
|
||||||
size_t mheight; /* regular height of box part */
|
size_t mheight; /* regular height of box part */
|
||||||
int result_init = 0; /* true if hstart was set */
|
int result_init = 0; /* true if hstart was set */
|
||||||
int goeast, gowest;
|
int goeast, gowest;
|
||||||
@ -481,7 +484,7 @@ static design_t *detect_design()
|
|||||||
hits = 0;
|
hits = 0;
|
||||||
|
|
||||||
for (j=0; j<ANZ_SIDES; ++j)
|
for (j=0; j<ANZ_SIDES; ++j)
|
||||||
empty[j] = empty_side (d, j);
|
empty[j] = empty_side (d->shape, j);
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
fprintf (stderr, "Empty sides: TOP %d, LEFT %d, BOTTOM %d, RIGHT %d\n",
|
fprintf (stderr, "Empty sides: TOP %d, LEFT %d, BOTTOM %d, RIGHT %d\n",
|
||||||
empty[BTOP], empty[BLEF], empty[BBOT], empty[BRIG]);
|
empty[BTOP], empty[BLEF], empty[BBOT], empty[BRIG]);
|
||||||
|
Loading…
Reference in New Issue
Block a user