aboutsummaryrefslogtreecommitdiff
path: root/scripts/maint/add_c_file.py
AgeCommit message (Collapse)Author
2020-01-20add_c_file: Replace asserts with exceptionsteor
Closes 32962.
2020-01-20add_c_file: Improve script documentationteor
Part of 32962.
2020-01-20add_c_file: Improve tor source directory checksteor
Check that the script isn't in a tor build directory, by looking for a src/include.am file. Part of 32962.
2020-01-16add_c_file: Rename variables based on the type of pathteor
* fname for generic file paths * tor_fname for paths relative to the top-level tor directory * src_fname for paths relative to tor's src directory With prefixes as required to disambiguate different paths of the same type. Part of 32962.
2020-01-16add_c_file: Simplify some usage of srcdir_file()teor
Part of 32962.
2020-01-16add_c_file: Document the paths used by each part of the scriptteor
Most paths are relative to the top-level tor directory, but the paths in the C and H files are relative to tor's src directory. Part of 32962.
2020-01-16add_c_file: Improve path handling and canonicalisationteor
* distinguish between paths relative to the top-level tor directory, and paths relative to tor's src directory * canonicalise paths before using them * check that the script is run from the top-level tor directory * check that the file is being created in tor's src directory Part of 32962.
2020-01-16add_c_file: tolerate ./ in filenames.Nick Mathewson
2020-01-16add_c_file: handle adding to the end of a list correctly.Nick Mathewson
Fixes bug 32962.
2020-01-13Split core/include.am into per-subdirectory include.am filesNick Mathewson
Closes ticket 32137.
2019-12-12python: Add __future__ imports for python 3 compatibilityteor
Except for src/ext, which we may not want to modify. Closes ticket 32732.
2019-09-16Fix add_c_file.py script to support paths starting with ./ #31336Daniel Pinto
2019-06-24Add a "typed_var" abstraction to implement lvalue access in C.Nick Mathewson
Right now, this has been done at a high level by confparse.c, but it makes more sense to lower it. This API is radically un-typesafe as it stands; we'll be wrapping it in a safer API as we do #30914 and lower the struct manipulation code as well. Closes ticket 30864.
2019-05-20rectify_include_paths: warn instead of aborting on duplicate headersNick Mathewson
We have two sendme.h files at the moment; we should fix that, but not in this branch.