Split off command-line options parsing from the main function
This commit is contained in:
parent
7cd9faefe0
commit
4dd410a2af
5 changed files with 196 additions and 130 deletions
16
commandline.h
Normal file
16
commandline.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0-only */
|
||||
#pragma once
|
||||
|
||||
#include "macros.h"
|
||||
#include "types.h"
|
||||
#include "logic.h"
|
||||
|
||||
extern int parseArgs(
|
||||
int argc,
|
||||
char *argv[],
|
||||
board_t *board,
|
||||
wins_t **wins,
|
||||
FILE **outputfile,
|
||||
char **filename,
|
||||
bool *randomMoves
|
||||
);
|
||||
Loading…
Add table
Add a link
Reference in a new issue