Objectively 1.0.0
Ultra-lightweight object oriented framework for GNU C.
Data Structures | Functions
URL.h File Reference

Uniform Resource Locators (RFC 3986). More...

#include <Objectively/Array.h>
#include <Objectively/Object.h>
#include <Objectively/String.h>

Go to the source code of this file.

Data Structures

struct  URL
 Uniform Resource Locators (RFC 3986). More...
 

Functions

OBJECTIVELY_EXPORT Class_URL (void)
 

Detailed Description

Uniform Resource Locators (RFC 3986).

Definition in file URL.h.

Function Documentation

◆ _URL()

OBJECTIVELY_EXPORT Class * _URL ( void  )

Definition at line 248 of file URL.c.

248 {
249 static Class *clazz;
250 static Once once;
251
252 do_once(&once, {
253 clazz = _initialize(&(const ClassDef) {
254 .name = "URL",
255 .superclass = _Object(),
256 .instanceSize = sizeof(URL),
257 .interfaceOffset = offsetof(URL, interface),
258 .interfaceSize = sizeof(URLInterface),
260 .destroy = destroy,
261 });
262 });
263
264 return clazz;
265}
Class * _initialize(const ClassDef *def)
Initializes the given Class.
Definition: Class.c:91
static void destroy(Class *clazz)
Definition: URL.c:239
static void initialize(Class *clazz)
Definition: URL.c:220
long Once
The Once type.
Definition: Once.h:37
#define do_once(once, block)
Executes the given block at most one time.
Definition: Once.h:43
ClassDefs are passed to _initialize via an archetype to initialize a Class.
Definition: Class.h:41
The runtime representation of a Class.
Definition: Class.h:95
Class * _Object(void)
The Object archetype.
Definition: Object.c:136
Uniform Resource Locators (RFC 3986).
Definition: URL.h:44