本文整理汇总了C++中PDC_LOG函数的典型用法代码示例。如果您正苦于以下问题:C++ PDC_LOG函数的具体用法?C++ PDC_LOG怎么用?C++ PDC_LOG使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了PDC_LOG函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: killchar
char killchar(void)
{
PDC_LOG(("killchar() - called\n"));
return _DLCHAR; /* line delete char (^U) */
}
开发者ID:joncampbell123,项目名称:dosbox-x,代码行数:6,代码来源:termattr.c
示例2: wvline_set
int wvline_set(WINDOW *win, const cchar_t *wch, int n)
{
PDC_LOG(("wvline_set() - called\n"));
return wch ? wvline(win, *wch, n) : ERR;
}
开发者ID:Palantir555,项目名称:ecos-mars-zx3,代码行数:6,代码来源:border.c
示例3: has_colors
bool has_colors(void)
{
PDC_LOG(("has_colors() - called\n"));
return !(SP->mono);
}
开发者ID:EvilTeach,项目名称:Github,代码行数:6,代码来源:color.c
示例4: scr_set
int scr_set(const char *filename)
{
PDC_LOG(("scr_set() - called: filename %s\n", filename));
return scr_restore(filename);
}
开发者ID:houzhenggang,项目名称:ecos-1,代码行数:6,代码来源:scr_dump.c
示例5: box
int box(WINDOW *win, chtype verch, chtype horch)
{
PDC_LOG(("box() - called\n"));
return wborder(win, verch, verch, horch, horch, 0, 0, 0, 0);
}
开发者ID:Palantir555,项目名称:ecos-mars-zx3,代码行数:6,代码来源:border.c
示例6: resetterm
int resetterm(void)
{
PDC_LOG(("resetterm() - called\n"));
return reset_shell_mode();
}
开发者ID:chelseawuest,项目名称:harvest-rogue,代码行数:6,代码来源:kernel.c
示例7: saveterm
int saveterm(void)
{
PDC_LOG(("saveterm() - called\n"));
return def_prog_mode();
}
开发者ID:chelseawuest,项目名称:harvest-rogue,代码行数:6,代码来源:kernel.c
示例8: has_il
bool has_il(void)
{
PDC_LOG(("has_il() - called\n"));
return TRUE;
}
开发者ID:joncampbell123,项目名称:dosbox-x,代码行数:6,代码来源:termattr.c
示例9: pnoutrefresh
int pnoutrefresh(WINDOW *w, int py, int px, int sy1, int sx1, int sy2, int sx2)
{
int num_cols;
int sline = sy1;
int pline = py;
PDC_LOG(("pnoutrefresh() - called\n"));
if (!w || !(w->_flags & (_PAD|_SUBPAD)) || (sy2 >= LINES) || (sy2 >= COLS))
return ERR;
if (py < 0)
py = 0;
if (px < 0)
px = 0;
if (sy1 < 0)
sy1 = 0;
if (sx1 < 0)
sx1 = 0;
if (sy2 < sy1 || sx2 < sx1)
return ERR;
num_cols = min((sx2 - sx1 + 1), (w->_maxx - px));
while (sline <= sy2)
{
if (pline < w->_maxy)
{
memcpy(curscr->_y[sline] + sx1, w->_y[pline] + px,
num_cols * sizeof(chtype));
if ((curscr->_firstch[sline] == _NO_CHANGE)
|| (curscr->_firstch[sline] > sx1))
curscr->_firstch[sline] = sx1;
if (sx2 > curscr->_lastch[sline])
curscr->_lastch[sline] = sx2;
w->_firstch[pline] = _NO_CHANGE; /* updated now */
w->_lastch[pline] = _NO_CHANGE; /* updated now */
}
sline++;
pline++;
}
if (w->_clear)
{
w->_clear = FALSE;
curscr->_clear = TRUE;
}
/* position the cursor to the pad's current position if possible --
is the pad current position going to end up displayed? if not,
then don't move the cursor; if so, move it to the correct place */
if (!w->_leaveit && w->_cury >= py && w->_curx >= px &&
w->_cury <= py + (sy2 - sy1) && w->_curx <= px + (sx2 - sx1))
{
curscr->_cury = (w->_cury - py) + sy1;
curscr->_curx = (w->_curx - px) + sx1;
}
return OK;
}
开发者ID:Bill-Gray,项目名称:PDCurses,代码行数:66,代码来源:pad.c
示例10: baudrate
int baudrate(void)
{
PDC_LOG(("baudrate() - called\n"));
return INT_MAX;
}
开发者ID:joncampbell123,项目名称:dosbox-x,代码行数:6,代码来源:termattr.c
示例11: erasechar
char erasechar(void)
{
PDC_LOG(("erasechar() - called\n"));
return _ECHAR; /* character delete char (^H) */
}
开发者ID:joncampbell123,项目名称:dosbox-x,代码行数:6,代码来源:termattr.c
示例12: wordchar
char wordchar(void)
{
PDC_LOG(("wordchar() - called\n"));
return _DWCHAR; /* word delete char */
}
开发者ID:joncampbell123,项目名称:dosbox-x,代码行数:6,代码来源:termattr.c
示例13: term_attrs
attr_t term_attrs(void)
{
PDC_LOG(("term_attrs() - called\n"));
return SP->termattrs;
}
开发者ID:joncampbell123,项目名称:dosbox-x,代码行数:6,代码来源:termattr.c
示例14: PDC_LOG
char *longname(void)
{
PDC_LOG(("longname() - called\n"));
return ttytype + 9; /* skip "pdcurses|" */
}
开发者ID:joncampbell123,项目名称:dosbox-x,代码行数:6,代码来源:termattr.c
示例15: resetty
int resetty(void)
{
PDC_LOG(("resetty() - called\n"));
return _restore_mode(PDC_SAVE_TTY);
}
开发者ID:chelseawuest,项目名称:harvest-rogue,代码行数:6,代码来源:kernel.c
示例16: PDC_LOG
WINDOW *panel_window(const PANEL *pan)
{
PDC_LOG(("panel_window() - called\n"));
return pan->win;
}
开发者ID:ryoon,项目名称:eCos,代码行数:6,代码来源:panel.c
示例17: draino
int draino(int ms)
{
PDC_LOG(("draino() - called\n"));
return napms(ms);
}
开发者ID:chelseawuest,项目名称:harvest-rogue,代码行数:6,代码来源:kernel.c
示例18: waddch
//------------------------------------------------------------------------------
int waddch( WINDOW* win, const chtype ch )
{
__QCS_FCONTEXT( "waddch" );
int x, y;
chtype text, attr;
bool xlat;
PDC_LOG(("waddch() - called: win=%p ch=%x (text=%c attr=0x%x)\n",
win, ch, ch & A_CHARTEXT, ch & A_ATTRIBUTES));
if( !win )
{
return ERR;
}
x = win->_curx;
y = win->_cury;
if( y > win->_maxy || x > win->_maxx || y < 0 || x < 0 )
{
return ERR;
}
xlat = !SP->raw_out && !(ch & A_ALTCHARSET);
text = ch & A_CHARTEXT;
attr = ch & A_ATTRIBUTES;
if( xlat && ( text < ' ' || text == 0x7f ) )
{
int x2;
switch( text )
{
case '\t':
for( x2 = ( ( x / TABSIZE ) + 1 ) * TABSIZE; x < x2; x++ )
{
if( waddch( win, attr | ' ' ) == ERR )
{
return ERR;
}
// if tab to next line, exit the loop
if( !win->_curx )
{
break;
}
}
return 0;
case '\n':
// if lf -> crlf
if( !SP->raw_out )
{
x = 0;
}
wclrtoeol( win );
if( ++y > win->_bmarg )
{
y--;
if( wscrl( win, 1 ) == ERR )
{
return ERR;
}
}
break;
case '\b':
// don't back over left margin
if( --x < 0 )
case '\r':
{
x = 0;
}
break;
case 0x7f:
if( waddch( win, attr | '^' ) == ERR )
{
return ERR;
}
return waddch( win, attr | '?' );
default:
// handle control chars
if( waddch( win, attr | '^' ) == ERR )
{
return ERR;
}
//.........这里部分代码省略.........
开发者ID:chenbk85,项目名称:QOR,代码行数:101,代码来源:addch.cpp
示例19: fixterm
int fixterm(void)
{
PDC_LOG(("fixterm() - called\n"));
return reset_prog_mode();
}
开发者ID:chelseawuest,项目名称:harvest-rogue,代码行数:6,代码来源:kernel.c
示例20: clrtobot
int clrtobot(void)
{
PDC_LOG(("clrtobot() - called\n"));
return wclrtobot(stdscr);
}
开发者ID:ErisBlastar,项目名称:osfree,代码行数:6,代码来源:clear.c
注:本文中的PDC_LOG函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论