Rev |
Age |
Author |
Path |
Log message |
Diff |
17887 |
159 d 7 h |
georgesk |
/trunk/wims/src/ |
added $(CPPFLAGS) to default compile commands for C sources. |
|
14873 |
1491 d 3 h |
georgesk |
/trunk/wims/src/ |
This commit is about support for gcc-10. This version of gcc
is not yet mandatory, but soon gcc-9 will be outdated, and it
is good to take some advance now. Gcc-10 raises errors for every
multiple declaration of a variable, and there were many of them
in the source code.
In all but one case, the solution was to declare extern clauses in
header (.h) files, and to check that the actual variable is declared
in one of the .c file to be compiled and linked.
The file config.c contained one unused variable, with a conflicting
name, now it is commented out.
Dear coworkers, if you read those lines please review carefully the
changes. I did my best, but error is human. |
|
8811 |
3318 d 0 h |
bpr |
/trunk/wims/src/ |
[svn] |
|
8219 |
3529 d 8 h |
bpr |
/trunk/wims/src/ |
[minor/clean] dependencies in Makefile |
|
8195 |
3538 d 11 h |
bpr |
/trunk/wims/src/ |
[major/clean] clean differents definitions of errors (give differents names)
delete error1 error2 error3 which do not seem useful.
- clean Makefile |
|
8185 |
3540 d 8 h |
bpr |
/trunk/wims/src/ |
[major] - delete the include *.c in wims.c and wimslogd.c
- clean makefil
- delete hmname.c (part in rawmath.c, part in Misc/html2msg.c
- ... |
|
8173 |
3544 d 5 h |
bpr |
/trunk/wims/src/Misc/symtext/ |
[minor/] |
|
8166 |
3544 d 11 h |
bpr |
/trunk/wims/src/Misc/symtext/ |
[minor/] interversion of the options (due to ubuntu compilator). |
|
8161 |
3545 d 8 h |
bpr |
/trunk/wims/src/Misc/symtext/ |
[minor/clean] delete include *.c |
|
8126 |
3552 d 5 h |
bpr |
/trunk/wims/src/Misc/symtext/ |
[minor/typo] |
|
8122 |
3552 d 5 h |
bpr |
/trunk/wims/src/ |
[minor/] - change name: Lib/lines.c -> Lib/liblines.c
- in Misc/mathexp use -lwims |
|
8113 |
3555 d 5 h |
bpr |
/trunk/wims/src/ |
[minor/spaces] |
|
8100 |
3561 d 8 h |
bpr |
/trunk/wims/src/ |
[major/clean] clean the c code :
- change the name of some functions similar but different to keep code equivalent to the old one (strip_trailing_spaces find_matching mkdirs singlespace deaccent wordchr string_modify search_list)
- delete #include "../Lib/basicstr.c", comment functions which are at the same time in Lib and in some other file.c and add
lopt=-L$(wims_home)/lib -lwims -lm $(rpath) in the Makefile
(in Interfaces, Misc/oncechar, Misc/translator, Misc/dicsort, Misc/modind, Misc/ccsum, Texgif/texgif.c) |
|
8086 |
3572 d 7 h |
bpr |
/trunk/wims/src/ |
[major/] (Dominique Bernardi :)The string_modify() routine declared in libwims.h has two implementations, one in Lib/lines.c and the other in Msg2wims/lines.c. The second one was called string_modify2 and substituted to the first one when appropriate using the preprocessor directive
#define string_modify string_modify2
Now the standard implementation is named string_modify1 and the alternative string_modify2 as before.
They are both called as string_modify() via a function pointer. This pointer and the two functions are declared in libwims.h.
The clients of the wims library can call string_modify(), which invokes string_modify1().
Other programs (like Msg2wims) must define the pointer like this:
void (*string_modify)(char *start, char *bad_beg, char *bad_end, char *good,..) = string_modify2;
(or string_modify1 as the case may be). |
|
8084 |
3572 d 7 h |
bpr |
/trunk/wims/src/Misc/symtext/ |
[minor/spaces] |
|
8073 |
3581 d 5 h |
bpr |
/trunk/wims/src/Misc/symtext/ |
[minor/cleaning] removing duplicate files |
|
7844 |
3639 d 0 h |
bpr |
/trunk/wims/src/Misc/symtext/ |
[minor/] now Misc/symtext/lines.c and Lib/lines.c are the same ; change spaces |
|
7841 |
3639 d 3 h |
bpr |
/trunk/wims/src/Misc/symtext/ |
[minor/spaces] very similar to Lib/lines.c |
|
7076 |
3877 d 5 h |
obado |
/trunk/wims/src/ |
[minor / c] removes somes warning messages when compiling sources with clang, + uniformize mixed indent (spaces+tabs) to spaces only |
|
6776 |
3982 d 21 h |
georgesk |
/trunk/wims/src/ |
taken in account the management of CFLAGS and CPPFLAGS; this allows to apply flags for hardening executable files; see http://wiki.debian.org/Hardening |
|