Merge files Text{,2,3}.cpp

This is done at the end of the release cycle to avoid backporting issues.

The goal is to simplify development, since it was difficult to guess
in which file a given method could be found.

There is some effect on compilation time, but it is not too bad:

* before merge

  lapinot: time make Text.o Text3.o Text2.o
    CXX      Text.o
    CXX      Text3.o
    CXX      Text2.o

  real	0m32,504s
  user	0m31,027s
  sys	0m1,446s
  lapinot: rm Text*.o
  lapinot: time make -j8 Text.o Text3.o Text2.o
    CXX      Text.o
    CXX      Text3.o
    CXX      Text2.o

  real	0m21,282s
  user	0m32,661s
  sys	0m1,424s

* after merge

  lapinot: time make Text.o
    CXX      Text.o

  real	0m26,731s
  user	0m25,706s
  sys	0m1,020s
This commit is contained in:
Jean-Marc Lasgouttes 2023-05-04 15:21:02 +02:00
parent 2368d70bef
commit 43b24085fb
5 changed files with 4785 additions and 4892 deletions

View File

@ -177,8 +177,6 @@ SOURCEFILESCORE = \
TexRow.cpp \ TexRow.cpp \
texstream.cpp \ texstream.cpp \
Text.cpp \ Text.cpp \
Text2.cpp \
Text3.cpp \
TextClass.cpp \ TextClass.cpp \
TextMetrics.cpp \ TextMetrics.cpp \
TocBackend.cpp \ TocBackend.cpp \

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -866,7 +866,7 @@ void InsetFloat::docbook(XMLStream & xs, OutputParams const & runparams) const
bool InsetFloat::insetAllowed(InsetCode code) const bool InsetFloat::insetAllowed(InsetCode code) const
{ {
// The case that code == FLOAT_CODE is handled in Text3.cpp, // The case that code == FLOAT_CODE is handled in Text.cpp,
// because we need to know what type of float is meant. // because we need to know what type of float is meant.
switch(code) { switch(code) {
case WRAP_CODE: case WRAP_CODE: