nsgenbind
Loading...
Searching...
No Matches
Macros | Functions
duk-libdom-interface.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
#include <getopt.h>
#include <errno.h>
#include <ctype.h>
#include "options.h"
#include "utils.h"
#include "nsgenbind-ast.h"
#include "webidl-ast.h"
#include "ir.h"
#include "output.h"
#include "duk-libdom.h"

Go to the source code of this file.

Macros

#define DLPFX   "dukky"
 
#define MAGICPFX   "\\xFF\\xFFNETSURF_DUKTAPE_"
 

Functions

int output_interface (struct ir *ir, struct ir_entry *interfacee)
 
int output_interface_declaration (struct opctx *outc, struct ir_entry *interfacee)
 

Macro Definition Documentation

◆ DLPFX

#define DLPFX   "dukky"

prefix for all generated functions

Definition at line 27 of file duk-libdom-interface.c.

◆ MAGICPFX

#define MAGICPFX   "\\xFF\\xFFNETSURF_DUKTAPE_"

Definition at line 29 of file duk-libdom-interface.c.

Function Documentation

◆ output_interface()

int output_interface ( struct ir ir,
struct ir_entry interfacee 
)

generate a source file to implement an interface using duk and libdom.

Parameters
irThe intermediate representation of the binding tree.
interfaceeThe interface entry to output within the ir.

Definition at line 1643 of file duk-libdom-interface.c.

◆ output_interface_declaration()

int output_interface_declaration ( struct opctx outc,
struct ir_entry interfacee 
)

generate a declaration to implement a dictionary using duk and libdom.

Definition at line 1742 of file duk-libdom-interface.c.