Permalink
Browse files

drop #include <unistd.h>

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
  • Loading branch information...
groleo committed May 5, 2015
1 parent 45ebb6f commit 1dd0cf03f5bf173fa4ac3bb8279d12fff1b98eb7
Showing with 34 additions and 38 deletions.
  1. +2 −2 src/code.l
  2. +2 −3 src/commentcnv.l
  3. +3 −2 src/commentscan.l
  4. +2 −1 src/config.l
  5. +2 −2 src/constexp.l
  6. +2 −1 src/declinfo.l
  7. +2 −2 src/defargs.l
  8. +2 −2 src/doctokenizer.l
  9. +0 −1 src/doxygen.cpp
  10. +0 −2 src/formula.cpp
  11. +2 −2 src/fortrancode.l
  12. +2 −3 src/fortranscanner.l
  13. +3 −3 src/pre.l
  14. +2 −2 src/pycode.l
  15. +2 −3 src/pyscanner.l
  16. +2 −3 src/scanner.l
  17. +2 −2 src/tclscanner.l
  18. +2 −2 src/vhdlcode.l
View
@@ -14,7 +14,7 @@
* input used in their production; they are not affected by this license.
*
*/
%option never-interactive
%{
/*
@@ -46,7 +46,7 @@
//#define DBG_CTX(x) fprintf x
#define DBG_CTX(x) do { } while(0)
#define YY_NEVER_INTERACTIVE 1
#define YY_NO_UNISTD_H 1
#define CLASSBLOCK (int *)4
#define SCOPEBLOCK (int *)8
View
@@ -14,11 +14,9 @@
* input used in their production; they are not affected by this license.
*
*/
%option never-interactive
%{
#define YY_NEVER_INTERACTIVE 1
#include <stdio.h>
#include <stdlib.h>
@@ -39,6 +37,7 @@
#include <assert.h>
#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1
#define ADDCHAR(c) g_outBuf->addChar(c)
#define ADDARRAY(a,s) g_outBuf->addArray(a,s)
View
@@ -12,7 +12,8 @@
* input used in their production; they are not affected by this license.
*
*/
%option never-interactive
%{
/*
@@ -26,7 +27,6 @@
#include <qarray.h>
#include <qstack.h>
#include <qregexp.h>
#include <unistd.h>
#include <qfile.h>
#include "scanner.h"
@@ -49,6 +49,7 @@
#include "formula.h"
#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1
// forward declarations
static bool handleBrief(const QCString &);
View
@@ -9,7 +9,7 @@
* See the GNU General Public License for more details.
*
*/
%option never-interactive
%{
/*
@@ -45,6 +45,7 @@
#undef Config_getBool
#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1
// use in-class definitions
#define Config_getString(val) getString(__FILE__,__LINE__,val)
View
@@ -15,16 +15,16 @@
* input used in their production; they are not affected by this license.
*
*/
%option never-interactive
%{
#include "constexp.h"
#include "cppvalue.h"
#include "ce_parse.h" // generated header file
#include "message.h"
#define YY_NEVER_INTERACTIVE 1
#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1
QCString g_strToken;
CPPValue g_resultValue;
View
@@ -14,7 +14,7 @@
* input used in their production; they are not affected by this license.
*
*/
%option never-interactive
%{
/*
@@ -30,6 +30,7 @@
#include "message.h"
#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1
/* -----------------------------------------------------------------
*
View
@@ -39,7 +39,7 @@
* type, and the matchArgumentList in util.cpp is be used to
* further determine the correct separation.
*/
%option never-interactive
%{
/*
@@ -57,8 +57,8 @@
#include "arguments.h"
#include "message.h"
#define YY_NEVER_INTERACTIVE 1
#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1
/* -----------------------------------------------------------------
* state variables
View
@@ -16,7 +16,7 @@
*
*/
%option never-interactive
%{
#include <ctype.h>
@@ -37,8 +37,8 @@
#include "doxygen.h"
#include "portable.h"
#define YY_NEVER_INTERACTIVE 1
#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1
//--------------------------------------------------------------------------
View
@@ -25,7 +25,6 @@
#include <stdlib.h>
#include <sys/stat.h>
#include <qtextcodec.h>
#include <unistd.h>
#include <errno.h>
#include <qptrdict.h>
#include <qtextstream.h>
View
@@ -15,8 +15,6 @@
*/
#include <stdlib.h>
#include <unistd.h>
#include <qfile.h>
#include <qfileinfo.h>
#include <qtextstream.h>
View
@@ -23,7 +23,7 @@
- links to interface functions
- references to variables
**/
%option never-interactive
%{
/*
@@ -56,9 +56,9 @@
//#define DBG_CTX(x) fprintf x
#define DBG_CTX(x) do { } while(0)
#define YY_NEVER_INTERACTIVE 1
#define YY_NO_TOP_STATE 1
#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1
/*
* For fixed formatted code position 6 is of importance (continuation character).
View
@@ -37,7 +37,7 @@
*
* - Must track yyLineNr when using REJECT, unput() or similar commands.
*/
%option never-interactive
%{
#include <stdio.h>
@@ -48,7 +48,6 @@
#include <qarray.h>
#include <qstack.h>
#include <qregexp.h>
#include <unistd.h>
#include <qfile.h>
#include <qmap.h>
@@ -69,8 +68,8 @@
//#define DBG_CTX(x) fprintf x
#define DBG_CTX(x) do { } while(0)
#define YY_NEVER_INTERACTIVE 1
#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1
enum ScanVar { V_IGNORE, V_VARIABLE, V_PARAMETER, V_RESULT};
enum InterfaceType { IF_NONE, IF_SPECIFIC, IF_GENERIC, IF_ABSTRACT };
View
@@ -14,7 +14,7 @@
* input used in their production; they are not affected by this license.
*
*/
%option never-interactive
%{
/*
@@ -54,12 +54,12 @@
#include "memberdef.h"
#include "membername.h"
#define YY_NO_UNISTD_H 1
// Toggle for some debugging info
//#define DBG_CTX(x) fprintf x
#define DBG_CTX(x) do { } while(0)
#define YY_NEVER_INTERACTIVE 1
struct CondCtx
{
CondCtx(int line,QCString id,bool b)
View
@@ -21,7 +21,7 @@
* taught by Peter H. Froehlich <phf@acm.org>.
*/
%option never-interactive
%{
#include <stdio.h>
@@ -48,8 +48,8 @@
//#define DBG_CTX(x) fprintf x
#define DBG_CTX(x) do { } while(0)
#define YY_NEVER_INTERACTIVE 1
#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1
static ClassSDict g_codeClassSDict(17);
static QCString g_curClassName;
View
@@ -21,7 +21,7 @@
* taught by Peter H. Froehlich <phf@acm.org>.
*/
%option never-interactive
%{
/*
@@ -35,7 +35,6 @@
#include <qarray.h>
#include <qstack.h>
#include <qregexp.h>
#include <unistd.h>
#include <qfile.h>
#include <qfileinfo.h>
@@ -55,8 +54,8 @@
//#define DBG_CTX(x) fprintf x
#define DBG_CTX(x) do { } while(0)
#define YY_NEVER_INTERACTIVE 1
#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1
/* -----------------------------------------------------------------
*
View
@@ -14,7 +14,7 @@
* input used in their production; they are not affected by this license.
*
*/
%option never-interactive
%{
/*
@@ -28,7 +28,6 @@
#include <qarray.h>
#include <qstack.h>
#include <qregexp.h>
#include <unistd.h>
#include <qfile.h>
#include "scanner.h"
@@ -45,8 +44,8 @@
#include "clangparser.h"
#define YY_NEVER_INTERACTIVE 1
#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1
/* -----------------------------------------------------------------
*
View
@@ -14,12 +14,12 @@
* input used in their production; they are not affected by this license.
*
*/
%option never-interactive
%{
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <ctype.h>
#include <unistd.h>
#include <qstring.h>
#include <qstringlist.h>
@@ -51,8 +51,8 @@
#include "namespacedef.h"
#include "filedef.h"
#define YY_NEVER_INTERACTIVE 1
#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1
#define MAX_INCLUDE_DEPTH 10
View
@@ -17,7 +17,7 @@
* written by M. Kreis
* supports VHDL-87/93/2008
******************************************************************************/
%option never-interactive
%{
/*
@@ -44,8 +44,8 @@
#include "filedef.h"
#include "tooltip.h"
#define YY_NEVER_INTERACTIVE 1
#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1
// Toggle for some debugging info
//#define DBG_CTX(x) fprintf x

0 comments on commit 1dd0cf0

Please sign in to comment.