[gtk/demo-keywords: 1/3] gtk-demo: Ignore some lines in info
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/demo-keywords: 1/3] gtk-demo: Ignore some lines in info
- Date: Sun, 13 Sep 2020 16:38:46 +0000 (UTC)
commit dadea2df7324b2f11ac315031571cd4cedb00281
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Sep 13 10:45:03 2020 -0400
gtk-demo: Ignore some lines in info
Ignore lines starting with # in the info comment at
the top of source files. This will be used to add
keywords for search in following commits.
demos/gtk-demo/main.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/demos/gtk-demo/main.c b/demos/gtk-demo/main.c
index 9abbd0f943..3011c3e890 100644
--- a/demos/gtk-demo/main.c
+++ b/demos/gtk-demo/main.c
@@ -581,6 +581,9 @@ load_file (const char *demoname,
while (g_ascii_isspace (*(p + len - 1)))
len--;
+ if (*p == '#')
+ break;
+
if (len > 0)
{
if (in_para)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]