MCPcopy Create free account
hub / github.com/apache/httpd / json_create

Function json_create

modules/md/md_json.c:73–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73static md_json_t *json_create(apr_pool_t *pool, json_t *j)
74{
75 md_json_t *json;
76
77 if (!j) {
78 apr_abortfunc_t abfn = apr_pool_abort_get(pool);
79 if (abfn) {
80 abfn(APR_ENOMEM);
81 }
82 assert(j != NULL); /* failsafe in case abort is unset */
83 }
84 json = apr_pcalloc(pool, sizeof(*json));
85 json->p = pool;
86 json->j = j;
87 apr_pool_cleanup_register(pool, json, json_pool_cleanup, apr_pool_cleanup_null);
88
89 return json;
90}
91
92md_json_t *md_json_create(apr_pool_t *pool)
93{

Callers 10

md_json_createFunction · 0.85
md_json_create_sFunction · 0.85
md_json_copyFunction · 0.85
md_json_cloneFunction · 0.85
md_json_getjFunction · 0.85
md_json_dupjFunction · 0.85
md_json_getcjFunction · 0.85
md_json_readdFunction · 0.85
md_json_readbFunction · 0.85
md_json_readfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected