Skip to content

Commit

Permalink
Remove internal header from CLI veneer
Browse files Browse the repository at this point in the history
  • Loading branch information
solidpixel committed Mar 31, 2023
1 parent 987c484 commit 9ebe5cb
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 13 deletions.
23 changes: 22 additions & 1 deletion Source/astcenccli_entry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,19 @@
* validating the host extended ISA support meets the needs of the tools.
*/

#include "astcenccli_internal.h"
#include <cstdio>

/**
* @brief The main entry point.
*
* @param argc The number of arguments.
* @param argv The vector of arguments.
*
* @return 0 on success, non-zero otherwise.
*/
int astcenc_main(
int argc,
char **argv);

#if (ASTCENC_SSE > 20) || (ASTCENC_AVX > 0) || \
(ASTCENC_POPCNT > 0) || (ASTCENC_F16C > 0)
Expand Down Expand Up @@ -186,6 +198,15 @@ static bool cpu_supports_avx2()
}
#endif

/**
* @brief Print a string to stderr.
*/
static inline void print_error(
const char* format
) {
fprintf(stderr, "%s", format);
}

/**
* @brief Validate CPU ISA support meets the requirements of this build of the library.
*
Expand Down
12 changes: 0 additions & 12 deletions Source/astcenccli_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -395,16 +395,4 @@ void launch_threads(
void (*func)(int, int, void*),
void *payload);

/**
* @brief The main entry point.
*
* @param argc The number of arguments.
* @param argv The vector of arguments.
*
* @return 0 on success, non-zero otherwise.
*/
int astcenc_main(
int argc,
char **argv);

#endif

0 comments on commit 9ebe5cb

Please sign in to comment.