]> git.lyx.org Git - features.git/blob - ChangeLog
Fixed some bugs and introduced some memory leaks!
[features.git] / ChangeLog
1 1999-10-20  Juergen Vigna  <jug@sad.it>
2
3         * src/insets/figinset.C: just commented some fl_free_form calls
4         and added warnings so that this calls should be activated later
5         again. This avoids for now a segfault, but we have a memory leak!
6
7         * src/lyxfunc.C (processKeyEvent) (Dispatch): changed
8         'const char * argument' to 'string argument', this should
9         fix some Asserts() in lyxstring.C.
10
11         * src/lyxfunc.h: Removed the function argAsString(const char *)
12         as it is not used anymore.
13
14 1999-10-20  Lars Gullik Bjønnes  <larsbj@lyx.org>
15
16         * src/support/lyxstring.C (helper): changed to use
17         sizeof(object->rep->ref).
18         (operator>>): changed to use a pointer instead.
19
20         * src/support/lyxstring.h: changed const reference & to value_type
21         const & lets see if that helps.
22
23 1999-10-19  Lars Gullik Bjønnes  <larsbj@lyx.org>
24
25         * Makefile.am (rpmdist): fixed to have non static package and
26         verison.
27
28         * src/support/lyxstring.C: removed the compilation guards
29
30         * src/vspace.C (nextToken): use i + 1  instead of ++i. Maks things
31         a bit clearer.
32
33         * src/support/Makefile.am (LYXSTRING): bruker USE_LYXSTRING for
34         conditional compile of lyxstring.Ch
35
36         * acinclude.m4 (LYX_CXX_STL_STRING): new and improved, still a
37         stupid check, but it is a lot better than the bastring hack. 
38         (LYX_CXX_STL_STRING): bruker nå AM_CONDITIONAL(USE_LYXSTRING  
39
40         * several files: changed string::erase into string::clear. Not
41         really needed.
42         
43         * src/chset.C (encodeString): use a char temporary instead
44
45         * src/table.C (TexEndOfCell): added tostr around
46         column_of_cell(fcell+i)+1 and around right_column_of_cell(fcell+i)+1
47         (TexEndOfCell): ditto
48         (TexEndOfCell): ditto
49         (TexEndOfCell): ditto
50         (DocBookEndOfCell): ditto
51         (DocBookEndOfCell): ditto
52         (DocBookEndOfCell): ditto
53         (DocBookEndOfCell): ditto
54
55         * src/paragraph.C (TeXEnvironment): added tostr around foot_count -1
56
57         * src/lyxfr1.C (SearchReplaceAllCB): added tostr around replace_count
58
59         * src/lyx_cb.C (MenuRunLaTeX): added tostr around ret
60         (MenuBuildProg): added tostr around ret
61         (MenuRunChktex): added tostr around ret
62         (DocumentApplyCB): added tostr around ret
63
64         * src/chset.C (encodeString): added tostr around t->ic
65
66         * src/buffer.C (makeLaTeXFile): added tostr around secnumdepth
67         (makeLaTeXFile): added tostr around tocdepth
68         (makeLaTeXFile): added tostr around ftcound - 1
69
70         * src/insets/insetbib.C (setCounter): added tostr around counter.
71
72         * src/support/lyxstring.h: added an operator+=(int) to catch more
73         mistakes. 
74
75         * src/support/lyxstring.C (lyxstring): We DON'T allow NULL pointers.
76         (lyxstring): We DON'T allow NULL pointers.
77
78 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
79
80         * src/mathed/math_macro.C (MathMacroArgument::Write,
81         MathMacroTemplate::WriteDef): add tostr() around macro arg numbers
82         when writing them out.
83
84         * src/LString.C: remove, since it is not used anymore.
85         
86         * src/support/lyxstring.C: condition the content to
87         USE_INCLUDED_STRING macro.
88
89         * src/mathed/math_symbols.C, src/support/lstrings.C,
90         src/support/lyxstring.C: add `using' directive to specify what
91         we need in <algorithm>. I do not think that we need to
92         conditionalize this, but any thought is appreciated.
93
94         * many files: change all callback functions to "C" linkage
95         functions to please strict C++ compilers like DEC cxx 6.1 in mode
96         strict_ansi. Those who were static are now global. 
97             The case of callbacks which are static class members is
98         trickier, since we have to make C wrappers around them (see
99         InsetError, InsetInfo and InsetUrl). The same holds for friends. I
100         did not finish this yet, since it defeats the purpose of
101         encapsulation, and I am not sure what the best route is.
102
103 1999-10-19  Juergen Vigna  <jug@sad.it>
104
105         * src/support/lyxstring.C (lyxstring): we permit to have a null
106         pointer as assignment value and just don't assign it.
107
108         * src/vspace.C (nextToken): corrected this function substituting
109         find_first(_not)_of with find_last_of.
110
111         * src/TableLayout.C (UpdateLayoutTable) (TableOptionsCB)
112                 (TableOptCloseCB) (TableSpeCloseCB):
113         inserted fl_set_focus call for problem with fl_hide_form() in
114         xforms-0.89.
115
116 1999-10-19  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
117
118         * src/lyx_cb.C (LayoutsCB): fix bug where int was added to a
119         string. 
120
121 1999-10-18  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
122
123         * src/lyxrc.C (Read): RC_PRINTEXSTRAOPTIONS now uses
124         LyXLex::next() and not eatline() to get its argument.
125
126 1999-10-16  Lars Gullik Bjønnes  <larsbj@lyx.org>
127
128         * Makefile.am (rpmdist): added a rpmdist target
129
130         * lib/reLyX/Makefile.am: added RelyxFigure.pm and Verbatim.pm as
131         per Kayvan's instructions.
132
133 1999-10-15  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
134
135         * src/Makefile.am: add a definition for localedir, so that locales
136         are found after installation (Kayvan)
137
138 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
139
140         * development/.cvsignore: new file.
141
142 1999-10-14  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
143
144         * acinclude.m4 (LYX_CXX_CHEADERS): New macro. Checks whether the
145         C++ compiler provides wrappers for C headers and use our alternate
146         version otherwise.
147
148         * configure.in: use LYX_CXX_CHEADERS.
149
150         * src/cheader/: new directory, populated with cname headers from
151         libstdc++-2.8.1. They are a bit old, but probably good enough for
152         what we want (support compilers who lack them).
153         
154         * src/insets/Makefile.am, src/mathed/Makefile.am: remove src/support
155         from includes. It turns out is was stupid.
156  
157 1999-10-14  Lars Gullik Bjønnes  <larsbj@lyx.org>
158
159         * lib/Makefile.am (install-data-local): forgot a ';'
160         (install-data-local): forgot a '\'
161         (libinstalldirs): needed after all. reintroduced.
162
163 1999-10-13  Lars Gullik Bjønnes  <larsbj@lyx.org>
164
165         * configure.in (AC_OUTPUT): added lyx.spec
166
167         * development/lyx.spec: removed file
168
169         * development/lyx.spec.in: new file
170
171         * po/*.po: merged with lyx.pot becuase of make distcheck
172         
173         * lib/Makefile.am (dist-hook): added dist-hook so that
174         documentation files will be included when doing a make
175         dist/distdir/distcheck. Requires cvs export -r HEAD lyxdoc to run.
176         (pkgdata_SCRIPTS): added configure.cmd for now, we can use som
177         conditional later.
178         more: tried to make install do the right thing, exclude CVS dirs
179         etc.
180
181         * src/LaTeXLog.C (ShowLatexLog): reordered som statements so that
182         Path would fit in more nicely.
183
184         * all files that used to use pathstack: uses now Path instead.
185         This change was a lot easier than expected.
186         
187         * src/support/path.h: new file
188
189         * src/support/Makefile.am (libsupport_a_SOURCES): added path.h
190
191         * src/Makefile.am (lyx_SOURCES): removed pathstack.[Ch]
192
193         * src/support/lyxstring.C (getline): Default arg was given for
194         para 3. removed.
195
196         * Configure.cmd: removed file 
197
198 1999-10-13  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
199
200         * src/support/DebugStream.[Ch]: remove the explicit std:: before
201         streams classes and types, add the proper 'using' statements when
202         MODERN_STL is defined.
203         
204         * src/debug.h: move the << operator definition after the inclusion
205         of DebugStream.h
206
207         * src/support/filetools.C: include "LAssert.h", which is needed
208         later. 
209
210         * src/insets/Makefile.am, src/mathed/Makefile.am: add src/support
211         to includes. 
212
213         * src/lyxfont.h, src/commandtags.h, src/mathed/math_defs.h:
214         include "debug.h" to define a proper ostream.
215
216 1999-10-12  Asger Alstrup Nielsen  <alstrup@alstrup.galaxy.dk>
217
218         * src/sys*: Cleaned up the Systemcall stuff a bit. Added "kill(int)"
219           method to the SystemCall class which can kill a process, but it's
220           not fully implemented yet.
221
222         * src/*.C: Changed Systemcalls::Startscript() to startscript()
223
224         * src/support/FileInfo.h: Better documentation  
225
226         * src/lyxfunc.C: Added support for buffer-export html
227         
228         * src/menus.C: Added Export->As HTML...
229         
230         * lib/bind/*.bind: Added short-cut for buffer-export html
231
232         * src/lyxrc.*: Added support for new \tth_command
233         
234         * lib/lyxrc.example: Added stuff for new \tth_command
235
236 1999-10-12  Lars Gullik Bjønnes  <larsbj@lyx.org>
237
238         * lib/Makefile.am (IMAGES): removed images/README
239         (pkgdata_SCRIPTS): use this instead of bin_SCRIPTS to that it
240         installes in correct place. Check permisions is installed
241         correctly.
242
243         * src/LaTeX.C: some no-op changes moved declaration of some
244         variables around.
245
246         * src/LaTeX.h (LATEX_H): changed include guard name
247
248 1999-10-12  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
249
250         * lib/reLyX/Makefile.am: install noweb2lyx.
251
252         * lib/Makefile.am: install configure. 
253
254         * lib/reLyX/configure.in: declare a config aux dir; set package
255         name to lyx (not sure what the best solution is); generate noweb2lyx.
256
257         * lib/layouts/egs.layout: fix the bibliography layout.
258
259 1999-10-08  Jürgen Vigna <jug@sad.it>
260
261         * src/support/filetools.C (FileOpenSearch): Fixed a bug where
262         when in the PATH was something like /usr/bin;;/bin (note: the ;;)
263         it returned without continuing to search the path.
264         
265 1999-10-07  Lars Gullik Bjønnes  <larsbj@lyx.org>
266
267         * src/insets/insetquotes.C (Draw): Simplified a gread deal. This
268         also fixes a bug. It is not allowed to do tricks with std::strings
269         like: string a("hei"); &a[e]; this will not give what you
270         think... Any reason for the complexity in this func?
271
272 1999-10-06  Asger Alstrup Nielsen  <alstrup@diku.dk>
273
274         * Updated README and INSTALL a bit, mostly to check that my
275         CVS rights are correctly set up.
276
277 1999-10-06  Lars Gullik Bjønnes  <larsbj@lyx.org>
278
279         * src/support/lyxstring.C (helper): removed bogus Assert. strlen
280         does not allow '\0' chars but lyxstring and std::string does.
281
282 1999-10-05  Lars Gullik Bjønnes  <larsbj@lyx.org>
283
284         * autogen.sh (AUTOCONF): let the autogen script create the
285         POTFILES.in file too. POTFILES.in should perhaps now not be
286         included in the cvs module.
287
288         * some more files changed to use C++ includes instead of C ones.
289
290         * src/filedlg.C (Reread): fixed a bug wrt Time. It was appended
291         not assigned.
292         (Reread): added tostr to nlink. buggy output otherwise.
293         (Reread): added a string() around szMode when assigning to Buffer,
294         without this I got a log of garbled info strings.
295
296         * acconfig.h: commented out the PTR_AS_INT macros. They should not
297         be needed.
298
299         * I have added several ostream & operator<<(ostream &, some_type)
300         functions. This has been done to avoid casting and warnings when
301         outputting enums to lyxerr. This as thus eliminated a lot of
302         explicit casts and has made the code clearer. Among the enums
303         affected: kb_action, InsetLatexAccent::ACCENT_TYPE, a couple of
304         mathed enums, some font enum the Debug::type enum. 
305
306         * src/support/lyxstring.h (clear): missing method. equivalent of
307         erase(0, npos).
308
309         * all files that contained "stderr": rewrote constructs that used
310         stderr to use lyxerr instead. (except bmtable)
311
312         * src/support/DebugStream.h (level): and the passed t with
313         Debug::ANY to avoid spurious bits set.
314
315         * src/debug.h (Debug::type value): made it accept strings of the
316         type INFO,INIT,KEY.
317
318         * configure.in (Check for programs): Added a check for kpsewhich,
319         the latex generation will use this later to better the dicovery of
320         all used files. 
321
322         * src/BufferView.C (create_view): we don't need to cast this to
323         (void*) that is done automatically.
324         (WorkAreaButtonPress): removed some dead code.
325
326 1999-10-05  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
327
328         * src/minibuffer.C (Init): make sure that the "Welcome to LyX!"
329         is not overwritten when translated (David Sua'rez de Lis).
330
331         * lib/CREDITS: Added David Sua'rez de Lis
332
333         * lib/reLyX/configure.in: setup LYX_DIR correctly in reLyX.
334
335         * src/bufferparams.C (BufferParams): default input encoding is now
336         "latin1" 
337
338         * acinclude.m4 (cross_compiling): comment out macro
339         LYX_GXX_STRENGTH_REDUCE. 
340
341         * acconfig.h: make sure that const is not defined (to empty) when
342         we are compiling C++. Remove commented out code using SIZEOF_xx
343         macros.
344         
345         * configure.in : move the test for const and inline as late as
346         possible so that these C tests do not interefere with C++ ones.
347         Remove the call to LYX_GXX_STRENGTH_REDUCE, since its usefulness
348         has not been proven. 
349
350 1999-10-04  Jean-Marc Lasgouttes  <Jean-Marc.Lasgouttes@inria.fr>
351
352         * src/table.C (getDocBookAlign): remove bad default value for
353         isColumn parameter.
354
355         * src/menus.C (ShowFileMenu): add a missing tostr() for lastfiles
356         shortcut. 
357         (ShowFileMenu2): ditto.
358
359         * lib/reLyX/.cvsignore: add configure and aclocal.m4 to the list
360         of files to ignore.
361
362 1999-10-04  Lars Gullik Bjønnes  <larsbj@lyx.org>
363
364         * Most files: finished the change from the old error code to use
365         DebugStream for all lyxerr debugging. Only minor changes remain
366         (e.g. the setting of debug levels using strings instead of number) 
367
368 1999-10-02  Lars Gullik Bjønnes  <larsbj@lyx.org>
369
370         * src/layout.C (Add): Changed to use compare_no_case instead of
371         strcasecmp.
372
373         * src/FontInfo.C: changed loop variable type too string::size_type.
374
375 1999-10-01  Lars Gullik Bjønnes  <larsbj@lyx.org>
376
377         * src/support/Makefile.am: added -I${srcdir}/../ to INCLUDES and
378         set ETAGS_ARGS to --c++ 
379
380 1999-09-30  Lars Gullik Bjønnes  <larsbj@lyx.org>
381
382         * src/table.C (DocBookEndOfCell): commented out two unused variables
383
384         * src/paragraph.C: commented out four unused variables. 
385
386         * src/lyx_cb.C (TocUpdateCB): moved variable i and added a new i
387         insed a if clause with type string::size_type.
388
389         * src/lyxfr1.C (IsSearchStringInText): changed iSrch from int to
390         string::size_type.
391
392         * src/lyxfunc.C (Dispatch): use string::size_type as loop variable.
393
394         * src/lyx_cb.C (ReplaceWord): use string::size_type as loop
395         variable, also changed loop to go from 0 to lenght + 1, instead of
396         -1 to length. This should be correct.
397
398         * src/LaTeX.C (scanError): use string::size_type as loop variable
399         type.
400
401         * src/BufferView.C (WorkAreaButtonPress): moved #if 0 up two lines
402         (l.896) since y_tmp and row was not used anyway.
403
404         * src/insets/insetref.C (escape): use string::size_type as loop
405         variable type.
406
407         * src/insets/insetquotes.C (Width): use string::size_type as loop
408         variable type.
409         (Draw): use string::size_type as loop variable type.
410
411         * src/insets/insetlatexaccent.C (checkContents): use
412         string::size_type as loop variable type.
413
414         * src/insets/insetlabel.C (escape): use string::size_type as loop
415         variable type.
416
417         * src/insets/insetinfo.C: added an extern for current_view.
418
419         * src/insets/insetcommand.C (scanCommand): use string::size_type
420         as loop variable type.
421
422         * most files: removed the RCS tags. With them we had to recompile
423         a lot of files after a simple cvs commit. Also we have never used
424         them for anything meaningful. 
425
426         * most files: tags-query-replace NULL 0. As adviced several plases
427         we now use "0" instead of "NULL" in our code. 
428
429         * src/support/filetools.C (SpaceLess): use string::size_type as
430         loop variable type.
431
432 1999-09-29  Lars Gullik Bjønnes  <larsbj@lyx.org>
433
434         * src/paragraph.C: fixed up some more string stuff.
435
436 1999-09-28  Lars Gullik Bjønnes  <larsbj@lyx.org>
437
438         * src/support/filetools.h: make modestr a std::string.
439
440         * src/filetools.C (GetEnv): made ch really const.
441
442         * src/lyxlib.h: removed the Maximum and Minimum inline functions,
443         made code that used these use max/min from <algorithm> instead.
444
445         * changed several c library include files to their equivalent c++
446         library include files. All is not changed yet.
447
448         * created a support subdir in src, put lyxstring and lstrings
449         there + the extra files atexit, fileblock, strerror. Created
450         Makefile.am. edited configure.in and src/Makefile.am to use this
451         new subdir. More files moved to support.
452
453         * imported som of the functions from repository lyx, filetools
454         
455         * ran tags-query-replace on LString -> string, corrected the bogus
456         cases. Tried to make use of lstrings.[hC], debugged a lot. There
457         is still some errors in there. This is errors where too much or
458         too litle get deleted from strings (string::erase, string::substr,
459         string::replace), there can also be some off by one errors, or
460         just plain wrong use of functions from lstrings. Viewing of quotes
461         is wrong. 
462
463         * LyX is now running fairly well with string, but there are
464         certainly some bugs yet (see above) also string is quite different
465         from LString among others in that it does not allow null pointers
466         passed in and will abort if it gets any.
467         
468         * Added the revtex4 files I forgot when setting up the repository.
469
470 1999-09-27  Lars Gullik Bjønnes  <larsbj@lyx.org>
471
472         * All over: Tried to clean everything up so that only the files
473           that we really need are included in the cvs repository.
474         * Switched to use automake.
475         * Generaton of reLyX is not perfect, LYX_DIR does not get substituted.
476         * Install has not been checked.
477
478 1999-09-22  Lars Gullik Bjønnes  <larsbj@lyx.org>
479
480         * po/pt.po: Three errors:
481                l.533 and l.538 format specification error
482                l. 402 duplicate entry, I just deleted it.
483