xbrace.c
来自「AutoCAD DWG-file viewer」· C语言 代码 · 共 51 行
C
51 行
/****************************************************************/
/* COPYRIGHT NOTICE */
/* ---------------- */
/* All software in this listing remain the strict copyright */
/* of Ilija Kovacevic and cannot be copied or used in any way */
/* except by written permission of Ilija Kovacevic. */
/* */
/* Copyright (c) 1992 Ilija Kovacevic */
/* www.kov.com email ilija@kov.com */
/****************************************************************/
PUBLIC XBrace *XBrace__create( void )
{
return( ( XBrace * )get_memory( sizeof( XBrace ) ) );
}
PUBLIC void XBrace__delete( XBrace *me )
{
free( ( char * )me );
}
PUBLIC void XBrace__read( XBrace *me )
{
get_UINT8( &me->brace_type );
me->size = sizeof( me->brace_type );
}
PUBLIC void XBrace__dxfout( XBrace *me )
{
if ( me->brace_type EQ 0 )dxf_string( 1002,"{" );
else dxf_string( 1002,"}" );
}
PUBLIC void XBrace__dump_to_debug_file( XBrace *me )
{
dprintf( "\t\tbrace = " );
if ( me->brace_type EQ 0 )dprintf( "{\n" );
else dprintf( "}\n" );
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?