Overhaul cmake configuration, add console api, fix http code that caused issues with cgi-bin

This commit is contained in:
2026-05-27 03:02:16 -05:00
parent 266ef5f830
commit 8413c67ec6
177 changed files with 20088 additions and 17948 deletions

View File

@@ -1,9 +1,7 @@
#include "TessesFramework/TessesFramework.hpp"
int main(int argc, char** argv)
{
if(argc < 2)
{
int main(int argc, char **argv) {
if (argc < 2) {
std::cout << "USAGE: " << argv[0] << " times" << std::endl;
std::cout << "USAGE: " << argv[0] << " times max" << std::endl;
@@ -11,25 +9,19 @@ int main(int argc, char** argv)
return 0;
}
Tesses::Framework::Random random;
int times=std::atoi(argv[1]);
if(argc > 2)
{
int times = std::atoi(argv[1]);
if (argc > 2) {
int32_t min = 0;
int32_t max = std::stoi(argv[2]);
if(argc > 3)
{
if (argc > 3) {
min = max;
max = std::stoi(argv[3]);
}
for(int i = 0; i < times; i++)
{
std::cout << random.Next(min,max) << std::endl;
for (int i = 0; i < times; i++) {
std::cout << random.Next(min, max) << std::endl;
}
}
else {
for(int i = 0; i < times; i++)
{
} else {
for (int i = 0; i < times; i++) {
std::cout << random.Next() << std::endl;
}
}