Skip to content

Commit

Permalink
fix: Adapt for V langage changes
Browse files Browse the repository at this point in the history
  • Loading branch information
prantlf committed Dec 11, 2023
1 parent 8340e6e commit 16d8c86
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/errors.v
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module yaml

import prantlf.jany { Any }

[noinit]
@[noinit]
pub struct YamlError {
Error
message string
Expand Down
10 changes: 5 additions & 5 deletions src/unmarshal_test.v
Original file line number Diff line number Diff line change
Expand Up @@ -296,12 +296,12 @@ inner:
}

struct Attributes {
int int [required]
bool bool [skip]
int int @[required]
bool bool @[skip]
string string
f64 f64 [json: float; required]
u8 u8 [nooverflow]
u16 u16 [nullable]
f64 f64 @[json: float; required]
u8 u8 @[nooverflow]
u16 u16 @[nullable]
}

fn test_attributes() {
Expand Down
6 changes: 3 additions & 3 deletions src/yaml.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ module yaml
#flag @VROOT/libyaml/src/writer.o
#include "yaml.h"

[typedef]
@[typedef]
struct C.yaml_mark_t {
index usize
line usize
column usize
}

[typedef]
@[typedef]
struct C.yaml_event_t {
@type int
data struct {
Expand All @@ -36,7 +36,7 @@ struct C.yaml_event_t {
start_mark C.yaml_mark_t
}

[typedef]
@[typedef]
struct C.yaml_parser_t {
problem &char = unsafe { nil }
problem_mark C.yaml_mark_t
Expand Down

0 comments on commit 16d8c86

Please sign in to comment.