16 #define realpath( a, b ) GetFullPathName( a, PATH_MAX, b, NULL )
17 #define strtoll _strtoi64
25 #if defined __cplusplus
82 if( TOM == NULL )
return( NULL );
84 if( TOMp == NULL )
return( NULL );
103 if( fileName != NULL ) {
105 if( realpath( fileName, realPath ) != NULL ) {
141 if( element == NULL )
return;
152 if( element == NULL )
return;
154 for( child = element->
children; child != NULL; child = nextChild ) {
155 nextChild = child->
next;
199 last->
next = element;
211 element->
index = index;
213 element->
next = NULL;
232 if( element != NULL ) element = element->
children;
240 if( element != NULL ) element = element->
next;
252 if( strcmp( child->
name, name ) == 0 ) {
253 if( n == 0 ) desired = child;
319 if( xDI->
ID == NULL )
return( 1 );
331 for( i = 0; i < level; i++ )
printf(
" " );
334 if( printAttributes ) {
365 for( attribute = attributes->
attributes; attribute != NULL; attribute = next ) {
366 next = attribute->
next;
389 last->
next = attribute;
407 for( attribute = attributes->
attributes; attribute != NULL; attribute = attribute->
next ) {
408 if( !strcmp( attribute->
name, name ) )
return( attribute->
value );
420 for( attribute = src->
attributes; attribute != NULL; attribute = attribute->
next ) {
438 if( value != NULL ) {
439 *n = (
int) strtoll( value, &e, 10 );
440 if( *e == 0 )
return( 0 );
455 if( value != NULL ) {
456 *d = strtod( value, &e );
457 if( *e == 0 )
return( 0 );
486 return( xDI->
data = (
void *)
smr_malloc2( smr, size, 1,
"xDI->data" ) );
495 if( xDI->
ID != NULL ) {
496 return( !strcmp( xDI->
ID, ID ) );
520 if( strcmp( ID, xDI->
ID ) ) {
528 #if defined __cplusplus