Subversion Repositories wimsdev

Rev

Go to most recent revision | Show changed files | Details | Compare with Previous | Blame | RSS feed

Filtering Options

Rev Age Author Path Log message Diff
14873 1899 d 13 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.
 
14712 1943 d 13 h bpr /trunk/wims/src/ [improvment] the command ''sort nocase'' takes in account the accented letters as in a dictionary  
13757 2283 d 22 h bpr /trunk/wims/ [workinprogress] add a wims command to translate html characters for latex print.
(name is not definitive).
 
8880 3709 d 11 h bpr /trunk/wims/src/ [clean] transfer of *bufprep(char *p) char *parend(char *p) in Lib/liblines.c  
8647 3772 d 13 h bpr /trunk/wims/src/Lib/ [nospace] add insecable blank in spaces for command nospace;  
8195 3946 d 21 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
 
8177 3952 d 10 h bpr /trunk/wims/src/ [minor/clean] "include <*> " before the others includings.  
8160 3953 d 18 h bpr /trunk/wims/src/Lib/ [minor/clean] delete include *.c for Lib  
8122 3960 d 15 h bpr /trunk/wims/src/ [minor/] - change name: Lib/lines.c -> Lib/liblines.c
- in Misc/mathexp use -lwims
 
8100 3969 d 18 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 3980 d 17 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).
 
8079 3985 d 16 h bpr /trunk/wims/src/Lib/ [minor/] clean : add parenthesis  
7847 4046 d 9 h bpr /trunk/wims/src/ [major/] add evaluation function in c in libwims (D. Bernardi).  
7798 4052 d 1 h bpr /trunk/wims/src/Lib/ [minor/formatage] tab - formatage  
5476 4757 d 14 h bpr /trunk/wims/src/Lib/ [minor/svn]  
5456 4760 d 11 h bpr /trunk/wims/src/Lib/ [major/fix] mystrncpy was not secured in 64 bits - use size_t instead of int  
3717 5257 d 19 h reyssat /trunk/wims/src/Lib/ [major/fix] replaced strcpy function in C code to avoid problem on 64 bits machines in case of overlapping strings  
10 6559 d 15 h reyssat /trunk/wims/src/ partial (src) import of 3.62