ソースを参照

libdpkg: Define YY_NO_INPUT to make flex not include input()

The function is unused and it only increases the binary sizes.
Guillem Jover 18 年 前
コミット
4e146921a6
共有2 個のファイルを変更した7 個の追加0 個の削除を含む
  1. 5 0
      ChangeLog
  2. 2 0
      lib/trigdeferred.l

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-06-30  Guillem Jover  <guillem@debian.org>
+
+	* lib/trigdeferred.l: Define YY_NO_INPUT to make flex not include
+	the unused input() in the resulting object.
+
 2008-06-29  Guillem Jover  <guillem@debian.org>
 2008-06-29  Guillem Jover  <guillem@debian.org>
 
 
 	* lib/parsedump.h (parseerr, parsemustfield): Remove prototypes.
 	* lib/parsedump.h (parseerr, parsemustfield): Remove prototypes.

+ 2 - 0
lib/trigdeferred.l

@@ -43,6 +43,8 @@
 #include <dpkg.h>
 #include <dpkg.h>
 #include <dpkg-db.h>
 #include <dpkg-db.h>
 
 
+#define YY_NO_INPUT
+
 static struct varbuf fn, newfn;
 static struct varbuf fn, newfn;
 
 
 %}
 %}