Macros
mark.h File Reference
#include "nvim/ascii.h"
#include "nvim/buffer_defs.h"
#include "nvim/ex_cmds_defs.h"
#include "nvim/extmark_defs.h"
#include "nvim/func_attr.h"
#include "nvim/macros.h"
#include "nvim/mark_defs.h"
#include "nvim/memory.h"
#include "nvim/os/time.h"
#include "nvim/pos.h"

Go to the source code of this file.

Macros

#define SET_FMARK(fmarkp_, mark_, fnum_)
 Set fmark using given value. More...
 
#define RESET_FMARK(fmarkp_, mark_, fnum_)
 Free and set fmark using given value. More...
 
#define CLEAR_FMARK(fmarkp_)   RESET_FMARK(fmarkp_, ((pos_T) { 0, 0, 0 }), 0)
 Clear given fmark. More...
 
#define SET_XFMARK(xfmarkp_, mark_, fnum_, fname_)
 Set given extended mark (regular mark + file name) More...
 
#define RESET_XFMARK(xfmarkp_, mark_, fnum_, fname_)
 Free and set given extended mark (regular mark + file name) More...
 

Macro Definition Documentation

◆ CLEAR_FMARK

#define CLEAR_FMARK (   fmarkp_)    RESET_FMARK(fmarkp_, ((pos_T) { 0, 0, 0 }), 0)

Clear given fmark.

◆ RESET_FMARK

#define RESET_FMARK (   fmarkp_,
  mark_,
  fnum_ 
)
Value:
do { \
fmark_T *const fmarkp___ = fmarkp_; \
free_fmark(*fmarkp___); \
SET_FMARK(fmarkp___, mark_, fnum_); \
} while (0)

Free and set fmark using given value.

◆ RESET_XFMARK

#define RESET_XFMARK (   xfmarkp_,
  mark_,
  fnum_,
  fname_ 
)
Value:
do { \
xfmark_T *const xfmarkp__ = xfmarkp_; \
free_xfmark(*xfmarkp__); \
xfmarkp__->fname = fname_; \
SET_FMARK(&(xfmarkp__->fmark), mark_, fnum_); \
} while (0)

Free and set given extended mark (regular mark + file name)

◆ SET_FMARK

#define SET_FMARK (   fmarkp_,
  mark_,
  fnum_ 
)
Value:
do { \
fmark_T *const fmarkp__ = fmarkp_; \
fmarkp__->mark = mark_; \
fmarkp__->fnum = fnum_; \
fmarkp__->timestamp = os_time(); \
fmarkp__->additional_data = NULL; \
} while (0)

Set fmark using given value.

◆ SET_XFMARK

#define SET_XFMARK (   xfmarkp_,
  mark_,
  fnum_,
  fname_ 
)
Value:
do { \
xfmark_T *const xfmarkp__ = xfmarkp_; \
xfmarkp__->fname = fname_; \
SET_FMARK(&(xfmarkp__->fmark), mark_, fnum_); \
} while (0)

Set given extended mark (regular mark + file name)

os_time
Timestamp os_time(void)
Definition: time.c:217
NULL
return NULL
Definition: eval.c:10355