From 02ce9adf6a9168ec66c322ce9e5a5cb9fe1e60a5 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 16 Jun 2024 10:58:54 +0200 Subject: Added rudimentary shell to run commands (ugly) --- src/cube.h | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/cube.h') diff --git a/src/cube.h b/src/cube.h index 0eedfec..fb96823 100644 --- a/src/cube.h +++ b/src/cube.h @@ -4,47 +4,47 @@ number in case of error, unless otherwise specified. See (TODO: documentation) for details. */ -int nissy_compose( +int64_t nissy_compose( const char cube[static 22], const char permutation[static 22], char result[static 22] ); -int nissy_inverse( +int64_t nissy_inverse( const char cube[static 22], char result[static 22] ); -int nissy_applyoves( +int64_t nissy_applymoves( const char cube[static 22], const char *moves, char result[static 22] ); -int nissy_applytrans( +int64_t nissy_applytrans( const char cube[static 22], const char *transformation, char result[static 22] ); -int nissy_frommoves( +int64_t nissy_frommoves( const char *moves, char result[static 22] ); -int nissy_readcube( +int64_t nissy_readcube( const char *format, const char *cube_string, char result[static 22] ); -int nissy_writecube( +int64_t nissy_writecube( const char *format, const char cube[static 22], char *result ); -int nissy_convertcube( +int64_t nissy_convertcube( const char *format_in, const char *format_out, const char *cube_string, @@ -58,13 +58,13 @@ slightly larger than the actual table size. */ int64_t nissy_datasize( const char *solver, - const char *options + const char *options /* TODO: remove options, use only solver name */ ); /* Returns the number of bytes written, or -1 in case of error */ int64_t nissy_gendata( const char *solver, - const char *options, + const char *options, /* TODO: remove options, use only solver name */ void *generated_data ); @@ -72,8 +72,8 @@ int64_t nissy_gendata( int64_t nissy_solve( const char cube[static 22], const char *solver, - const char *options, - const char *nisstype, + const char *options, /* TODO: remove options, use only solver name */ + const char *nisstype, /* TODO: remove, use flags */ int8_t minmoves, int8_t maxmoves, int64_t maxsolutions, -- cgit v1.3