libcss
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions | Variables
propstrings.c File Reference
#include "parse/propstrings.h"
#include "stylesheet.h"
#include <assert.h>

Classes

struct  stringmap_entry
 
struct  css__propstrings_ctx
 

Macros

#define SMAP(s)   { s, (sizeof((s)) - 1) /* -1 for '\0' */ }
 

Typedefs

typedef struct stringmap_entry stringmap_entry
 
typedef struct css__propstrings_ctx css__propstrings_ctx
 

Functions

css_error css__propstrings_get (lwc_string ***strings)
 
void css__propstrings_unref (void)
 

Variables

const stringmap_entry stringmap [LAST_KNOWN]
 

Macro Definition Documentation

◆ SMAP

#define SMAP (   s)    { s, (sizeof((s)) - 1) /* -1 for '\0' */ }

build string map entry with a string constant

Typedef Documentation

◆ css__propstrings_ctx

◆ stringmap_entry

Function Documentation

◆ css__propstrings_get()

css_error css__propstrings_get ( lwc_string ***  strings)

Obtain pointer to interned propstring list

Parameters
sheetReturns pointer to propstring table
Returns
CSS_OK on success, CSS_NOMEM on memory exhaustion

The propstring list is generated with the first call to this function and destroyed when it has no more users. Call css__propstrings_unref() when finished with the propstring list.

◆ css__propstrings_unref()

void css__propstrings_unref ( void  )

Reduce reference count for propstring list by one.

When count hits zero, the list is destroyed.

Variable Documentation

◆ stringmap

const stringmap_entry stringmap[LAST_KNOWN]