Make global curl static

This commit is contained in:
orosmatthew 2023-10-04 20:11:36 -04:00
parent fb359223f0
commit 3e90fdc0d1
3 changed files with 6 additions and 6 deletions

View File

@ -1 +1 @@
Hello World!
The quick brown fox jumps over the lazy dog.

View File

@ -7,7 +7,7 @@
#include <curl/curl.h>
CURL* g_curl;
static CURL* g_curl;
size_t curl_write_func(void* ptr, size_t size, size_t num, std::string* str)
{

View File

@ -13,8 +13,8 @@ int main()
{
init_curl();
// std::optional<std::string> page_data = fetch_url("test://text.html");
std::optional<std::string> page_data = fetch_url("https://example.com");
std::optional<std::string> page_data = fetch_url("test://text.html");
// std::optional<std::string> page_data = fetch_url("https://example.com");
SetConfigFlags(ConfigFlags::FLAG_WINDOW_RESIZABLE | ConfigFlags::FLAG_MSAA_4X_HINT | ConfigFlags ::FLAG_VSYNC_HINT);
@ -27,8 +27,8 @@ int main()
SetTargetFPS(60);
bool is_editing_url = false;
std::string url_input = "https://example.com";
// std::string url_input = "test://text.html";
// std::string url_input = "https://example.com";
std::string url_input = "test://text.html";
url_input.reserve(1024);
float scroll_pos = 0.0f;