Age | Commit message (Collapse) | Author | |
---|---|---|---|
2021-11-05 | Prefer use of __MINGW_PRINTF/SCANF_FORMAT if available. | Nick Mathewson | |
Mingw headers sometimes like to define alternative scanf/printf format attributes depending on whether they're using clang, UCRT, MINGW_ANSI_STDIO, or the microsoft version of printf/scanf. This change attempts to use the right one on the given platform. This is an attempt to fix part of #40355. | |||
2021-03-12 | Update copyrights to 2021, using "make update-copyright" | Nick Mathewson | |
2020-05-06 | Merge branch 'maint-0.4.3' | Nick Mathewson | |
2020-05-06 | Merge branch 'maint-0.4.2' into maint-0.4.3 | Nick Mathewson | |
2020-05-06 | Merge branch 'maint-0.4.1' into maint-0.4.2 | Nick Mathewson | |
2020-05-06 | Merge branch 'bug34078_prelim_035' into bug34078_prelim_041 | Nick Mathewson | |
2020-05-06 | Add a fallthrough macro. | Nick Mathewson | |
This macro defers to __attribute__((fallthrough)) on GCC (and clang). Previously we had been using GCC's magic /* fallthrough */ comments, but clang very sensibly doesn't accept those. Since not all compiler recognize it, we only define it when our configure script detects that it works. Part of a fix for 34078. | |||
2020-03-05 | Merge branch 'clang_format_prep_3' | Nick Mathewson | |
2020-02-12 | Run "make autostyle". | Nick Mathewson | |
2020-02-06 | Use smaller CPP error messages | Nick Mathewson | |
Clang-format wants to split these messages across multiple lines, which confuses the heck out of coccinelle. | |||
2020-01-15 | compat_compiler: add a macro to prevent coverity deadcode warnings. | Nick Mathewson | |
The POSSIBLE(e) macro evaluates to the value of (e), but does so in a way that a static analyzer will not conclude that (e) is impossible. We can use this when we expect our regular compilers to eliminate deadcode, but we don't want coverity to complain about it. Part of a fix for 32960. | |||
2020-01-09 | Merge branch 'pre_formatter_cleanups_squashed' | Nick Mathewson | |
2020-01-09 | Replace DISABLE/ENABLE_GCC_WARNING with something that will confuse ↵ | Nick Mathewson | |
clang-format less | |||
2020-01-08 | It's 2020. Update the copyright dates with "make update-copyright" | Nick Mathewson | |
2019-11-18 | Merge remote-tracking branch 'tor-github/pr/1517' | teor | |
2019-11-16 | Revise struct names in examples in comments to end with _t | Nick Mathewson | |
2019-11-15 | Doxygen: rename all .dox files to end with .md | Nick 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-15 | Doxygen: remove /** and **/ from all .dox files | Nick Mathewson | |
This is an automatically generated commit, made with: find src -name '*.dox' | \ xargs perl -i -ne 'print unless (m#^\s*/?\*\*/?\s*$#);' | |||
2019-11-07 | lib/cc: Define the standard C macro pasting trick in one place. | Nick Mathewson | |
This file is a workaround for the issue that if you say `a ## b` to create a token that is the name of a macro, the C preprocessor won't expand that macro. So you can't say this: #define FOO__SQUARE(x) ((x)*(x)) #define FOO__CUBE(x) ((x)*(x)*(x)) #define FOO(func, x) FOO__##func(x) Instead, the standard C trick is to add a layer of indirection: #define PASTE(a,b) PASTE__(a,b) #define PASTE__(a,b) a ## b #define FOO__SQUARE(x) ((x)*(x)) #define FOO__CUBE(x) ((x)*(x)*(x)) #define FOO(func, x) PASTE(FOO__, func)(x) We should use this kind of trick sparingly, since it gets confusing. | |||
2019-11-04 | Doxygen: Avoid ambiguity in @dir directives | Nick Mathewson | |
This commit was automatically generated with: find src -name '*.dox' |xargs perl -i -pe 's{\@dir ([^/])}{\@dir /$1};' | |||
2019-11-04 | doxygen: 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-04 | Add stub directory-level documentation for most source directories | Nick 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-22 | Merge branch 'ticket31705_v2' into ticket31705_v2_merged | Nick Mathewson | |
Conflicts: src/feature/dirparse/authcert_parse.c src/feature/dirparse/ns_parse.c src/feature/hs/hs_service.c src/lib/conf/conftesting.h src/lib/log/log.h src/lib/thread/threads.h src/test/test_options.c These conflicts were mostly related to autostyle improvements, with one or two due to doxygen fixes. | |||
2019-10-22 | ctassert.h: fix CTASSERT_DECL so coccinelle can parse it. | Nick Mathewson | |
2019-09-30 | Re-run "make autostyle" with improved annotate_ifdef_directives | Nick Mathewson | |
2019-09-04 | compat_compiler: fix documentation for STRUCT_VAR_P | Nick Mathewson | |
Previously we had said that off_t was a reasonable type to hold the result of offsetof(). That isn't so: ptrdiff_t is correct. | |||
2019-06-05 | Run "make autostyle." | Nick Mathewson | |
2019-05-02 | Add comments to include.am files to note where new sources go | Nick Mathewson | |
This mechanism isn't perfect, and sometimes it will guess wrong, but it will help our automation. | |||
2019-03-26 | Merge branch 'messaging_v3' into messaging_v3_merged | Nick Mathewson | |
2019-03-25 | Add a macro for the fairly common "eat next semicolon" syntax trick | Nick Mathewson | |
You use this when you're defining a macro to be used at file scope, and you want to require a semicolon afterwards. | |||
2019-03-25 | Move sizeof check to torint.h | rl1987 | |
2019-01-16 | Bump copyright date to 2019 | Nick Mathewson | |
2019-01-16 | Bump copyright date to 2019. | Nick Mathewson | |
2018-11-07 | simplify now that it uses tor's copyright and license | Roger Dingledine | |
2018-11-07 | Switch ctassert.h to 3bsd (with permission) | Nick Mathewson | |
2018-11-06 | Allow lib/cc to include its own files. | Nick Mathewson | |
2018-11-06 | Change copyright statement (with permission) | Nick Mathewson | |
2018-11-06 | Remove a tab. | Nick Mathewson | |
2018-11-06 | Add parentheses to the ctassert macro expansions | Nick Mathewson | |
2018-11-06 | New macro CTASSERT(condition) to assert condition at compile-time. | Taylor R Campbell | |
To get it, use: #include "lib/cc/ctassert.h" | |||
2018-07-31 | Add TOR_PRIdSZ to torint.h | teor | |
2018-07-10 | File-level summary documentation for src/lib/*/*.[ch] | Nick Mathewson | |
2018-07-03 | Retire U64_TO_DBL and DBL_TO_U64 | Nick Mathewson | |
These were necessary long ago to work around a bug in VC6. | |||
2018-07-03 | Return U64_PRINTF_ARG and U64_FORMAT | Nick Mathewson | |
The standard is printf("%"PRIu64, x); | |||
2018-07-03 | Replace U64_LITERAL with the standard UINT64_C | Nick Mathewson | |
2018-07-03 | Retire some unused (or nearly unused) macros. | Nick Mathewson | |
2018-07-03 | Use the standard SHRT_MAX name. | Nick Mathewson | |
2018-07-03 | Require stdint.h and inttypes.h | Nick Mathewson | |
We've been silently requiring stdint.h for a while now, and nobody has complained. Closes ticket 26626. | |||
2018-07-03 | Remove ATTR_NONNULL macro | rl1987 | |
2018-07-01 | File-level documentation for some of src/lib. | Nick Mathewson | |