Blame winpr/libwinpr/utils/corkscrew/demangle.h
|
Packit Service |
fa4841 |
/*
|
|
Packit Service |
fa4841 |
* Copyright (C) 2011 The Android Open Source Project
|
|
Packit Service |
fa4841 |
*
|
|
Packit Service |
fa4841 |
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
Packit Service |
fa4841 |
* you may not use this file except in compliance with the License.
|
|
Packit Service |
fa4841 |
* You may obtain a copy of the License at
|
|
Packit Service |
fa4841 |
*
|
|
Packit Service |
fa4841 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit Service |
fa4841 |
*
|
|
Packit Service |
fa4841 |
* Unless required by applicable law or agreed to in writing, software
|
|
Packit Service |
fa4841 |
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
Packit Service |
fa4841 |
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
Packit Service |
fa4841 |
* See the License for the specific language governing permissions and
|
|
Packit Service |
fa4841 |
* limitations under the License.
|
|
Packit Service |
fa4841 |
*/
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
/* C++ symbol name demangling. */
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
#ifndef _CORKSCREW_DEMANGLE_H
|
|
Packit Service |
fa4841 |
#define _CORKSCREW_DEMANGLE_H
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
#include <sys/types.h>
|
|
Packit Service |
fa4841 |
#include <stdbool.h>
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
#ifdef __cplusplus
|
|
Packit Service |
b1ea74 |
extern "C"
|
|
Packit Service |
b1ea74 |
{
|
|
Packit Service |
fa4841 |
#endif
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
b1ea74 |
/*
|
|
Packit Service |
b1ea74 |
* Demangles a C++ symbol name.
|
|
Packit Service |
b1ea74 |
* If name is NULL or if the name cannot be demangled, returns NULL.
|
|
Packit Service |
b1ea74 |
* Otherwise, returns a newly allocated string that contains the demangled name.
|
|
Packit Service |
b1ea74 |
*
|
|
Packit Service |
b1ea74 |
* The caller must free the returned string using free().
|
|
Packit Service |
b1ea74 |
*/
|
|
Packit Service |
b1ea74 |
char* demangle_symbol_name(const char* name);
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
#ifdef __cplusplus
|
|
Packit Service |
fa4841 |
}
|
|
Packit Service |
fa4841 |
#endif
|
|
Packit Service |
fa4841 |
|
|
Packit Service |
fa4841 |
#endif // _CORKSCREW_DEMANGLE_H
|