Aprepro 5.0x

apr_util.h
Go to the documentation of this file.
1 /*
2 * Copyright (c) 2014-2017 National Technology & Engineering Solutions
3 * of Sandia, LLC (NTESS). Under the terms of Contract DE-NA0003525 with
4 * NTESS, the U.S. Government retains certain rights in this software.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met:
9 *
10 * * Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer.
12 *
13 * * Redistributions in binary form must reproduce the above
14 * copyright notice, this list of conditions and the following
15 * disclaimer in the documentation and/or other materials provided
16 * with the distribution.
17 *
18 * * Neither the name of NTESS nor the names of its
19 * contributors may be used to endorse or promote products derived
20 * from this software without specific prior written permission.
21 *
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
23 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
24 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
25 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
26 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
27 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
28 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
29 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
32 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 *
34 */
35 #ifndef SEAMS_UTIL_H
36 #define SEAMS_UTIL_H
37
38 #include "aprepro.h"
39 #include <string>
40
41 namespace SEAMS {
42 bool arg_check(SEAMS::symrec *symbol, bool is_null);
43 void conv_string(char *string);
44 void new_string(const std::string &from, char **to);
45 void new_string(const char *from, char **to);
46 void concat_string(const char *from1, const char *from2, char **to);
47 const char *get_temp_filename();
48 void math_error(const SEAMS::Aprepro &aprepro, const char *function);
49 void math_error(const char *function);
50 void yyerror(const SEAMS::Aprepro &aprepro, const std::string &s);
51 void undefined_error(const SEAMS::Aprepro &aprepro, const std::string &var);
52 void redefined_warning(const SEAMS::Aprepro &aprepro, const SEAMS::symrec *var);
53 void warning(const SEAMS::Aprepro &aprepro, const std::string &var);
54 void immutable_modify(const SEAMS::Aprepro &aprepro, const SEAMS::symrec *var);
55 void set_type(const SEAMS::Aprepro &apr, SEAMS::symrec *var, int type);
56 void cleanup_memory();
57 bool is_directory(const std::string &filepath);
58 bool check_valid_var(const char *s);
59 } // namespace SEAMS
60 #endif
SEAMS::Aprepro
Definition: aprepro.h:178
SEAMS::cleanup_memory
void cleanup_memory()
Definition: apr_util.cc:244
aprepro.h
SEAMS::symrec
Definition: aprepro.h:69
SEAMS::redefined_warning
void redefined_warning(const SEAMS::Aprepro &apr, const SEAMS::symrec *var)
Definition: apr_util.cc:176
SEAMS::check_valid_var
bool check_valid_var(const char *var)
Definition: apr_util.cc:268
SEAMS::immutable_modify
void immutable_modify(const SEAMS::Aprepro &apr, const SEAMS::symrec *var)
Definition: apr_util.cc:160
SEAMS::conv_string
void conv_string(const char *string)
SEAMS::arg_check
bool arg_check(SEAMS::symrec *symbol, bool is_null)
Definition: apr_util.cc:90
SEAMS::yyerror
void yyerror(const char *s)
SEAMS::warning
void warning(const SEAMS::Aprepro &apr, const std::string &s)
Definition: apr_util.cc:191
SEAMS::undefined_error
void undefined_error(const SEAMS::Aprepro &apr, const std::string &var)
Definition: apr_util.cc:166
SEAMS::set_type
void set_type(const SEAMS::Aprepro &apr, SEAMS::symrec *var, int type)
Definition: apr_util.cc:102
SEAMS::new_string
void new_string(const std::string &from, char **to)
Definition: apr_util.cc:120
SEAMS::get_temp_filename
const char * get_temp_filename(void)
Definition: apr_util.cc:138
SEAMS::math_error
void math_error(const SEAMS::Aprepro &apr, const char *function)
Definition: apr_util.cc:193
SEAMS::aprepro
Aprepro * aprepro
Definition: apr_aprepro.cc:69
SEAMS
Definition: apr_aprepro.cc:68
SEAMS::concat_string
void concat_string(const char *from1, const char *from2, char **to)
Definition: apr_util.cc:123
SEAMS::is_directory
bool is_directory(const std::string &filepath)
Definition: apr_util.cc:254