File tree Expand file tree Collapse file tree 8 files changed +14
-9
lines changed
Expand file tree Collapse file tree 8 files changed +14
-9
lines changed Original file line number Diff line number Diff line change @@ -314,6 +314,11 @@ if(UNIX)
314314 endif ()
315315endif ()
316316
317+ check_c_compiler_flag(-fno-common HAVE_FNO_COMMON)
318+ if (HAVE_FNO_COMMON)
319+ add_compile_options (-fno-common)
320+ endif ()
321+
317322check_c_compiler_flag(-fdiagnostics-color=auto HAS_DIAG_COLOR_FLAG)
318323if (HAS_DIAG_COLOR_FLAG)
319324 if (CMAKE_GENERATOR MATCHES "Ninja" )
Original file line number Diff line number Diff line change 1515#include "nvim/ascii.h"
1616
1717static bool did_stdio = false;
18- PMap (uint64_t ) * channels = NULL ;
1918
2019/// next free id for a job or rpc channel
2120/// 1 is reserved for stdio channel
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ struct Channel {
8585 bool callback_scheduled ;
8686};
8787
88- EXTERN PMap (uint64_t ) * channels ;
88+ EXTERN PMap (uint64_t ) * channels INIT ( = NULL ) ;
8989
9090#ifdef INCLUDE_GENERATED_DECLARATIONS
9191# include "channel.h.generated.h"
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ typedef double float_T;
3333enum { DO_NOT_FREE_CNT = (INT_MAX / 2 ) };
3434
3535/// Additional values for tv_list_alloc() len argument
36- enum {
36+ enum ListLenSpecials {
3737 /// List length is not known in advance
3838 ///
3939 /// To be used when there is neither a way to know how many elements will be
4949 ///
5050 /// To be used when it looks impractical to determine list length.
5151 kListLenMayKnow = -3 ,
52- } ListLenSpecials ;
52+ };
5353
5454/// Maximal possible value of varnumber_T variable
5555#define VARNUMBER_MAX INT64_MAX
Original file line number Diff line number Diff line change 1010/// Values for "noremap" argument of ins_typebuf()
1111///
1212/// Also used for map->m_noremap and menu->noremap[].
13- enum {
13+ enum RemapValues {
1414 REMAP_YES = 0 , ///< Allow remapping.
1515 REMAP_NONE = -1 , ///< No remapping.
1616 REMAP_SCRIPT = -2 , ///< Remap script-local mappings only.
1717 REMAP_SKIP = -3 , ///< No remapping for first char.
18- } RemapValues ;
18+ };
1919
2020// Argument for flush_buffers().
2121typedef enum {
Original file line number Diff line number Diff line change 1010#include <msgpack.h>
1111
1212#include "nvim/ascii.h"
13+ #include "nvim/channel.h"
1314#include "nvim/vim.h"
1415#include "nvim/main.h"
1516#include "nvim/aucmd.h"
Original file line number Diff line number Diff line change 1515/// HACK: os/input.c drains this queue immediately before blocking for input.
1616/// Events on this queue are async-safe, but they need the resolved state
1717/// of os_inchar(), so they are processed "just-in-time".
18- MultiQueue * ch_before_blocking_events ;
18+ EXTERN MultiQueue * ch_before_blocking_events INIT ( = NULL ) ;
1919
2020
2121#ifdef INCLUDE_GENERATED_DECLARATIONS
Original file line number Diff line number Diff line change @@ -326,7 +326,7 @@ struct expr_ast_node {
326326 } data ;
327327};
328328
329- enum {
329+ enum ExprParserFlags {
330330 /// Allow multiple expressions in a row: e.g. for :echo
331331 ///
332332 /// Parser will still parse only one of them though.
@@ -345,7 +345,7 @@ enum {
345345 // viml_expressions_parser.c, nvim_parse_expression() flags parsing
346346 // alongside with its documentation and flag sets in check_parsing()
347347 // function in expressions parser functional and unit tests.
348- } ExprParserFlags ;
348+ };
349349
350350/// AST error definition
351351typedef struct {
You can’t perform that action at this time.
0 commit comments