Skip to content

Commit

Permalink
more functions mark as private
Browse files Browse the repository at this point in the history
  • Loading branch information
sulincix committed Aug 15, 2024
1 parent 8f4e203 commit ef3eb9d
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 9 deletions.
Empty file modified example/application/run_script.c
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion src/data/ympbuild.vala
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ public class ympbuild {
public string ympbuild_buildpath;
private string ympbuild_header;

public void ympbuild_init () {
private void ympbuild_init () {
if (ympbuild_srcpath == null) {
ympbuild_srcpath = "./";
}
Expand Down
2 changes: 1 addition & 1 deletion src/interpreter.vala
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public int ymp_run() {
}

// preprocessor
private string[] split_args(string line) {
private static string[] split_args(string line) {
array ret = new array();
string cur = "";
char c = '\0';
Expand Down
6 changes: 3 additions & 3 deletions src/operations.vala
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@ private void add_operation (operation op) {
ops += op;
}

private void lock_operation () {
private static void lock_operation () {
block_sigint ();
if (get_bool ("unblock")) {
unblock_sigint ();
}
}
private void unlock_operation () {
private static void unlock_operation () {
unblock_sigint ();
}

public int operation_main(string type, string[] args){
private static int operation_main(string type, string[] args){
if(get_bool("sandbox") && !isfile("/.sandbox")){
info (_ ("RUN (SANDBOX):") + type + ":" + join (" ", args));
sandbox_shared = get_value ("shared");
Expand Down
2 changes: 1 addition & 1 deletion src/util/builder_target/deb.vala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public void build_target_deb_init() {
private static void build_target_deb_init() {
build_target deb_target = new build_target();
deb_target.suffix = "deb";
deb_target.name = "deb";
Expand Down
2 changes: 1 addition & 1 deletion src/util/builder_target/dummy.vala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public void build_target_dummy_init() {
private static void build_target_dummy_init() {
build_target dummy_target = new build_target();
dummy_target.suffix = "dummy";
dummy_target.name = "dummy";
Expand Down
2 changes: 1 addition & 1 deletion src/util/builder_target/ymp.vala
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
public void build_target_ymp_init() {
private static void build_target_ymp_init() {
if (usr_is_merged ()) {
error_add (_ ("Build operation with usrmerge is not allowed!"));
error (31);
Expand Down
2 changes: 1 addition & 1 deletion src/ymp.vala
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void ymp_init (string[] args) {
ymp_activated = true;
}

private void directories_init () {
private static void directories_init () {
create_dir (get_build_dir ());
GLib.FileUtils.chmod (get_build_dir (), 0777);
create_dir (get_storage () + "/index/");
Expand Down

0 comments on commit ef3eb9d

Please sign in to comment.