Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
drop #include <unistd.h>
Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
  • Loading branch information
groleo committed May 15, 2015
1 parent 45ebb6f commit 1dd0cf0
Show file tree
Hide file tree
Showing 18 changed files with 34 additions and 38 deletions.
4 changes: 2 additions & 2 deletions src/code.l
Expand Up @@ -14,7 +14,7 @@
* input used in their production; they are not affected by this license.
*
*/

%option never-interactive
%{

/*
Expand Down Expand Up @@ -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
Expand Down
5 changes: 2 additions & 3 deletions src/commentcnv.l
Expand Up @@ -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>
Expand All @@ -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)
Expand Down
5 changes: 3 additions & 2 deletions src/commentscan.l
Expand Up @@ -12,7 +12,8 @@
* input used in their production; they are not affected by this license.
*
*/


%option never-interactive
%{

/*
Expand All @@ -26,7 +27,6 @@
#include <qarray.h>
#include <qstack.h>
#include <qregexp.h>
#include <unistd.h>
#include <qfile.h>

#include "scanner.h"
Expand All @@ -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 &);
Expand Down
3 changes: 2 additions & 1 deletion src/config.l
Expand Up @@ -9,7 +9,7 @@
* See the GNU General Public License for more details.
*
*/

%option never-interactive
%{

/*
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/constexp.l
Expand Up @@ -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;
Expand Down
3 changes: 2 additions & 1 deletion src/declinfo.l
Expand Up @@ -14,7 +14,7 @@
* input used in their production; they are not affected by this license.
*
*/

%option never-interactive
%{

/*
Expand All @@ -30,6 +30,7 @@
#include "message.h"

#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1

/* -----------------------------------------------------------------
*
Expand Down
4 changes: 2 additions & 2 deletions src/defargs.l
Expand Up @@ -39,7 +39,7 @@
* type, and the matchArgumentList in util.cpp is be used to
* further determine the correct separation.
*/

%option never-interactive
%{

/*
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/doctokenizer.l
Expand Up @@ -16,7 +16,7 @@
*
*/


%option never-interactive
%{

#include <ctype.h>
Expand All @@ -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

//--------------------------------------------------------------------------

Expand Down
1 change: 0 additions & 1 deletion src/doxygen.cpp
Expand Up @@ -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>
Expand Down
2 changes: 0 additions & 2 deletions src/formula.cpp
Expand Up @@ -15,8 +15,6 @@
*/

#include <stdlib.h>
#include <unistd.h>

#include <qfile.h>
#include <qfileinfo.h>
#include <qtextstream.h>
Expand Down
4 changes: 2 additions & 2 deletions src/fortrancode.l
Expand Up @@ -23,7 +23,7 @@
- links to interface functions
- references to variables
**/

%option never-interactive
%{

/*
Expand Down Expand Up @@ -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).
Expand Down
5 changes: 2 additions & 3 deletions src/fortranscanner.l
Expand Up @@ -37,7 +37,7 @@
*
* - Must track yyLineNr when using REJECT, unput() or similar commands.
*/

%option never-interactive
%{

#include <stdio.h>
Expand All @@ -48,7 +48,6 @@
#include <qarray.h>
#include <qstack.h>
#include <qregexp.h>
#include <unistd.h>
#include <qfile.h>
#include <qmap.h>

Expand All @@ -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 };
Expand Down
6 changes: 3 additions & 3 deletions src/pre.l
Expand Up @@ -14,7 +14,7 @@
* input used in their production; they are not affected by this license.
*
*/

%option never-interactive
%{

/*
Expand Down Expand Up @@ -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)
Expand Down
4 changes: 2 additions & 2 deletions src/pycode.l
Expand Up @@ -21,7 +21,7 @@
* taught by Peter H. Froehlich <phf@acm.org>.
*/


%option never-interactive
%{

#include <stdio.h>
Expand All @@ -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;
Expand Down
5 changes: 2 additions & 3 deletions src/pyscanner.l
Expand Up @@ -21,7 +21,7 @@
* taught by Peter H. Froehlich <phf@acm.org>.
*/


%option never-interactive
%{

/*
Expand All @@ -35,7 +35,6 @@
#include <qarray.h>
#include <qstack.h>
#include <qregexp.h>
#include <unistd.h>
#include <qfile.h>
#include <qfileinfo.h>

Expand All @@ -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

/* -----------------------------------------------------------------
*
Expand Down
5 changes: 2 additions & 3 deletions src/scanner.l
Expand Up @@ -14,7 +14,7 @@
* input used in their production; they are not affected by this license.
*
*/
%option never-interactive
%{

/*
Expand All @@ -28,7 +28,6 @@
#include <qarray.h>
#include <qstack.h>
#include <qregexp.h>
#include <unistd.h>
#include <qfile.h>

#include "scanner.h"
Expand All @@ -45,8 +44,8 @@

#include "clangparser.h"

#define YY_NEVER_INTERACTIVE 1
#define YY_NO_INPUT 1
#define YY_NO_UNISTD_H 1

/* -----------------------------------------------------------------
*
Expand Down
4 changes: 2 additions & 2 deletions src/tclscanner.l
Expand Up @@ -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>
Expand Down Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions src/vhdlcode.l
Expand Up @@ -17,7 +17,7 @@
* written by M. Kreis
* supports VHDL-87/93/2008
******************************************************************************/

%option never-interactive
%{

/*
Expand All @@ -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
Expand Down

0 comments on commit 1dd0cf0

Please sign in to comment.