mirror of
https://github.com/neovim/neovim.git
synced 2026-02-11 06:52:09 +10:00
Allow Include What You Use to remove unnecessary includes and only include what is necessary. This helps with reducing compilation times and makes it easier to visualise which dependencies are actually required. Work on https://github.com/neovim/neovim/issues/549, but doesn't close it since this only works fully for .c files and not headers.
22 lines
392 B
C
22 lines
392 B
C
#ifndef NVIM_SHA256_H
|
|
#define NVIM_SHA256_H
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#include "nvim/types.h"
|
|
|
|
#define SHA256_BUFFER_SIZE 64
|
|
#define SHA256_SUM_SIZE 32
|
|
|
|
typedef struct {
|
|
uint32_t total[2];
|
|
uint32_t state[8];
|
|
char_u buffer[SHA256_BUFFER_SIZE];
|
|
} context_sha256_T;
|
|
|
|
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
|
# include "sha256.h.generated.h"
|
|
#endif
|
|
#endif // NVIM_SHA256_H
|