Skip to content

Commit

Permalink
Merge pull request #404 from sandialabs/aprepro-symrec-include
Browse files Browse the repository at this point in the history
APREPRO: Make symrec definition available in aprepro.h
  • Loading branch information
gsjaardema authored Sep 25, 2023
2 parents 88558dc + 01a9a2f commit 3d2058a
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 12 deletions.
1 change: 0 additions & 1 deletion packages/seacas/doc-source/aprepro/library.tex
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,6 @@ \section{Aprepro Library Test/Example Program}
#include <fstream>
#include <iostream>

#include "apr_symrec.h"
#include "aprepro.h"

// This function is used below in the example showing how an
Expand Down
1 change: 1 addition & 0 deletions packages/seacas/libraries/aprepro_lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ endif()

SET(HEADERS
aprepro.h
apr_symrec.h
apr_tokenize.h
)

Expand Down
3 changes: 1 addition & 2 deletions packages/seacas/libraries/aprepro_lib/apr_aprepro.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// See packages/seacas/LICENSE for details

#include "apr_scanner.h" // for Scanner
#include "apr_symrec.h"
#include "apr_util.h"
#include "aprepro.h" // for Aprepro, symrec, file_rec, etc
#include "aprepro_parser.h" // for Parser, Parser::token, etc
Expand Down Expand Up @@ -35,7 +34,7 @@
#endif

namespace {
const std::string version_string{"6.20 (2023/08/24)"};
const std::string version_string{"6.21 (2023/09/25)"};

void output_copyright();

Expand Down
1 change: 0 additions & 1 deletion packages/seacas/libraries/aprepro_lib/apr_init.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
Initialize variables and functions Aprepro
***/
#include "apr_builtin.h"
#include "apr_symrec.h"
#include "apr_tokenize.h"
#include "aprepro.h" // for symrec, Aprepro, etc
#include "init_structs.h" // for array_a_init, array_c_init, etc
Expand Down
1 change: 0 additions & 1 deletion packages/seacas/libraries/aprepro_lib/apr_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
#include <fstream>
#include <iostream>

#include "apr_symrec.h"
#include "aprepro.h"

// This function is used below in the example showing how an
Expand Down
3 changes: 1 addition & 2 deletions packages/seacas/libraries/aprepro_lib/apr_util.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
//
// See packages/seacas/LICENSE for details

#include "apr_symrec.h"
#include "aprepro.h" // for symrec, Aprepro, etc
#include "aprepro_parser.h" // for Parser, Parser::token, etc

Expand All @@ -31,7 +30,7 @@
#include <windows.h>

#if !defined(S_ISDIR)
#define S_ISDIR(mode) (((mode)&S_IFMT) == S_IFDIR)
#define S_ISDIR(mode) (((mode) & S_IFMT) == S_IFDIR)

#endif
#else
Expand Down
7 changes: 4 additions & 3 deletions packages/seacas/libraries/aprepro_lib/apr_util.h
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
/*
* Copyright(C) 1999-2022 National Technology & Engineering Solutions
* Copyright(C) 1999-2023 National Technology & Engineering Solutions
* of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
* NTESS, the U.S. Government retains certain rights in this software.
*
* See packages/seacas/LICENSE for details
*/
#pragma once

#include "apr_symrec.h"
#include "aprepro.h"
#include <string>

namespace SEAMS {
struct symrec;
class Aprepro;

bool arg_check(SEAMS::symrec *symbol, bool is_null);
void conv_string(char *string);
void new_string(const std::string &from, char **to);
Expand Down
4 changes: 2 additions & 2 deletions packages/seacas/libraries/aprepro_lib/aprepro.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#include <string>
#include <vector>

#include "apr_symrec.h"

#if defined(WIN32) || defined(__WIN32__) || defined(_WIN32) || defined(_MSC_VER) || \
defined(__MINGW32__) || defined(_WIN64) || defined(__MINGW64__)
#include <io.h>
Expand All @@ -29,8 +31,6 @@
namespace SEAMS {

struct Symtable;
struct symrec;
struct array;

/* Global options */
struct aprepro_options
Expand Down

0 comments on commit 3d2058a

Please sign in to comment.