Blame include/sass/base.h

Packit Service 7770af
#ifndef SASS_BASE_H
Packit Service 7770af
#define SASS_BASE_H
Packit Service 7770af
Packit Service 7770af
// #define DEBUG_SHARED_PTR
Packit Service 7770af
Packit Service 7770af
#ifdef _MSC_VER
Packit Service 7770af
  #pragma warning(disable : 4503)
Packit Service 7770af
  #ifndef _SCL_SECURE_NO_WARNINGS
Packit Service 7770af
    #define _SCL_SECURE_NO_WARNINGS
Packit Service 7770af
  #endif
Packit Service 7770af
  #ifndef _CRT_SECURE_NO_WARNINGS
Packit Service 7770af
    #define _CRT_SECURE_NO_WARNINGS
Packit Service 7770af
  #endif
Packit Service 7770af
  #ifndef _CRT_NONSTDC_NO_DEPRECATE
Packit Service 7770af
    #define _CRT_NONSTDC_NO_DEPRECATE
Packit Service 7770af
  #endif
Packit Service 7770af
#endif
Packit Service 7770af
Packit Service 7770af
#include <stddef.h>
Packit Service 7770af
#include <stdbool.h>
Packit Service 7770af
Packit Service 7770af
#ifdef __GNUC__
Packit Service 7770af
  #define DEPRECATED(func) func __attribute__ ((deprecated))
Packit Service 7770af
#elif defined(_MSC_VER)
Packit Service 7770af
  #define DEPRECATED(func) __declspec(deprecated) func
Packit Service 7770af
#else
Packit Service 7770af
  #pragma message("WARNING: You need to implement DEPRECATED for this compiler")
Packit Service 7770af
  #define DEPRECATED(func) func
Packit Service 7770af
#endif
Packit Service 7770af
Packit Service 7770af
#ifdef _WIN32
Packit Service 7770af
Packit Service 7770af
  /* You should define ADD_EXPORTS *only* when building the DLL. */
Packit Service 7770af
  #ifdef ADD_EXPORTS
Packit Service 7770af
    #define ADDAPI __declspec(dllexport)
Packit Service 7770af
    #define ADDCALL __cdecl
Packit Service 7770af
  #else
Packit Service 7770af
    #define ADDAPI
Packit Service 7770af
    #define ADDCALL
Packit Service 7770af
  #endif
Packit Service 7770af
Packit Service 7770af
#else /* _WIN32 not defined. */
Packit Service 7770af
Packit Service 7770af
  /* Define with no value on non-Windows OSes. */
Packit Service 7770af
  #define ADDAPI
Packit Service 7770af
  #define ADDCALL
Packit Service 7770af
Packit Service 7770af
#endif
Packit Service 7770af
Packit Service 7770af
/* Make sure functions are exported with C linkage under C++ compilers. */
Packit Service 7770af
#ifdef __cplusplus
Packit Service 7770af
extern "C" {
Packit Service 7770af
#endif
Packit Service 7770af
Packit Service 7770af
Packit Service 7770af
// Different render styles
Packit Service 7770af
enum Sass_Output_Style {
Packit Service 7770af
  SASS_STYLE_NESTED,
Packit Service 7770af
  SASS_STYLE_EXPANDED,
Packit Service 7770af
  SASS_STYLE_COMPACT,
Packit Service 7770af
  SASS_STYLE_COMPRESSED,
Packit Service 7770af
  // only used internaly
Packit Service 7770af
  SASS_STYLE_INSPECT,
Packit Service 7770af
  SASS_STYLE_TO_SASS
Packit Service 7770af
};
Packit Service 7770af
Packit Service 7770af
// to allocate buffer to be filled
Packit Service 7770af
ADDAPI void* ADDCALL sass_alloc_memory(size_t size);
Packit Service 7770af
// to allocate a buffer from existing string
Packit Service 7770af
ADDAPI char* ADDCALL sass_copy_c_string(const char* str);
Packit Service 7770af
// to free overtaken memory when done
Packit Service 7770af
ADDAPI void ADDCALL sass_free_memory(void* ptr);
Packit Service 7770af
Packit Service 7770af
// Some convenient string helper function
Packit Service 7770af
ADDAPI char* ADDCALL sass_string_quote (const char* str, const char quote_mark);
Packit Service 7770af
ADDAPI char* ADDCALL sass_string_unquote (const char* str);
Packit Service 7770af
Packit Service 7770af
// Implemented sass language version
Packit Service 7770af
// Hardcoded version 3.4 for time being
Packit Service 7770af
ADDAPI const char* ADDCALL libsass_version(void);
Packit Service 7770af
Packit Service 7770af
// Get compiled libsass language
Packit Service 7770af
ADDAPI const char* ADDCALL libsass_language_version(void);
Packit Service 7770af
Packit Service 7770af
#ifdef __cplusplus
Packit Service 7770af
} // __cplusplus defined.
Packit Service 7770af
#endif
Packit Service 7770af
Packit Service 7770af
#endif