Skip to content

Commit

Permalink
- ddlspec(dllexport|dllimport) should be first before the return type
Browse files Browse the repository at this point in the history
git-svn-id: https://openmodelica.org/svn/OpenModelica/trunk@24511 f25d12d1-65f4-0310-ae8a-bbce733d8d8e
  • Loading branch information
adrpo committed Feb 11, 2015
1 parent 6ee280a commit 4ff29a9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Expand Up @@ -43,8 +43,8 @@ class ModelicaSimulationError: public std::runtime_error
};

//Helper functions to convert the error id to a readable format
string BOOST_EXTENSION_EXPORT_DECL error_id_string(SIMULATION_ERROR id);
BOOST_EXTENSION_EXPORT_DECL string error_id_string(SIMULATION_ERROR id);
//Helper functions to extend an error information for new additional string and time stamp
string BOOST_EXTENSION_EXPORT_DECL add_error_info(string new_info,string info,SIMULATION_ERROR id,double& time);
BOOST_EXTENSION_EXPORT_DECL string add_error_info(string new_info,string info,SIMULATION_ERROR id,double& time);
//Helper functions to extend an error information for new additional string
string BOOST_EXTENSION_EXPORT_DECL add_error_info(string new_info,string info,SIMULATION_ERROR id);
BOOST_EXTENSION_EXPORT_DECL string add_error_info(string new_info,string info,SIMULATION_ERROR id);
Expand Up @@ -17,15 +17,15 @@ extern "C" {
*
* @param string The message.
*/
void BOOST_EXTENSION_EXPORT_DECL ModelicaMessage(const char* string);
BOOST_EXTENSION_EXPORT_DECL void ModelicaMessage(const char* string);

/**
* \brief Output the message under the same format control as the C-function
* printf.
*
* @param string The formatted message.
*/
void BOOST_EXTENSION_EXPORT_DECL ModelicaFormatMessage(const char* string,...);
BOOST_EXTENSION_EXPORT_DECL void ModelicaFormatMessage(const char* string,...);

/**
* \brief Output the message under the same format control as the C-function
Expand All @@ -34,7 +34,7 @@ void BOOST_EXTENSION_EXPORT_DECL ModelicaFormatMessage(const char* string,...);
* @param string The formatted message.
* @param arg_ptr Pointer to list of arguments.
*/
void BOOST_EXTENSION_EXPORT_DECL ModelicaVFormatMessage(const char* string, va_list arg_ptr);
BOOST_EXTENSION_EXPORT_DECL void ModelicaVFormatMessage(const char* string, va_list arg_ptr);

/**
* \brief Output the error message string (no format control). This function
Expand All @@ -43,7 +43,7 @@ void BOOST_EXTENSION_EXPORT_DECL ModelicaVFormatMessage(const char* string, va_l
*
* @param string The error message.
*/
void BOOST_EXTENSION_EXPORT_DECL ModelicaError(const char* string);
BOOST_EXTENSION_EXPORT_DECL void ModelicaError(const char* string);

/**
* \brief Output the error message under the same format control as the
Expand All @@ -52,7 +52,7 @@ void BOOST_EXTENSION_EXPORT_DECL ModelicaError(const char* string);
*
* @param string The formatted error message.
*/
void BOOST_EXTENSION_EXPORT_DECL ModelicaFormatError(const char* string,...);
BOOST_EXTENSION_EXPORT_DECL void ModelicaFormatError(const char* string,...);

/**
* \brief Output the error message under the same format control as the
Expand All @@ -62,7 +62,7 @@ void BOOST_EXTENSION_EXPORT_DECL ModelicaFormatError(const char* string,...);
* @param string The formatted error message.
* @param arg_ptr Pointer to list of arguments.
*/
void BOOST_EXTENSION_EXPORT_DECL ModelicaVFormatError(const char* string, va_list arg_ptr);
BOOST_EXTENSION_EXPORT_DECL void ModelicaVFormatError(const char* string, va_list arg_ptr);

/**
* \brief Allocate memory for a Modelica string which is used as return argument
Expand All @@ -73,7 +73,7 @@ void BOOST_EXTENSION_EXPORT_DECL ModelicaVFormatError(const char* string, va_lis
*
* @param len Length of string to allocate.
*/
char* BOOST_EXTENSION_EXPORT_DECL ModelicaAllocateString(size_t len);
BOOST_EXTENSION_EXPORT_DECL char* ModelicaAllocateString(size_t len);

/**
* \brief Same as ModelicaAllocateString, except that in case of error, the
Expand All @@ -83,7 +83,7 @@ char* BOOST_EXTENSION_EXPORT_DECL ModelicaAllocateString(size_t len);
*
* @param len Length of string to allocate.
*/
char* BOOST_EXTENSION_EXPORT_DECL ModelicaAllocateStringWithErrorReturn(size_t len);
BOOST_EXTENSION_EXPORT_DECL char* ModelicaAllocateStringWithErrorReturn(size_t len);


#ifdef __cplusplus
Expand Down

0 comments on commit 4ff29a9

Please sign in to comment.