fix: make code compile with updated V version

pull/260/head
Jef Roosens 2022-06-22 20:17:11 +02:00
parent af4fbc4ccc
commit 25d87fb5e6
Signed by: Jef Roosens
GPG Key ID: B75D4F293C7052DB
3 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@
#include "archive.h" #include "archive.h"
struct C.archive {} pub struct C.archive {}
// Create a new archive struct for reading // Create a new archive struct for reading
fn C.archive_read_new() &C.archive fn C.archive_read_new() &C.archive
@ -71,7 +71,7 @@ fn C.archive_filter_code(&C.archive, int) int
#include "archive_entry.h" #include "archive_entry.h"
struct C.archive_entry {} pub struct C.archive_entry {}
// Create a new archive_entry struct // Create a new archive_entry struct
fn C.archive_entry_new() &C.archive_entry fn C.archive_entry_new() &C.archive_entry

View File

@ -3,7 +3,7 @@ module db
import sqlite import sqlite
import time import time
struct VieterDb { pub struct VieterDb {
conn sqlite.DB conn sqlite.DB
} }

View File

@ -4,7 +4,7 @@ import os
import util import util
// Represents a read archive // Represents a read archive
struct Pkg { pub struct Pkg {
pub: pub:
path string [required] path string [required]
info PkgInfo [required] info PkgInfo [required]