dsnlexer can live in kicommon

This commit is contained in:
Marek Roszko 2024-01-03 23:18:31 -05:00
parent 675e126eae
commit f8744b7797
3 changed files with 6 additions and 6 deletions

View File

@ -106,6 +106,7 @@ set( KICOMMON_SRCS
build_version.cpp build_version.cpp
config_params.cpp config_params.cpp
confirm.cpp confirm.cpp
dsnlexer.cpp
eda_pattern_match.cpp eda_pattern_match.cpp
eda_units.cpp eda_units.cpp
exceptions.cpp exceptions.cpp
@ -454,7 +455,6 @@ set( COMMON_SRCS
draw_panel_gal.cpp draw_panel_gal.cpp
gal_display_options_common.cpp gal_display_options_common.cpp
gr_text.cpp gr_text.cpp
dsnlexer.cpp
eda_base_frame.cpp eda_base_frame.cpp
eda_dde.cpp eda_dde.cpp
eda_doc.cpp eda_doc.cpp

View File

@ -1,9 +1,8 @@
/* /*
* This program source code file is part of KiCad, a free EDA CAD application. * This program source code file is part of KiCad, a free EDA CAD application.
* *
* Copyright (C) 2007-2013 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com> * Copyright (C) 2007-2013 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2007-2020 KiCad Developers, see AUTHORS.txt for contributors. * Copyright (C) 2007-2024 KiCad Developers, see AUTHORS.txt for contributors.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License

View File

@ -2,7 +2,7 @@
* This program source code file is part of KICAD, a free EDA CAD application. * This program source code file is part of KICAD, a free EDA CAD application.
* *
* Copyright (C) 2007-2010 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com> * Copyright (C) 2007-2010 SoftPLC Corporation, Dick Hollenbeck <dick@softplc.com>
* Copyright (C) 2007-2021 Kicad Developers, see change_log.txt for contributors. * Copyright (C) 2007-2024 Kicad Developers, see change_log.txt for contributors.
* *
* This program is free software; you can redistribute it and/or * This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License * modify it under the terms of the GNU General Public License
@ -25,6 +25,7 @@
#ifndef DSNLEXER_H_ #ifndef DSNLEXER_H_
#define DSNLEXER_H_ #define DSNLEXER_H_
#include <kicommon.h>
#include <cstdio> #include <cstdio>
#include <hashtables.h> #include <hashtables.h>
#include <string> #include <string>
@ -36,7 +37,7 @@
/** /**
* Hold a keyword string and its unique integer token. * Hold a keyword string and its unique integer token.
*/ */
struct KEYWORD struct KICOMMON_API KEYWORD
{ {
const char* name; ///< unique keyword. const char* name; ///< unique keyword.
int token; ///< a zero based index into an array of KEYWORDs int token; ///< a zero based index into an array of KEYWORDs
@ -75,7 +76,7 @@ enum DSN_SYNTAX_T
* *
* It reads lexical tokens from the current #LINE_READER through the #NextTok() function. * It reads lexical tokens from the current #LINE_READER through the #NextTok() function.
*/ */
class DSNLEXER class KICOMMON_API DSNLEXER
{ {
public: public: