Benign repos download unavailable

autocmd.c

imports nvim/buffer.hSwitches on a member named type
SHA-25608945ec74936c3b31c30705173e84a2d4a7b7702e0875e1c5009eb6e5e07f755

Evidence

imports nvim/buffer.h lines 1–36
1#include <assert.h>
2#include <lauxlib.h>
3#include <stdbool.h>
4#include <stdint.h>
5#include <stdlib.h>
6#include <string.h>
7
8#include "klib/kvec.h"
9#include "nvim/api/autocmd.h"
10#include "nvim/api/keysets_defs.h"
11#include "nvim/api/private/defs.h"
12#include "nvim/api/private/dispatch.h"
13#include "nvim/api/private/helpers.h"
14#include "nvim/api/private/validate.h"
15#include "nvim/autocmd.h"
16#include "nvim/autocmd_defs.h"
17#include "nvim/buffer.h"
18#include "nvim/buffer_defs.h"
19#include "nvim/eval/typval.h"
20#include "nvim/eval/typval_defs.h"
21#include "nvim/ex_cmds_defs.h"
22#include "nvim/globals.h"
23#include "nvim/lua/executor.h"
24#include "nvim/memory.h"
25#include "nvim/memory_defs.h"
26#include "nvim/strings.h"
27#include "nvim/types_defs.h"
28#include "nvim/vim_defs.h"
29
30#include "api/autocmd.c.generated.h"
31
32#define AUCMD_MAX_PATTERNS 256
33
34// Copy string or array of strings into an empty array.
35// Get the event number, unless it is an error. Then do `or_else`.
36#define GET_ONE_EVENT(event_nr, event_s …
English function-word token "for" lines 39–44
39:60… ta.string.data, { \
40 or_else; \
41 });
42
43// ID for associating autocmds created via nvim_create_autocmd
44// Used to delete autocmds from nvim_del_a …
English function-word token "that" lines 45–49
45:15… next_autocmd_id = 1;
46
47/// Get all autocommands that match the corresponding {opts}.
48///
49/// These examples will get autocommands matching ALL the g …
C declares a character or byte buffer lines 257–262
257:31… filters[j];
258 int patlen = (int)strlen(pat);
259
260 char pattern_buflocal[BUFLOCAL_PAT_LEN];
261 if (aupat_is_buflocal(pat, patlen)) {
262 aupat_normalize_buflocal_pat(pattern_buflocal, pa …
Switches on a member named type lines 789–797
789:35… (Object group, Error *err)
790{
791 int au_group = AUGROUP_ERROR;
792
793 switch (group.type) {
794 case kObjectTypeNil:
795 return AUGROUP_DEFAULT;
796 case kObjectTypeString:
797 au_group = augroup_find(group.data.string.da …

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.