您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ version_msg函数代码示例

51自学网 2021-06-03 09:37:54
  C++
这篇教程C++ version_msg函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中version_msg函数的典型用法代码示例。如果您正苦于以下问题:C++ version_msg函数的具体用法?C++ version_msg怎么用?C++ version_msg使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了version_msg函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: list_features

/// List all features aligned in columns, dictionary style.static void list_features(void){  int nfeat = 0;  int width = 0;  // Find the length of the longest feature name, use that + 1 as the column  // width  int i;  for (i = 0; features[i] != NULL; ++i) {    int l = (int)STRLEN(features[i]);    if (l > width) {      width = l;    }    nfeat++;  }  width += 1;  if (Columns < width) {    // Not enough screen columns - show one per line    for (i = 0; features[i] != NULL; ++i) {      version_msg(features[i]);      if (msg_col > 0) {        msg_putchar('/n');      }    }    return;  }  // The rightmost column doesn't need a separator.  // Sacrifice it to fit in one more column if possible.  int ncol = (int)(Columns + 1) / width;  int nrow = nfeat / ncol + (nfeat % ncol ? 1 : 0);  // i counts columns then rows.  idx counts rows then columns.  for (i = 0; !got_int && i < nrow * ncol; ++i) {    int idx = (i / ncol) + (i % ncol) * nrow;    if (idx < nfeat) {      int last_col = (i + 1) % ncol == 0;      msg_puts((char_u *)features[idx]);      if (last_col) {        if (msg_col > 0) {          msg_putchar('/n');        }      } else {        while (msg_col % width) {          msg_putchar(' ');        }      }    } else {      if (msg_col > 0) {        msg_putchar('/n');      }    }  }  MSG_PUTS("For differences from Vim, see :help vim-differences/n/n");}
开发者ID:X-Think,项目名称:neovim,代码行数:58,


示例2: list_version

void list_version(void){  // When adding features here, don't forget to update the list of  // internal variables in eval.c!  MSG(longVersionWithDate);  MSG(version_commit);  MSG(version_buildtype);  MSG(version_cflags);  // Print the list of extra patch descriptions if there is at least one.  char *s = "";  if (extra_patches[0] != NULL) {    MSG_PUTS(_("/nExtra patches: "));    s = "";    for (int i = 0; extra_patches[i] != NULL; ++i) {      MSG_PUTS(s);      s = ", ";      MSG_PUTS(extra_patches[i]);    }  }#ifdef HAVE_PATHDEF  if ((*compiled_user != NUL) || (*compiled_sys != NUL)) {    MSG_PUTS(_("/nCompiled "));    if (*compiled_user != NUL) {      MSG_PUTS(_("by "));      MSG_PUTS(compiled_user);    }    if (*compiled_sys != NUL) {      MSG_PUTS("@");      MSG_PUTS(compiled_sys);    }  }#endif  // ifdef HAVE_PATHDEF  version_msg(_("/n/nOptional features included (+) or not (-): "));  list_features();#ifdef SYS_VIMRC_FILE  version_msg(_("   system vimrc file: /""));  version_msg(SYS_VIMRC_FILE);  version_msg("/"/n");#endif  // ifdef SYS_VIMRC_FILE#ifdef USR_VIMRC_FILE  version_msg(_("     user vimrc file: /""));  version_msg(USR_VIMRC_FILE);  version_msg("/"/n");#endif  // ifdef USR_VIMRC_FILE#ifdef USR_VIMRC_FILE2  version_msg(_(" 2nd user vimrc file: /""));  version_msg(USR_VIMRC_FILE2);  version_msg("/"/n");#endif  // ifdef USR_VIMRC_FILE2#ifdef USR_VIMRC_FILE3  version_msg(_(" 3rd user vimrc file: /""));  version_msg(USR_VIMRC_FILE3);  version_msg("/"/n");#endif  // ifdef USR_VIMRC_FILE3#ifdef USR_EXRC_FILE  version_msg(_("      user exrc file: /""));  version_msg(USR_EXRC_FILE);  version_msg("/"/n");#endif  // ifdef USR_EXRC_FILE#ifdef USR_EXRC_FILE2  version_msg(_("  2nd user exrc file: /""));  version_msg(USR_EXRC_FILE2);  version_msg("/"/n");#endif  // ifdef USR_EXRC_FILE2#ifdef HAVE_PATHDEF  if (*default_vim_dir != NUL) {    version_msg(_("  fall-back for $VIM: /""));    version_msg(default_vim_dir);    version_msg("/"/n");  }  if (*default_vimruntime_dir != NUL) {    version_msg(_(" f-b for $VIMRUNTIME: /""));    version_msg(default_vimruntime_dir);    version_msg("/"/n");  }#endif  // ifdef HAVE_PATHDEF}
开发者ID:ENjOyAbLE1991,项目名称:neovim,代码行数:88,


示例3: list_version

void list_version(void){  int i;  int first;  char *s = "";  // When adding features here, don't forget to update the list of  // internal variables in eval.c!  MSG(longVersion);  // Print the list of patch numbers if there is at least one.  // Print a range when patches are consecutive: "1-10, 12, 15-40, 42-45"  if (included_patches[0] != 0) {    MSG_PUTS(_("/nIncluded patches: "));    first = -1;    // find last one    for (i = 0; included_patches[i] != 0; ++i) {}    while (--i >= 0) {      if (first < 0) {        first = included_patches[i];      }      if ((i == 0) || (included_patches[i - 1] != included_patches[i] + 1)) {        MSG_PUTS(s);        s = ", ";        msg_outnum((long)first);        if (first != included_patches[i]) {          MSG_PUTS("-");          msg_outnum((long)included_patches[i]);        }        first = -1;      }    }  }  // Print the list of extra patch descriptions if there is at least one.  if (extra_patches[0] != NULL) {    MSG_PUTS(_("/nExtra patches: "));    s = "";    for (i = 0; extra_patches[i] != NULL; ++i) {      MSG_PUTS(s);      s = ", ";      MSG_PUTS(extra_patches[i]);    }  }#ifdef MODIFIED_BY  MSG_PUTS("/n");  MSG_PUTS(_("Modified by "));  MSG_PUTS(MODIFIED_BY);#endif  // ifdef MODIFIED_BY#ifdef HAVE_PATHDEF  if ((*compiled_user != NUL) || (*compiled_sys != NUL)) {    MSG_PUTS(_("/nCompiled "));    if (*compiled_user != NUL) {      MSG_PUTS(_("by "));      MSG_PUTS(compiled_user);    }    if (*compiled_sys != NUL) {      MSG_PUTS("@");      MSG_PUTS(compiled_sys);    }  }#endif  // ifdef HAVE_PATHDEF  MSG_PUTS(_("/nHuge version "));  MSG_PUTS(_("without GUI."));  version_msg(_("  Features included (+) or not (-):/n"));  list_features();#ifdef SYS_VIMRC_FILE  version_msg(_("   system vimrc file: /""));  version_msg(SYS_VIMRC_FILE);  version_msg("/"/n");#endif  // ifdef SYS_VIMRC_FILE#ifdef USR_VIMRC_FILE  version_msg(_("     user vimrc file: /""));  version_msg(USR_VIMRC_FILE);  version_msg("/"/n");#endif  // ifdef USR_VIMRC_FILE#ifdef USR_VIMRC_FILE2  version_msg(_(" 2nd user vimrc file: /""));  version_msg(USR_VIMRC_FILE2);  version_msg("/"/n");#endif  // ifdef USR_VIMRC_FILE2#ifdef USR_VIMRC_FILE3  version_msg(_(" 3rd user vimrc file: /""));  version_msg(USR_VIMRC_FILE3);  version_msg("/"/n");#endif  // ifdef USR_VIMRC_FILE3#ifdef USR_EXRC_FILE//.........这里部分代码省略.........
开发者ID:MarcWeber,项目名称:neovim,代码行数:101,


示例4: list_version

//.........这里部分代码省略.........#    ifdef FEAT_GUI_NEXTAW    MSG_PUTS(_("with X11-neXtaw GUI."));#    else    MSG_PUTS(_("with X11-Athena GUI."));#    endif#   else#     ifdef FEAT_GUI_PHOTON    MSG_PUTS(_("with Photon GUI."));#     else#      if defined(MSWIN)    MSG_PUTS(_("with GUI."));#      else#	if defined(FEAT_GUI_MACVIM)    MSG_PUTS(_("with MacVim GUI."));#	else#	 if defined(TARGET_API_MAC_CARBON) && TARGET_API_MAC_CARBON    MSG_PUTS(_("with Carbon GUI."));#	 else#	  if defined(TARGET_API_MAC_OSX) && TARGET_API_MAC_OSX    MSG_PUTS(_("with Cocoa GUI."));#	  else#	   if defined(MACOS)    MSG_PUTS(_("with (classic) GUI."));#	   endif#         endif#	 endif#	endif#      endif#    endif#   endif#  endif# endif#endif    version_msg(_("  Features included (+) or not (-):/n"));    list_features();#ifdef SYS_VIMRC_FILE    version_msg(_("   system vimrc file: /""));    version_msg(SYS_VIMRC_FILE);    version_msg("/"/n");#endif#ifdef USR_VIMRC_FILE    version_msg(_("     user vimrc file: /""));    version_msg(USR_VIMRC_FILE);    version_msg("/"/n");#endif#ifdef USR_VIMRC_FILE2    version_msg(_(" 2nd user vimrc file: /""));    version_msg(USR_VIMRC_FILE2);    version_msg("/"/n");#endif#ifdef USR_VIMRC_FILE3    version_msg(_(" 3rd user vimrc file: /""));    version_msg(USR_VIMRC_FILE3);    version_msg("/"/n");#endif#ifdef USR_EXRC_FILE    version_msg(_("      user exrc file: /""));    version_msg(USR_EXRC_FILE);    version_msg("/"/n");#endif#ifdef USR_EXRC_FILE2    version_msg(_("  2nd user exrc file: /""));    version_msg(USR_EXRC_FILE2);    version_msg("/"/n");
开发者ID:ybian,项目名称:macvim,代码行数:67,


示例5: list_features

/* * List all features aligned in columns, dictionary style. */    static voidlist_features(void){    int		i;    int		ncol;    int		nrow;    int		nfeat = 0;    int		width = 0;    /* Find the length of the longest feature name, use that + 1 as the column     * width */    for (i = 0; features[i] != NULL; ++i)    {	int l = (int)STRLEN(features[i]);	if (l > width)	    width = l;	++nfeat;    }    width += 1;    if (Columns < width)    {	/* Not enough screen columns - show one per line */	for (i = 0; features[i] != NULL; ++i)	{	    version_msg(features[i]);	    if (msg_col > 0)		msg_putchar('/n');	}	return;    }    /* The rightmost column doesn't need a separator.     * Sacrifice it to fit in one more column if possible. */    ncol = (int) (Columns + 1) / width;    nrow = nfeat / ncol + (nfeat % ncol ? 1 : 0);    /* i counts columns then rows.  idx counts rows then columns. */    for (i = 0; !got_int && i < nrow * ncol; ++i)    {	int idx = (i / ncol) + (i % ncol) * nrow;	if (idx < nfeat)	{	    int last_col = (i + 1) % ncol == 0;	    msg_puts((char_u *)features[idx]);	    if (last_col)	    {		if (msg_col > 0)		    msg_putchar('/n');	    }	    else	    {		while (msg_col % width)		    msg_putchar(' ');	    }	}	else	{	    if (msg_col > 0)		msg_putchar('/n');	}    }}
开发者ID:ybian,项目名称:macvim,代码行数:69,


示例6: list_version

void list_version(void){  MSG(longVersion);  MSG(version_buildtype);  list_lua_version();  MSG(version_cflags);#ifdef HAVE_PATHDEF  if ((*compiled_user != NUL) || (*compiled_sys != NUL)) {    MSG_PUTS(_("/nCompiled "));    if (*compiled_user != NUL) {      MSG_PUTS(_("by "));      MSG_PUTS(compiled_user);    }    if (*compiled_sys != NUL) {      MSG_PUTS("@");      MSG_PUTS(compiled_sys);    }  }#endif  // ifdef HAVE_PATHDEF  version_msg(_("/n/nFeatures: "));  list_features();#ifdef SYS_VIMRC_FILE  version_msg(_("   system vimrc file: /""));  version_msg(SYS_VIMRC_FILE);  version_msg("/"/n");#endif  // ifdef SYS_VIMRC_FILE#ifdef HAVE_PATHDEF  if (*default_vim_dir != NUL) {    version_msg(_("  fall-back for $VIM: /""));    version_msg(default_vim_dir);    version_msg("/"/n");  }  if (*default_vimruntime_dir != NUL) {    version_msg(_(" f-b for $VIMRUNTIME: /""));    version_msg(default_vimruntime_dir);    version_msg("/"/n");  }#endif  // ifdef HAVE_PATHDEF  version_msg("/nRun :checkhealth for more info");}
开发者ID:gsf,项目名称:neovim,代码行数:50,



注:本文中的version_msg函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ verticalHeader函数代码示例
C++ verror函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。