Skip to content

Commit

Permalink
set most errornous to pub
Browse files Browse the repository at this point in the history
  • Loading branch information
ttytm committed Apr 4, 2024
1 parent 0733eb3 commit 40766dd
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions vlib/compress/szip/szip.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import os

@[params]
pub struct ZipFolderOptions {
pub:
omit_empty_folders bool
}

Expand Down
1 change: 1 addition & 0 deletions vlib/dl/loader/loader.v
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ mut:
// DynamicLibLoaderConfig is a configuration for DynamicLibLoader.
@[params]
pub struct DynamicLibLoaderConfig {
pub:
// flags is the flags for dlopen.
flags int = dl.rtld_lazy
// key is the key to register the DynamicLibLoader.
Expand Down
2 changes: 2 additions & 0 deletions vlib/encoding/csv/README_csv_reader.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ Using these structs, it is possible to change the behavior of the CSV Reader.
The config struct is as follows:
```v ignore
pub struct SequentialReaderConfig {
pub:
scr_buf voidptr // pointer to the buffer of data
scr_buf_len i64 // if > 0 use the RAM pointed by scr_buf as source of data
file_path string
Expand Down Expand Up @@ -128,6 +129,7 @@ Using these structs, it is possible to change the behavior of the CSV Reader.
The config struct is as follows:
```v ignore
pub struct RandomAccessReaderConfig {
pub:
scr_buf voidptr // pointer to the buffer of data
scr_buf_len i64 // if > 0 use the RAM pointed from scr_buf as source of data
file_path string
Expand Down
2 changes: 2 additions & 0 deletions vlib/encoding/csv/csv_reader_random_access.v
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ pub mut:

@[params]
pub struct RandomAccessReaderConfig {
pub:
scr_buf voidptr // pointer to the buffer of data
scr_buf_len i64 // if > 0 use the RAM pointed from scr_buf as source of data
file_path string
Expand Down Expand Up @@ -344,6 +345,7 @@ pub fn (mut cr RandomAccessReader) get_row(y int) ![]string {

@[params]
pub struct GetCellConfig {
pub:
x int
y int
}
Expand Down
1 change: 1 addition & 0 deletions vlib/encoding/csv/csv_reader_sequential.v
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import os

@[params]
pub struct SequentialReaderConfig {
pub:
scr_buf voidptr // pointer to the buffer of data
scr_buf_len i64 // if > 0 use the RAM pointed by scr_buf as source of data
file_path string
Expand Down
2 changes: 2 additions & 0 deletions vlib/encoding/html/escape.v
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ import strconv

@[params]
pub struct EscapeConfig {
pub:
quote bool = true
}

@[params]
pub struct UnescapeConfig {
EscapeConfig
pub:
all bool
}

Expand Down
2 changes: 2 additions & 0 deletions vlib/encoding/xml/entity.v
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ pub const default_entities_reverse = {

@[params]
pub struct EscapeConfig {
pub:
reverse_entities map[string]string = xml.default_entities_reverse
}

Expand All @@ -38,6 +39,7 @@ pub fn escape_text(content string, config EscapeConfig) string {

@[params]
pub struct UnescapeConfig {
pub:
entities map[string]string = xml.default_entities
}

Expand Down
4 changes: 4 additions & 0 deletions vlib/encoding/xml/types.v
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,25 @@ pub:
pub type DTDListItem = DTDElement | DTDEntity

pub struct DTDEntity {
pub:
name string @[required]
value string @[required]
}

pub struct DTDElement {
pub:
name string @[required]
definition []string @[required]
}

pub struct DocumentTypeDefinition {
pub:
name string
list []DTDListItem
}

pub struct DocumentType {
pub:
name string @[required]
dtd DTDInfo
}
Expand Down
1 change: 1 addition & 0 deletions vlib/io/util/util.v
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const retries = 10000

@[params]
pub struct TempFileOptions {
pub:
path string = os.temp_dir()
pattern string
}
Expand Down
1 change: 1 addition & 0 deletions vlib/time/stopwatch.v
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module time

@[params]
pub struct StopWatchOptions {
pub:
auto_start bool = true
}

Expand Down
1 change: 1 addition & 0 deletions vlib/v/help/help.v
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ fn help_dir() string {

@[params]
pub struct ExitOptions {
pub:
exit_code int
}

Expand Down

0 comments on commit 40766dd

Please sign in to comment.