Make global curl static
This commit is contained in:
parent
fb359223f0
commit
3e90fdc0d1
@ -1 +1 @@
|
|||||||
Hello World!
|
The quick brown fox jumps over the lazy dog.
|
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
#include <curl/curl.h>
|
#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)
|
size_t curl_write_func(void* ptr, size_t size, size_t num, std::string* str)
|
||||||
{
|
{
|
||||||
|
@ -13,8 +13,8 @@ int main()
|
|||||||
{
|
{
|
||||||
init_curl();
|
init_curl();
|
||||||
|
|
||||||
// std::optional<std::string> page_data = fetch_url("test://text.html");
|
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("https://example.com");
|
||||||
|
|
||||||
SetConfigFlags(ConfigFlags::FLAG_WINDOW_RESIZABLE | ConfigFlags::FLAG_MSAA_4X_HINT | ConfigFlags ::FLAG_VSYNC_HINT);
|
SetConfigFlags(ConfigFlags::FLAG_WINDOW_RESIZABLE | ConfigFlags::FLAG_MSAA_4X_HINT | ConfigFlags ::FLAG_VSYNC_HINT);
|
||||||
|
|
||||||
@ -27,8 +27,8 @@ int main()
|
|||||||
SetTargetFPS(60);
|
SetTargetFPS(60);
|
||||||
|
|
||||||
bool is_editing_url = false;
|
bool is_editing_url = false;
|
||||||
std::string url_input = "https://example.com";
|
// std::string url_input = "https://example.com";
|
||||||
// std::string url_input = "test://text.html";
|
std::string url_input = "test://text.html";
|
||||||
url_input.reserve(1024);
|
url_input.reserve(1024);
|
||||||
float scroll_pos = 0.0f;
|
float scroll_pos = 0.0f;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user