Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
lektor
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Kubat
lektor
Validations
5d0b9681
Vérifiée
Valider
5d0b9681
rédigé
18 nov. 2021
par
Kubat
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
FMT
parent
53b9afa2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
1 requête de fusion
!177
Add the query to the `update` command to filter karas to update
Pipeline
#2474
réussi
18 nov. 2021
Étape : build
Modifications
3
Pipelines
1
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
3 fichiers modifiés
inc/lektor/lib/strv.h
+5
-4
5 ajouts, 4 suppressions
inc/lektor/lib/strv.h
src/base/config.c
+7
-4
7 ajouts, 4 suppressions
src/base/config.c
src/database/config.c
+1
-1
1 ajout, 1 suppression
src/database/config.c
avec
13 ajouts
et
9 suppressions
inc/lektor/lib/strv.h
+
5
−
4
Voir le fichier @
5d0b9681
...
...
@@ -266,7 +266,8 @@ strv_equal(struct strv a, struct strv b)
static
_Bool
strv_equal_nocase
(
struct
strv
a
,
struct
strv
b
)
{
if
(
a
.
count
!=
b
.
count
)
return
(
_Bool
)
0
;
if
(
a
.
count
!=
b
.
count
)
return
(
_Bool
)
0
;
for
(
int
i
=
0
;
i
<
a
.
count
;
++
i
)
{
if
(
strv_ctoupper
(
a
.
data
[
i
])
!=
strv_ctoupper
(
b
.
data
[
i
]))
return
(
_Bool
)
0
;
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/base/config.c
+
7
−
4
Voir le fichier @
5d0b9681
...
...
@@ -155,17 +155,20 @@ ini_parse(const char *path, lkt_db *db)
const
struct
strv
key
=
strv_trim
(
strv_chop_left
(
&
line
,
separator_index
));
strv_chop_left
(
&
line
,
1
);
/* Skip the "=" character */
const
struct
strv
value
=
strv_trim
(
strv_take_left_while
(
line
,
___char_is_not_comment_delim
));
const
struct
strv
value
=
strv_trim
(
strv_take_left_while
(
line
,
___char_is_not_comment_delim
));
/* Handle the (key, value) pair */
if
(
strv_len
(
value
)
==
0
||
strv_len
(
key
)
==
0
)
{
LOG_ERROR
(
"PARSER"
,
"Invalid key pair at line '%d'"
,
linenum
);
LOG_ERROR_IF
(
strv_len
(
key
),
"PARSER"
,
"The key was: '"
STRV_FMT
"'"
,
STRV_ARG
(
key
));
LOG_ERROR_IF
(
strv_len
(
value
),
"PARSER"
,
"The value was: '"
STRV_FMT
"'"
,
STRV_ARG
(
value
));
LOG_ERROR_IF
(
strv_len
(
value
),
"PARSER"
,
"The value was: '"
STRV_FMT
"'"
,
STRV_ARG
(
value
));
}
else
if
(
section
[
0
])
{
LOG_DEBUG
(
"PARSER"
,
"Found line: [%s] '"
STRV_FMT
"' = '"
STRV_FMT
"'"
,
section
,
STRV_ARG
(
key
),
STRV_ARG
(
value
));
LOG_DEBUG
(
"PARSER"
,
"Found line: [%s] '"
STRV_FMT
"' = '"
STRV_FMT
"'"
,
section
,
STRV_ARG
(
key
),
STRV_ARG
(
value
));
if
(
handler
(
db
,
section
,
key
,
value
))
{
error
=
1
;
LOG_ERROR
(
"PARSER"
,
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
src/database/config.c
+
1
−
1
Voir le fichier @
5d0b9681
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter