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
8863 3736 d 18 h bpr /trunk/wims/src/ [clean] string_modify3 and *strip_trailing_spaces2 are in common. (not sure that it compiles
after this commit)
 
8861 3739 d 23 h bpr /trunk/wims/src/ [minor] warning for abs  
8647 3799 d 14 h bpr /trunk/wims/src/Lib/ [nospace] add insecable blank in spaces for command nospace;  
8195 3973 d 22 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
 
8160 3980 d 19 h bpr /trunk/wims/src/Lib/ [minor/clean] delete include *.c for Lib  
8122 3987 d 16 h bpr /trunk/wims/src/ [minor/] - change name: Lib/lines.c -> Lib/liblines.c
- in Misc/mathexp use -lwims
 
8100 3996 d 19 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 4007 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).
 
8082 4011 d 22 h bpr /trunk/wims/src/ [minor/src] clean search_list - it is now the same in the three occurences.  
7843 4074 d 11 h bpr /trunk/wims/src/ [minor/] replace strcpy, see r3717  
7840 4074 d 15 h bpr /trunk/wims/src/Lib/ [minor/spaces]  
7092 4307 d 17 h bpr /trunk/wims/src/Lib/ [minor/c] add {} for the loop with empty body (warning)  
7079 4312 d 14 h bpr /trunk/wims/src/ [minor/c] add {} for the loop with empty body  
7076 4312 d 16 h obado /trunk/wims/src/ [minor / c] removes somes warning messages when compiling sources with clang, + uniformize mixed indent (spaces+tabs) to spaces only  
5456 4787 d 12 h bpr /trunk/wims/src/Lib/ [major/fix] mystrncpy was not secured in 64 bits - use size_t instead of int  
3717 5284 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  
3247 5534 d 22 h bpr /trunk/wims/src/ [minor/src] declare implicit types  
895 6053 d 0 h reyssat /trunk/wims/src/Lib/ [minor/typo]  
10 6586 d 16 h reyssat /trunk/wims/src/ partial (src) import of 3.62