Skip to content

Commit

Permalink
chore: use relative import paths, as it is now supported
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Apr 7, 2024
1 parent 1a63b45 commit 5a7871f
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion curl/instructions/common.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module instructions

import vibe.curl.state
import state

fn C.curl_global_init(state.GlobalInitFlag)

Expand Down
2 changes: 1 addition & 1 deletion curl/instructions/easy.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module instructions

import vibe.curl.state
import state

fn C.curl_easy_init() &C.CURL
fn C.curl_easy_cleanup(&C.CURL)
Expand Down
4 changes: 2 additions & 2 deletions curl/lib.v
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ License: MIT

module curl

import vibe.curl.instructions
import vibe.curl.state
import instructions
import state

#flag -lcurl
#include <curl/curl.h>
Expand Down
2 changes: 1 addition & 1 deletion src/_instruction_download.v
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module vibe

import os
import vibe.curl
import curl

fn (req Request) download_file_(url string, file_path string) !Response {
h := curl.easy_init() or { return http_error(.easy_init, none) }
Expand Down
2 changes: 1 addition & 1 deletion src/_instructions_common.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module vibe

import vibe.curl
import curl

// Automatically call curl_global_init when using `vibe`.
fn init() {
Expand Down
2 changes: 1 addition & 1 deletion src/_instructions_get.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module vibe

import vibe.curl
import curl

fn (req Request) get_(url string) !Response {
// Curl handle
Expand Down
2 changes: 1 addition & 1 deletion src/_instructions_head.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module vibe

import vibe.curl
import curl

fn (req Request) head_(url string) !Response {
h := curl.easy_init() or { return http_error(.easy_init, none) }
Expand Down
2 changes: 1 addition & 1 deletion src/_instructions_header.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module vibe

import vibe.curl
import curl

fn set_header(handle &curl.Handle, headers HttpHeaders) &curl.LinkedList {
mut list := &curl.LinkedList(unsafe { nil })
Expand Down
2 changes: 1 addition & 1 deletion src/_instructions_post.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module vibe

import vibe.curl
import curl

fn (req Request) post_(url string, data string) !Response {
h := curl.easy_init() or { return http_error(.easy_init, none) }
Expand Down

0 comments on commit 5a7871f

Please sign in to comment.