Blame src/sass_functions.hpp

Packit Service 7770af
#ifndef SASS_SASS_FUNCTIONS_H
Packit Service 7770af
#define SASS_SASS_FUNCTIONS_H
Packit Service 7770af
Packit Service 7770af
#include "sass.h"
Packit Service 7770af
#include "environment.hpp"
Packit Service 7770af
#include "functions.hpp"
Packit Service 7770af
Packit Service 7770af
// Struct to hold custom function callback
Packit Service 7770af
struct Sass_Function {
Packit Service 7770af
  char*            signature;
Packit Service 7770af
  Sass_Function_Fn function;
Packit Service 7770af
  void*            cookie;
Packit Service 7770af
};
Packit Service 7770af
Packit Service 7770af
// External import entry
Packit Service 7770af
struct Sass_Import {
Packit Service 7770af
  char* imp_path; // path as found in the import statement
Packit Service 7770af
  char *abs_path; // path after importer has resolved it
Packit Service 7770af
  char* source;
Packit Service 7770af
  char* srcmap;
Packit Service 7770af
  // error handling
Packit Service 7770af
  char* error;
Packit Service 7770af
  size_t line;
Packit Service 7770af
  size_t column;
Packit Service 7770af
};
Packit Service 7770af
Packit Service 7770af
// External environments
Packit Service 7770af
struct Sass_Env {
Packit Service 7770af
  // links to parent frames
Packit Service 7770af
  Sass::Env* frame;
Packit Service 7770af
};
Packit Service 7770af
Packit Service 7770af
// External call entry
Packit Service 7770af
struct Sass_Callee {
Packit Service 7770af
  const char* name;
Packit Service 7770af
  const char* path;
Packit Service 7770af
  size_t line;
Packit Service 7770af
  size_t column;
Packit Service 7770af
  enum Sass_Callee_Type type;
Packit Service 7770af
  struct Sass_Env env;
Packit Service 7770af
};
Packit Service 7770af
Packit Service 7770af
// Struct to hold importer callback
Packit Service 7770af
struct Sass_Importer {
Packit Service 7770af
  Sass_Importer_Fn importer;
Packit Service 7770af
  double           priority;
Packit Service 7770af
  void*            cookie;
Packit Service 7770af
};
Packit Service 7770af
Packit Service 7770af
#endif