1 source functions
forgejo docs edited this page 2026-11-17 18:02:00 +00:00

Source functions

This file contains the definitions and documentation of the functions

Go back to homepage
Skip to files index

Defined in this file

The following 56 functions are referenced here

function append_pair

Go back to top

int append_pair(pair * list, char * name, char * value);

Defined in src/cl/pairs.c:35

Return type

int

Arguments

  1. list : pair *
  2. name : char *
  3. value : char *

function arg_value

Go back to top

char * arg_value(int argc, char * argv, char * target);

Defined in src/aux/args.c:14

Return type

char *

Arguments

  1. argc : int
  2. argv : char *
  3. target : char *

function create_pair

Go back to top

pair create_pair(char * k, char * v);

Defined in src/cl/pairs.c:5

Return type

pair

Arguments

  1. k : char *
  2. v : char *

function copy_content

Go back to top

int copy_content(const char * sourcename, char * destname, chained_cell includes, int recursion_level);

Defined in src/aux/tools.c:55

Return type

int

Arguments

  1. sourcename : const char * - constant
  2. destname : char *
  3. includes : chained_cell
  4. recursion_level : int

function copy_rec

Go back to top

int copy_rec(char * base_source, char * base_dest, char * restpath, chained_cell includes, int recursion_level, char ** selected_features, int selected_features_size);

Defined in src/aux/tools.c:100

Return type

int

Arguments

  1. base_source : char *
  2. base_dest : char *
  3. restpath : char *
  4. includes : chained_cell
  5. recursion_level : int
  6. selected_features : char **
  7. selected_features_size : int

function destroy_pair

Go back to top

void destroy_pair(pair list);

Defined in src/cl/pairs.c:24

Return type

void

Arguments

  1. list : pair

function destroy_plib_config

Go back to top

void destroy_plib_config(plib_config config);

Defined in src/core/config.c:150

Return type

void

Arguments

  1. config : plib_config

function do_include

Go back to top

int do_include(char * name);

Defined in src/aux/tools.c:44

Return type

int

Arguments

  1. name : char *

function display_list

Go back to top

void display_list(char * path);

Defined in src/commands/commands.c:24

Return type

void

Arguments

  1. path : char *

function destroy_features_array

Go back to top

void destroy_features_array(char ** arr);

Defined in src/commands/commands.c:178

Return type

void

Arguments

  1. arr : char **

function display_uniqcl

Go back to top

void display_uniqcl(chained_cell cell, void * data);

Defined in src/commands/commands.c:474

Return type

void

Arguments

  1. cell : chained_cell
  2. data : void *

function display_info

Go back to top

int display_info(char * libspath, char * name);

Defined in src/commands/commands.c:478

Return type

int

Arguments

  1. libspath : char *
  2. name : char *

function default_config

Go back to top

psyncconfig default_config();

Defined in src/commands/sync.c:62

Return type

psyncconfig

Arguments

No arguments

function destroy_array

Go back to top

void destroy_array(char ** tab, int size);

Defined in src/commands/core.c:92

Return type

void

Arguments

  1. tab : char **
  2. size : int

function exists

Go back to top

int exists(pair list, char * name);

Defined in src/cl/pairs.c:16

Return type

int

Arguments

  1. list : pair
  2. name : char *

function exec_command

Go back to top

int exec_command(char * args);

Defined in src/aux/tools.c:24

Return type

int

Arguments

  1. args : char *

function extract_features

Go back to top

char ** extract_features(char * input, int * size);

Defined in src/commands/commands.c:145

Return type

char **

Arguments

  1. input : char *
  2. size : int *

function fill_callback

Go back to top

void fill_callback(chained_cell cell, void * pdata);

Defined in src/core/config.c:17

Return type

void

Arguments

  1. cell : chained_cell
  2. pdata : void *

function find_all

Go back to top

int find_all(int argc, char * argv, struct arg_input args, int size);

Defined in src/aux/args.c:47

Return type

int

Arguments

  1. argc : int
  2. argv : char *
  3. args : struct arg_input
  4. size : int

function get_value

Go back to top

char * get_value(pair list, char * name);

Defined in src/cl/pairs.c:58

Return type

char *

Arguments

  1. list : pair
  2. name : char *

function get_uniq_deps

Go back to top

chained_cell get_uniq_deps(plib_config config);

Defined in src/aux/tools.c:189

Return type

chained_cell

Arguments

  1. config : plib_config

function get_int

Go back to top

int get_int(int argc, char * argv, char * target, int * res);

Defined in src/aux/args.c:38

Return type

int

Arguments

  1. argc : int
  2. argv : char *
  3. target : char *
  4. res : int *

function get_includes_list

Go back to top

chained_cell get_includes_list(char * includesb, char ** deps, int size, int * valid);

Defined in src/commands/commands.c:72

Return type

chained_cell

Arguments

  1. includesb : char *
  2. deps : char **
  3. size : int
  4. valid : int *

function generate_config

Go back to top

int generate_config(char * outputname, char * depstring, char * featuresstring);

Defined in src/commands/commands.c:361

Return type

int

Arguments

  1. outputname : char *
  2. depstring : char *
  3. featuresstring : char *

function handle_pushing

Go back to top

void handle_pushing(chained_cell * feature_deps, int features_index, plib_config config);

Defined in src/core/config.c:24

Return type

void

Arguments

  1. feature_deps : chained_cell *
  2. features_index : int
  3. config : plib_config

function help_page

Go back to top

void help_page(struct arg_input args, int size, char * util_name);

Defined in src/main.c:36

Return type

void

Arguments

  1. args : struct arg_input
  2. size : int
  3. util_name : char *

function handle_substring

Go back to top

void handle_substring(char * sub, pair * pairs);

Defined in src/commands/commands.c:41

Return type

void

Arguments

  1. sub : char *
  2. pairs : pair *

function init_lib

Go back to top

void init_lib(char * str);

Defined in src/main.c:17

Return type

void

Arguments

  1. str : char *

function init_conf

Go back to top

void init_conf(char * str);

Defined in src/main.c:26

Return type

void

Arguments

  1. str : char *

function in_args

Go back to top

int in_args(int argc, char * argv, char * target);

Defined in src/aux/args.c:5

Return type

int

Arguments

  1. argc : int
  2. argv : char *
  3. target : char *

function is_sys

Go back to top

int is_sys(char * input);

Defined in src/commands/commands.c:17

Return type

int

Arguments

  1. input : char *

function install

Go back to top

int install(char * path, char * name, char * dest, char * includes, char * features);

Defined in src/commands/commands.c:183

Return type

int

Arguments

  1. path : char *
  2. name : char *
  3. dest : char *
  4. includes : char *
  5. features : char *

function main

Go back to top

int main(int argc, char * argv);

Defined in src/main.c:59

Return type

int

Arguments

  1. argc : int
  2. argv : char *

function parse_config_file

Go back to top

plib_config parse_config_file(char * path);

Defined in src/core/config.c:39

Return type

plib_config

Arguments

  1. path : char *

function parse_int

Go back to top

int parse_int(char * input, int * res);

Defined in src/aux/args.c:23

Return type

int

Arguments

  1. input : char *
  2. res : int *

function prompt_configuration

Go back to top

int prompt_configuration(char * name, char * default_value, char * result);

Defined in src/commands/commands.c:577

Return type

int

Arguments

  1. name : char *
  2. default_value : char *
  3. result : char *

function read_sync_config_file

Go back to top

psyncconfig read_sync_config_file(char * path, int * returncode);

Defined in src/commands/sync.c:12

Return type

psyncconfig

Arguments

  1. path : char *
  2. returncode : int *

function read_config_file

Go back to top

char ** read_config_file(char * input, int * psize);

Defined in src/commands/core.c:13

Return type

char **

Arguments

  1. input : char *
  2. psize : int *

function stringcl_create

Go back to top

chained_cell stringcl_create(char * value);

Defined in src/cl/string_cl.c:5

Return type

chained_cell

Arguments

  1. value : char *

function stringcl_destroy

Go back to top

void stringcl_destroy(chained_cell * list);

Defined in src/cl/string_cl.c:14

Return type

void

Arguments

  1. list : chained_cell *

function stringcl_destroy_nofree

Go back to top

void stringcl_destroy_nofree(chained_cell * list);

Defined in src/cl/string_cl.c:28

Return type

void

Arguments

  1. list : chained_cell *

function stringcl_size

Go back to top

unsigned long int stringcl_size(chained_cell list);

Defined in src/cl/string_cl.c:41

Return type

unsigned long int

Arguments

  1. list : chained_cell

function stringcl_append

Go back to top

int stringcl_append(chained_cell * list, char * value);

Defined in src/cl/string_cl.c:52

Return type

int

Arguments

  1. list : chained_cell *
  2. value : char *

function stringcl_exists

Go back to top

int stringcl_exists(chained_cell list, char * value);

Defined in src/cl/string_cl.c:74

Return type

int

Arguments

  1. list : chained_cell
  2. value : char *

function stringcl_remove

Go back to top

int stringcl_remove(chained_cell * list, char * value);

Defined in src/cl/string_cl.c:82

Return type

int

Arguments

  1. list : chained_cell *
  2. value : char *

function stringcl_removep

Go back to top

int stringcl_removep(chained_cell * list, chained_cell target);

Defined in src/cl/string_cl.c:109

Return type

int

Arguments

  1. list : chained_cell *
  2. target : chained_cell

function stringcl_foreach

Go back to top

void stringcl_foreach(chained_cell list, void * data, void callback(chained_cell, void * __arg_no_4);

Defined in src/cl/string_cl.c:138

Return type

void

Arguments

  1. list : chained_cell
  2. data : void *
  3. callback(chained_cell : void
  4. __arg_no_4 : void *

function stringcl_to_array

Go back to top

char ** stringcl_to_array(chained_cell list, unsigned long * size);

Defined in src/cl/string_cl.c:147

Return type

char **

Arguments

  1. list : chained_cell
  2. size : unsigned long *

function streq

Go back to top

int streq(char * a, char * b);

Defined in src/aux/tools.c:14

Return type

int

Arguments

  1. a : char *
  2. b : char *

function skip

Go back to top

int skip(char * path);

Defined in src/aux/tools.c:89

Return type

int

Arguments

  1. path : char *

function sync_database

Go back to top

int sync_database(psyncconfig config, char * files);

Defined in src/commands/commands.c:607

Return type

int

Arguments

  1. config : psyncconfig
  2. files : char *

function save_sync_config_file

Go back to top

int save_sync_config_file(char * path, psyncconfig config);

Defined in src/commands/sync.c:44

Return type

int

Arguments

  1. path : char *
  2. config : psyncconfig

function setup

Go back to top

void setup(char * path);

Defined in src/commands/core.c:7

Return type

void

Arguments

  1. path : char *

function update_config

Go back to top

int update_config(psyncconfig config, char * save_path);

Defined in src/commands/commands.c:590

Return type

int

Arguments

  1. config : psyncconfig
  2. save_path : char *

function version

Go back to top

int version();

Defined in src/commands/commands.c:652

Return type

int

Arguments

No arguments

function write_config_file

Go back to top

int write_config_file(plib_config config, char * path);

Defined in src/core/config.c:173

Return type

int

Arguments

  1. config : plib_config
  2. path : char *

Indexed files