summaryrefslogtreecommitdiff
path: root/src/lib/conf
AgeCommit message (Collapse)Author
2021-03-12Update copyrights to 2021, using "make update-copyright"Nick Mathewson
2020-11-12Fix typos.Samanta Navarro
Typos found with codespell. Please keep in mind that this should have impact on actual code and must be carefully evaluated: src/core/or/lttng_circuit.inc - ctf_enum_value("CONTROLER", CIRCUIT_PURPOSE_CONTROLLER) + ctf_enum_value("CONTROLLER", CIRCUIT_PURPOSE_CONTROLLER)
2020-05-19Merge branch 'maint-0.4.3'Nick Mathewson
2020-05-19Doxygen: fix unbalanced groups.Nick Mathewson
Closes ticket 34255.
2020-02-06Use parentheses to avoid mis-indentations of stringified macro argsNick Mathewson
clang-format sometimes thinks that "#name" should be written as "# name" if it appears at the start of a line. Using () appears to suppress this, while confusing Coccinelle.
2020-01-09Merge branch 'pre_formatter_cleanups_squashed'Nick Mathewson
2020-01-09lib/conf: include torint.h in files that use it.Nick Mathewson
This frees us from some dependencies on include order.
2020-01-08It's 2020. Update the copyright dates with "make update-copyright"Nick Mathewson
2019-12-19Allow struct_magic to be disabled.Nick Mathewson
When a subsystem is disabled, there will be no corresponding object allocated, and no magic numbers on it.
2019-12-19Support a flag to indicate that a config var is disabledNick Mathewson
Like "obsolete" variables, these variables produce a warning when you try to set them, but the warning says that the relevant module doesn't have support. The confdecl macros now have a CONF_CONTEXT that you can define to make all the modules in a given table disabled.
2019-12-15Add torint.h include to confdecl.h.Nick Mathewson
This change allows other modules to include confdecl.h without having first to include integer types they might not even use.
2019-11-21config.md: suggestions from teorNick Mathewson
2019-11-15High-level documentation of configuration in Tor.Nick Mathewson
Closes ticket 32209.
2019-11-15Doxygen: rename all .dox files to end with .mdNick Mathewson
Using a standard ending here will let other tools that expect markdown understand our output here. This commit was automatically generated with: for fn in $(find src -name '*.dox'); do \ git mv "$fn" "${fn%.dox}.md"; \ done
2019-11-15Doxygen: remove /** and **/ from all .dox filesNick Mathewson
This is an automatically generated commit, made with: find src -name '*.dox' | \ xargs perl -i -ne 'print unless (m#^\s*/?\*\*/?\s*$#);'
2019-11-14Run "make autostyle"teor
2019-11-11Merge branch 'ticket32404'Nick Mathewson
2019-11-11clarify OBSOLETE vs IGNORE.Nick Mathewson
2019-11-11doxygen: use <tt> and # to avoid interpreting # as a link.Nick Mathewson
2019-11-07Refactor "OBSOLETE" typeNick Mathewson
It no longer warns, and is now defined in terms of an "IGNORE" type. (The "IGNORE" type is the same as "OBSOLETE", except that it is not reported as obsolete. It should be useful for disabled modules.) Closes ticket 32404.
2019-11-07New configuration flag to warn that a variable is obsolete.Nick Mathewson
Part of 32404.
2019-11-07Stop using "config_suite_offset=-1" to indicate "no config suite."Nick Mathewson
Instead, create a separate "has_config_suite" boolean, so that only top-level formats with config_suites need to declare an offset at all.
2019-11-07Define a low-level version of the confdecl table macrosNick Mathewson
This version uses the enum rather than the type definitions, to avoid layering violations and linking problems.
2019-11-07Add FOO_type_defn globals so that confdecl.h can refer to them.Nick Mathewson
2019-11-07Macros for declaring configuration structs and variable-tablesNick Mathewson
In our old design, we had to declare configuration structures (like or_options_t) and variable tables (like option_vars_) separately, and we used some magic to enforce their consistency (see conftesting.h). With this design, we write a single definition for the configuration object and its fields, and use C macros to expand it either into a structure, or a variable table. Since they are both made from the same source, they can't become inconsistent. The two designs can coexist happily, and we can migrate from one to the other at our convenience.
2019-11-05Merge branch 'doxygen_libs'Nick Mathewson
2019-11-05Merge remote-tracking branch 'tor-github/pr/1486'teor
2019-11-04Doxygen: Avoid ambiguity in @dir directivesNick Mathewson
This commit was automatically generated with: find src -name '*.dox' |xargs perl -i -pe 's{\@dir ([^/])}{\@dir /$1};'
2019-11-04doxygen: Take "lib" descriptions from doc/HACKING/design.Nick Mathewson
This commit takes descriptions for src/lib and moves them into our doxygen hierarchy. I've covered everything from lib/cc through lib/sandbox here.
2019-11-04Add stub directory-level documentation for most source directoriesNick Mathewson
This includes app, core, feature, lib, and tools, but excludes ext, test, and trunnel. This was generated by the following shell script: cd src for dname in $(find lib core feature app tools -type d |grep -v \\.deps$); do keyword="$(echo "$dname" |sed -e "s/\//_/" )" target="${dname}/${keyword}.dox" echo "$target" cat <<EOF >"$target" /** @dir ${dname} @brief ${dname} **/ EOF git add "$target" done
2019-10-30Add a CFLG_IMMUTABLE flag to mark a field as unchangeable.Nick Mathewson
2019-10-26Documentation cleanup in confmacros.hNick Mathewson
2019-10-26Rename confparse.[ch] identifiers to confmgt.[ch] identifiers.Nick Mathewson
This is an automated commit, generated by this command: ./scripts/maint/rename_c_identifier.py \ confparse.h confmgt.h \ confparse.c confmgt.c \ CONFPARSE_PRIVATE CONFMGT_PRIVATE \ TOR_CONFPARSE_H TOR_CONFMGT_H
2019-10-26Move config_format_t and allied definitions into conftypes.hNick Mathewson
Since these are needed by every module that is _configurable_, they belong in lib/conf, not lib/confmgt.
2019-10-22Re-run make autostyle.Nick Mathewson
2019-10-22conftesting.h: when COCCI is defined, disable unhandled macrosNick Mathewson
2019-10-22confmacros.h: fix coccinelle parsing.Nick Mathewson
2019-09-11Extract common list of flags to use for obsolete variables.Nick Mathewson
2019-09-11Revise documentation on CFLG_* flagsNick Mathewson
2019-09-11Remove all CVFLAG_* usage.Nick Mathewson
2019-09-11Remove all VTFLAG_* usage.Nick Mathewson
2019-09-11confparse, conftypes: Replace flags with their new names.Nick Mathewson
The old names remain as #defines that cause variables to get one or more flags. Now every flag-testing function in confparse.c tests exactly one flag.
2019-09-11Re-number VTFLAG_* values so they don't conflict with CVFLAG_*Nick Mathewson
2019-09-11Move VTFLAG_* declarations to conftypes.hNick Mathewson
2019-09-05Merge branch 'tor-github/pr/1294'George Kadianakis
2019-09-05Merge branch 'tor-github/pr/1293'George Kadianakis
2019-09-04Document fields of struct_magic_decl_t.Nick Mathewson
2019-09-04config: explain CONFIG_TYPE_EXTENDEDNick Mathewson
Also add an explanation of a possible future refactoring where we might remove the config_type_t enumeration entierly. Fixes ticket 31624. No changes file, since this is a comment-only change.
2019-09-04config: use ptrdiff_t for all field-offset members.Nick Mathewson
Previously we used int here, but it is more correct to use ptrdiff_t. (This never actually matters for our code in practice, since the structure we are managing here never exceed INT_MAX in size.)
2019-08-24clarify usage of __ and ___ prefixes on config optionsNick Mathewson