midl.c(3)

πŸ“¦
version 0.9.35 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

✨ midl.c β€” bestie edition ✨

okay so this is midl.c(3), from the Library Functions Manual β€” it's the ldap bdb back-end ID List functions and honestly? it's giving infrastructure. it's the plumbing that holds the vibes together. let's go 🫢


πŸ’– NAME πŸ’–

midl.c β€” the ldap bdb back-end ID List functions. that's it, that's the whole name. short, sweet, iconic. πŸ‘‘


🌸 SYNOPSIS 🌸

first you gotta pull in the girlies (the headers):

#include <limits.h>
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <sys/types.h>
#include <'midl.h'>
ngl the 'midl.h' with the single quotes is exactly how it's written up top, we don't question the ancestors πŸ’…

πŸŽ€ Macros

  • #define CMP(x, y) β€” the comparison macro, no cap
  • #define SMALL 8 β€” the small-ness constant, it's literally 8
  • #define MIDL_SWAP(a, b) β€” the swap macro, we love a switcheroo

πŸ¦‹ Functions

unsigned mdb_midl_search (MDB_IDL ids, MDB_ID id)
MDB_IDL mdb_midl_alloc (int num)
void mdb_midl_free (MDB_IDL ids)
void mdb_midl_shrink (MDB_IDL *idp)
static int mdb_midl_grow (MDB_IDL *idp, int num)
int mdb_midl_need (MDB_IDL *idp, unsigned num)
int mdb_midl_append (MDB_IDL *idp, MDB_ID id)
int mdb_midl_append_list (MDB_IDL *idp, MDB_IDL app)
int mdb_midl_append_range (MDB_IDL *idp, MDB_ID id, unsigned n)
void mdb_midl_xmerge (MDB_IDL idl, MDB_IDL merge)
void mdb_midl_sort (MDB_IDL ids)
unsigned mdb_mid2l_search (MDB_ID2L ids, MDB_ID id)
int mdb_mid2l_insert (MDB_ID2L ids, MDB_ID2 *id)
int mdb_mid2l_append (MDB_ID2L ids, MDB_ID2 *id)

look at that list. fourteen functions. search, alloc, free, shrink, grow, need, append, append_list, append_range, xmerge, sort β€” and then the mid2l trio: search, insert, append. every single one accounted for, periodt. πŸ”₯


πŸ”₯ Detailed Description πŸ”₯

ldap bdb back-end ID List functions.

that's the vibe. this is the file where the ID lists live and the functions that handle them live. iykyk. 🌈


πŸ‘‘ Author πŸ‘‘

Generated automatically by Doxygen for LMDB from the source code. (so like, not a human author β€” the machine did this one, and honestly, good for it ⭐)


that's the whole page bestie!! this was midl.c(3) from the LMDB library functions manual, and it's gonna be here whenever you need a little list-management moment. mwah, go slay πŸ’–πŸ’…πŸŽ€

πŸ“¦ where this page comes from