mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
tidy-up: miscellaneous
- INSTALL-CMAKE.md: add missing periods, text fixes. - md4, md5: sync variables names. - curl_trc: sync an argument type. - docs/examples: sync debug/trace function copies, constify, tidy-ups. - replace commented code with `#if 0`. - drop redundant parenthesis (macro values, `return`, around single variables, function calls). - fix indentation, apply clang-format in places. Closes #20481
This commit is contained in:
parent
ca5efd02b6
commit
3003c32cb2
62 changed files with 291 additions and 281 deletions
|
|
@ -277,7 +277,9 @@ static void set_features(void)
|
|||
/* Commented here to prevent future bugs: A program or user should */
|
||||
/* never ever enable DECC$POSIX_STYLE_UID. */
|
||||
/* It will probably break all code that accesses UIDs */
|
||||
/* do_not_set_default("DECC$POSIX_STYLE_UID", TRUE); */
|
||||
#if 0
|
||||
do_not_set_default("DECC$POSIX_STYLE_UID", TRUE);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Some boilerplate to force this to be a proper LIB$INITIALIZE section */
|
||||
|
|
@ -288,22 +290,22 @@ static void set_features(void)
|
|||
#pragma extern_model strict_refdef "LIB$INITIALIZE" nowrt, long, nopic
|
||||
#else
|
||||
#pragma extern_model strict_refdef "LIB$INITIALIZE" nowrt, long
|
||||
# if __INITIAL_POINTER_SIZE
|
||||
# pragma __pointer_size __save
|
||||
# pragma __pointer_size 32
|
||||
# else
|
||||
# pragma __required_pointer_size __save
|
||||
# pragma __required_pointer_size 32
|
||||
# endif
|
||||
# if __INITIAL_POINTER_SIZE
|
||||
# pragma __pointer_size __save
|
||||
# pragma __pointer_size 32
|
||||
# else
|
||||
# pragma __required_pointer_size __save
|
||||
# pragma __required_pointer_size 32
|
||||
# endif
|
||||
#endif
|
||||
/* Set our contribution to the LIB$INITIALIZE array */
|
||||
void (* const iniarray[])(void) = { set_features };
|
||||
#ifndef __VAX
|
||||
# if __INITIAL_POINTER_SIZE
|
||||
# pragma __pointer_size __restore
|
||||
# else
|
||||
# pragma __required_pointer_size __restore
|
||||
# endif
|
||||
# if __INITIAL_POINTER_SIZE
|
||||
# pragma __pointer_size __restore
|
||||
# else
|
||||
# pragma __required_pointer_size __restore
|
||||
# endif
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue