Revert "Mark some intentional fall-throughs (in a way understandable to gcc)"

This reverts commit 6dc1884d05.
This commit is contained in:
Juergen Spitzmueller 2017-08-12 09:04:23 +02:00
parent b73879691f
commit 0120c3fc10
15 changed files with 758 additions and 776 deletions

View File

@ -1,5 +1,5 @@
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 541
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
@ -101,6 +101,7 @@
\suppress_date true
\justification true
\use_refstyle 0
\use_minted 0
\notefontcolor #0000ff
\index Index
\shortcut idx
@ -111,7 +112,9 @@
\paragraph_separation skip
\defskip medskip
\is_math_indent 0
\math_numbering_side default
\quotes_style swiss
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
@ -826,27 +829,37 @@ status open
\begin_layout Plain Layout
\series bold
\lang english
Note:
Nota:
\series default
If you have an index list in your document and use one of the AMS theorem
modules, you have to add the option
si vous avez un index dans votre document et si vous utiliser un des modules
pour les théorèmes AMS, il vous faut ajouter l'option
\series bold
noglobalbang
\series default
to the document class options in the document settings.
This enables the usage of the '!' character in index entries (necessary
for subentries) but might cause troubles with the align environments (which
are described in section
\begin_inset Quotes eld
dans le champ des options de classe des paramètres du document.
Ceci autorise l'usage du caractère
\begin_inset Quotes cld
\end_inset
Align Environments
\begin_inset Quotes erd
!
\begin_inset Quotes crd
\end_inset
of \SpecialChar LyX
's Math manual).
dans les entrées d'index (nécessaire pour saisir des sous-entrées) mais
peut créer des problèmes de conflit dans les environnements
\family sans
align
\family default
(décrits à la section
\begin_inset Quotes cld
\end_inset
Les environnements align
\begin_inset Quotes crd
\end_inset
du manuel Math de \SpecialChar LyX
's).
\end_layout
\end_inset

View File

@ -1,5 +1,5 @@
#LyX 2.3 created this file. For more info see http://www.lyx.org/
\lyxformat 541
\lyxformat 544
\begin_document
\begin_header
\save_transient_properties true
@ -90,6 +90,7 @@ linguistics
\suppress_date false
\justification true
\use_refstyle 0
\use_minted 0
\index Index
\shortcut idx
\color #008000
@ -99,7 +100,9 @@ linguistics
\paragraph_separation indent
\paragraph_indentation default
\is_math_indent 0
\quotes_style swiss
\math_numbering_side default
\quotes_style french
\dynamic_quotes 0
\papercolumns 1
\papersides 1
\paperpagestyle default
@ -777,23 +780,27 @@ inline false
status open
\begin_layout Plain Layout
% Éviter les sauts de page dans les gloses de deux lignes
\end_layout
\begin_layout Plain Layout
\backslash
AtBeginDocument{%
\end_layout
\begin_layout Plain Layout
\backslash
renewenvironment{linggloss}[2][]{%
\end_layout
\begin_layout Plain Layout
\backslash
def
\backslash
@ -804,6 +811,7 @@ glt #1}%
\begin_layout Plain Layout
\backslash
begin{minipage}{.7
\backslash
@ -812,6 +820,7 @@ textwidth}
\begin_layout Plain Layout
\backslash
gll #2}{
\backslash
@ -823,6 +832,7 @@ end{minipage}}
\end_layout
\begin_layout Plain Layout
}
\end_layout
@ -842,23 +852,27 @@ inline false
status open
\begin_layout Plain Layout
% Éviter les sauts de page dans les gloses de trois lignes
\end_layout
\begin_layout Plain Layout
\backslash
AtBeginDocument{%
\end_layout
\begin_layout Plain Layout
\backslash
renewenvironment{lingglosss}[2][]{%
\end_layout
\begin_layout Plain Layout
\backslash
def
\backslash
@ -869,6 +883,7 @@ glt #1}%
\begin_layout Plain Layout
\backslash
begin{minipage}{.7
\backslash
@ -877,6 +892,7 @@ textwidth}
\begin_layout Plain Layout
\backslash
glll #2}{
\backslash
@ -888,6 +904,7 @@ end{minipage}}
\end_layout
\begin_layout Plain Layout
}
\end_layout
@ -977,14 +994,17 @@ inline false
status open
\begin_layout Plain Layout
Fournit covington 1
\end_layout
\begin_layout Plain Layout
AddToPreamble
\end_layout
\begin_layout Plain Layout
\backslash
let
@ -995,6 +1015,7 @@ relax
\end_layout
\begin_layout Plain Layout
\backslash
let
@ -1005,6 +1026,7 @@ relax
\end_layout
\begin_layout Plain Layout
\backslash
let
@ -1015,6 +1037,7 @@ relax
\end_layout
\begin_layout Plain Layout
\backslash
let
@ -1025,12 +1048,14 @@ relax
\end_layout
\begin_layout Plain Layout
\backslash
usepackage{covington}
\end_layout
\begin_layout Plain Layout
EndPreamble
\end_layout
@ -1451,12 +1476,14 @@ status open
\begin_layout Plain Layout
\backslash
floatstyle{plaintop}
\end_layout
\begin_layout Plain Layout
\backslash
restylefloat{tableau}
\end_layout
@ -1479,12 +1506,14 @@ status open
\begin_layout Plain Layout
\backslash
floatstyle{komaabove}
\end_layout
\begin_layout Plain Layout
\backslash
restylefloat{tableau}
\end_layout
@ -1608,6 +1637,7 @@ status open
\begin_layout Plain Layout
\backslash
renewcommand
\backslash
@ -1949,14 +1979,9 @@ literal "true"
status open
\begin_layout Plain Layout
\lang english
If you use traditional \SpecialChar LaTeX
or PDF\SpecialChar LaTeX
, a prerequisite to use \SpecialChar LyX
's IPA support is
the \SpecialChar LaTeX
package
Si vous utilisez les traitements usuels \SpecialChar LaTeX
ou PDF\SpecialChar LaTeX
, le paquetage
\emph on
tipa
\emph default
@ -1968,64 +1993,64 @@ literal "true"
\end_inset
, which is automatically loaded by \SpecialChar LyX
if you follow the procedure described
below.
If you use Xe\SpecialChar TeX
or Lua\SpecialChar TeX
est un prérequis à l'utilisation des fonctionnalités IPA de LyX; ce paquetage
est chargé automatiquement par \SpecialChar LyX
si vous respectez la procédure ci-après.
Si vous utilisez Xe\SpecialChar TeX
ou Lua\SpecialChar TeX
(i.
\begin_inset space \thinspace{}
\end_inset
e., if you have clicked
\begin_inset Quotes eld
e., si vous avez sélectionné
\begin_inset Quotes cld
\end_inset
Use non-\SpecialChar TeX
fonts
\begin_inset Quotes erd
Utiliser des polices non-\SpecialChar TeX
\begin_inset Quotes crd
\end_inset
in
via
\family sans
Document\SpecialChar menuseparator
Settings\SpecialChar menuseparator
Fonts
Paramètres\SpecialChar menuseparator
Polices
\family default
), the package
), le paquetage
\emph on
xunicode
\emph default
is loaded instead (since
est chargé à la place (du fait que
\emph on
tipa
\emph default
does not work in this context).
The
ne fonctionne pas dans ce contexte).
Le paquetage
\emph on
xunicode
\emph default
package emulates the
émule le résultat
\emph on
tipa
\emph default
output, but is not perfect at that, so some things might not look as expected.
Furthermore, you need to take care in this case to use a non-TeX font that
includes the IPA glyphs (such as
, mais pas parfaitement, et certaines choses n'apparaîtront pas comme prévu.
De plus, il faut prendre soin de sélectionner une police non-TeX qui inclue
les glyphes IPA (comme
\emph on
CMU Serif
\emph default
or
ou
\emph on
SIL Doulos
\emph default
).
You can also specify an extra font only for IPA by adding the following
to
Vous pouvez également spécifier une police supplémentaire uniquement pour
IPA en ajoutant ceci à
\family sans
Document\SpecialChar menuseparator
Settings\SpecialChar menuseparator
LaTeX Preamble
Paramètres\SpecialChar menuseparator
Préambule LaTeX
\family default
:
\end_layout
@ -2076,14 +2101,12 @@ ipafont}
\end_layout
\begin_layout Plain Layout
\lang english
Additionally, and independent from which of the above approaches you use,
if you want to have instant preview, you should have the
Enfin, et indépendamment de l'approche utilisée, il faut que le paquetage
\emph on
preview-latex
\emph default
package
\begin_inset CommandInset citation
LatexCommand cite
key "preview"
@ -2091,7 +2114,7 @@ literal "true"
\end_inset
installed.
soit installé pour avoir un aperçu sur le vif.
\end_layout
\end_inset
@ -2169,7 +2192,6 @@ Notez que si vous souhaitez insérer des diacritiques, ils doivent être saisis
\begin_inset IPA
\begin_layout Standard
[d̥]
\end_layout

BIN
po/fr.gmo

Binary file not shown.

1178
po/fr.po

File diff suppressed because it is too large Load Diff

View File

@ -4912,10 +4912,8 @@ void Buffer::Impl::setLabel(ParIterator & it, UpdateType utype) const
switch (par.itemdepth) {
case 2:
enumcounter += 'i';
// fall through
case 1:
enumcounter += 'i';
// fall through
case 0:
enumcounter += 'i';
break;

File diff suppressed because it is too large Load Diff

View File

@ -3871,13 +3871,13 @@ void Paragraph::locateWord(pos_type & from, pos_type & to,
to = from;
return;
}
// fall through
// no break here, we go to the next
case WHOLE_WORD:
// If we are already at the beginning of a word, do nothing
if (!from || isWordSeparator(from - 1))
break;
// fall through
// no break here, we go to the next
case PREVIOUS_WORD:
// always move the cursor to the beginning of previous word

View File

@ -2070,8 +2070,9 @@ void GuiApplication::dispatch(FuncRequest const & cmd, DispatchResult & dr)
if (current_view_ == 0)
createView();
}
// fall through
}
// fall through
default:
// The LFUN must be for one of GuiView, BufferView, Buffer or Cursor;
// let's try that:

View File

@ -1989,8 +1989,7 @@ bool GuiView::getStatus(FuncRequest const & cmd, FuncStatus & flag)
case LFUN_DIALOG_TOGGLE:
flag.setOnOff(isDialogVisible(cmd.getArg(0)));
// to set "enable"
// fall through
// fall through to set "enable"
case LFUN_DIALOG_SHOW: {
string const name = cmd.getArg(0);
if (!doc_buffer)

View File

@ -209,8 +209,6 @@ void InsetCaption::doDispatch(Cursor & cur, FuncRequest & cmd)
break;
}
}
// no "changetype":
// fall through
default:
InsetText::doDispatch(cur, cmd);

View File

@ -209,8 +209,6 @@ bool InsetFloat::getStatus(Cursor & cur, FuncRequest const & cmd,
flag.setEnabled(false);
return true;
}
// no subfloat:
// fall through
default:
return InsetCaptionable::getStatus(cur, cmd, flag);

View File

@ -214,8 +214,6 @@ bool InsetLabel::getStatus(Cursor & cur, FuncRequest const & cmd,
enabled = false;
break;
}
// no "changetype":
// fall through
default:
return InsetCommand::getStatus(cur, cmd, status);
}

View File

@ -441,7 +441,6 @@ bool InsetListings::getStatus(Cursor & cur, FuncRequest const & cmd,
return true;
}
}
// fall through
default:
return InsetCaptionable::getStatus(cur, cmd, status);
}

View File

@ -4676,14 +4676,12 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string const & s,
// therefore allow always left but right and center only if there is no width
case Tabular::M_ALIGN_LEFT:
flag = false;
// fall through
case Tabular::ALIGN_LEFT:
status.setOnOff(tabular.getAlignment(cur.idx(), flag) == LYX_ALIGN_LEFT);
break;
case Tabular::M_ALIGN_RIGHT:
flag = false;
// fall through
case Tabular::ALIGN_RIGHT:
status.setEnabled(!(tabular.isMultiRow(cur.idx())
&& !tabular.getPWidth(cur.idx()).zero()));
@ -4692,7 +4690,6 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string const & s,
case Tabular::M_ALIGN_CENTER:
flag = false;
// fall through
case Tabular::ALIGN_CENTER:
status.setEnabled(!(tabular.isMultiRow(cur.idx())
&& !tabular.getPWidth(cur.idx()).zero()));
@ -4713,7 +4710,6 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string const & s,
case Tabular::M_VALIGN_TOP:
flag = false;
// fall through
case Tabular::VALIGN_TOP:
status.setEnabled(!tabular.getPWidth(cur.idx()).zero()
&& !tabular.isMultiRow(cur.idx()));
@ -4723,7 +4719,6 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string const & s,
case Tabular::M_VALIGN_BOTTOM:
flag = false;
// fall through
case Tabular::VALIGN_BOTTOM:
status.setEnabled(!tabular.getPWidth(cur.idx()).zero()
&& !tabular.isMultiRow(cur.idx()));
@ -4733,7 +4728,6 @@ bool InsetTabular::getFeatureStatus(Cursor & cur, string const & s,
case Tabular::M_VALIGN_MIDDLE:
flag = false;
// fall through
case Tabular::VALIGN_MIDDLE:
status.setEnabled(!tabular.getPWidth(cur.idx()).zero()
&& !tabular.isMultiRow(cur.idx()));
@ -5012,7 +5006,7 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd,
status.setEnabled(false);
return true;
}
// fall through
// Fall back
case LFUN_NEWLINE_INSERT: {
if (tabular.getPWidth(cur.idx()).zero()) {
status.setEnabled(false);
@ -5666,7 +5660,6 @@ void InsetTabular::tabularFeatures(Cursor & cur,
case Tabular::M_VALIGN_BOTTOM:
case Tabular::M_VALIGN_MIDDLE:
flag = false;
// fall through
case Tabular::VALIGN_TOP:
case Tabular::VALIGN_BOTTOM:
case Tabular::VALIGN_MIDDLE:
@ -5789,7 +5782,6 @@ void InsetTabular::tabularFeatures(Cursor & cur,
case Tabular::SET_ALL_LINES:
setLines = true;
// fall through
case Tabular::UNSET_ALL_LINES:
for (row_type r = sel_row_start; r <= sel_row_end; ++r)
for (col_type c = sel_col_start; c <= sel_col_end; ++c) {
@ -5914,7 +5906,6 @@ void InsetTabular::tabularFeatures(Cursor & cur,
case Tabular::UNSET_LTFIRSTHEAD:
flag = false;
// fall through
case Tabular::SET_LTFIRSTHEAD:
tabular.getRowOfLTFirstHead(row, ltt);
checkLongtableSpecial(ltt, value, flag);
@ -5923,7 +5914,6 @@ void InsetTabular::tabularFeatures(Cursor & cur,
case Tabular::UNSET_LTHEAD:
flag = false;
// fall through
case Tabular::SET_LTHEAD:
tabular.getRowOfLTHead(row, ltt);
checkLongtableSpecial(ltt, value, flag);
@ -5932,7 +5922,6 @@ void InsetTabular::tabularFeatures(Cursor & cur,
case Tabular::UNSET_LTFOOT:
flag = false;
// fall through
case Tabular::SET_LTFOOT:
tabular.getRowOfLTFoot(row, ltt);
checkLongtableSpecial(ltt, value, flag);
@ -5941,7 +5930,6 @@ void InsetTabular::tabularFeatures(Cursor & cur,
case Tabular::UNSET_LTLASTFOOT:
flag = false;
// fall through
case Tabular::SET_LTLASTFOOT:
tabular.getRowOfLTLastFoot(row, ltt);
checkLongtableSpecial(ltt, value, flag);
@ -5950,7 +5938,6 @@ void InsetTabular::tabularFeatures(Cursor & cur,
case Tabular::UNSET_LTNEWPAGE:
flag = false;
// fall through
case Tabular::SET_LTNEWPAGE:
tabular.setLTNewPage(row, flag);
break;

View File

@ -1028,8 +1028,8 @@ void TeXOnePar(Buffer const & buf,
break;
}
}
// possible
// fall through
// fall through possible
default:
// we don't need it for the last paragraph!!!
if (nextpar)