Subversion Repositories wimsdev

Rev

Go to most recent revision | Show changed files | Directory listing | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
17887 159 d 6 h georgesk /trunk/wims/src/ added $(CPPFLAGS) to default compile commands for C sources.  
15780 1126 d 9 h georgesk /trunk/wims/src/Misc/mathexp/ modified size limits inside snprintf calls, to prevent the warnings about possible truncations  
15297 1378 d 4 h bpr /trunk/wims/src/ [minor] clean not useful comments  
14873 1491 d 2 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.
 
11132 2693 d 11 h bpr /trunk/wims/src/ [minor] delete tabs introduced in recent releases.  
11124 2696 d 7 h georgesk /trunk/wims/src/Misc/ fixed warnings about non-indented 'if' or 'for' clauses  
8807 3318 d 4 h bpr /trunk/wims/ [maintainer] some svn ignore in prevision of gcov  
8219 3529 d 7 h bpr /trunk/wims/src/ [minor/clean] dependencies in Makefile  
8195 3538 d 10 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 7 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
- ...
 
8177 3543 d 22 h bpr /trunk/wims/src/ [minor/clean] "include <*> " before the others includings.  
8136 3550 d 10 h bpr /trunk/wims/src/Misc/mathexp/ [major/] transform the include *.c  
8122 3552 d 4 h bpr /trunk/wims/src/ [minor/] - change name: Lib/lines.c -> Lib/liblines.c
- in Misc/mathexp use -lwims
 
8100 3561 d 7 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 6 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).
 
6776 3982 d 20 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  
3840 4818 d 23 h kbelabas /trunk/wims/src/Misc/ [minor/compile] kill warnings  
3838 4818 d 23 h kbelabas /trunk/wims/src/Misc/mathexp/ [minor/compile] use regfree insteed of free for regcomp-generated struct  
3813 4820 d 1 h kbelabas /trunk/wims/src/Misc/ [minor/compile] kill warning in a portable way. The proper fix (use %td in
the format instead of %d / %ld) is only available from glibc 2.1 on, so can't
be used portably
 
3807 4820 d 2 h kbelabas /trunk/wims/src/Misc/mathexp/ kill warning  

Show All