[Rpm-maint] [rpm-software-management/rpm] Warn if a text is after %else or %endif (#625)

Panu Matilainen notifications at github.com
Mon Feb 25 11:20:54 UTC 2019


pmatilai commented on this pull request.



> @@ -49,6 +49,18 @@ struct Source * next;
 
 typedef struct Package_s * Package;
 
+typedef enum rpmParseLineType_e {
+    LINE_OTHER             =  0,
+    LINE_IF                = (1 << 0),
+    LINE_IFARCH            = (1 << 1),
+    LINE_IFNARCH           = (1 << 2),
+    LINE_IFOS              = (1 << 3),
+    LINE_IFNOS             = (1 << 4),
+    LINE_ELSE              = (1 << 5),
+    LINE_ENDIF             = (1 << 6),
+    LINE_INCLUDE           = (1 << 7),
+} rpmParseLineType;
+

Is there some specific reason this is in the header instead of parseSpec.c where the sole user of these id's live? I don't think any of these are relevant outside that file, but could be mistaken of course.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/pull/625#pullrequestreview-207339518
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20190225/99000dd3/attachment.html>


More information about the Rpm-maint mailing list