Changeset 8374
- Timestamp:
- Aug 15, 2006, 5:28:13 PM (20 years ago)
- Location:
- trunk/psLib
- Files:
-
- 4 edited
-
src/mathtypes/psVector.c (modified) (2 diffs)
-
src/pstap.h (modified) (1 diff)
-
src/types/psMetadata.c (modified) (3 diffs)
-
test/types/Makefile.am (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/mathtypes/psVector.c
r8232 r8374 9 9 * @author Robert DeSonia, MHPCC 10 10 * 11 * @version $Revision: 1.8 0$ $Name: not supported by cvs2svn $12 * @date $Date: 2006-08- 08 23:32:23 $11 * @version $Revision: 1.81 $ $Name: not supported by cvs2svn $ 12 * @date $Date: 2006-08-16 03:28:13 $ 13 13 * 14 14 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 329 329 typeStr); 330 330 psFree(output); 331 331 output = NULL; 332 332 break; 333 333 } -
trunk/psLib/src/pstap.h
r8234 r8374 5 5 return exit_status() 6 6 7 #define mem() ok(psMemCheckLeaks(0, NULL, stdout, false) == 0, "Memory Leaks") 8 9 #define checkLeaks false 10 11 #define checkMem() if(checkLeaks) mem() -
trunk/psLib/src/types/psMetadata.c
r8312 r8374 12 12 * @author Ross Harman, MHPCC 13 13 * 14 * @version $Revision: 1.12 3$ $Name: not supported by cvs2svn $15 * @date $Date: 2006-08-1 4 20:05:05$14 * @version $Revision: 1.124 $ $Name: not supported by cvs2svn $ 15 * @date $Date: 2006-08-16 03:28:13 $ 16 16 * 17 17 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii … … 384 384 PS_METADATA_ITEM_COPY_CASE(STRING,V); // This will copy the string, not point at it. 385 385 case PS_DATA_VECTOR: { 386 PS_ASSERT_PTR_NON_NULL(in->data.V, NULL); 386 387 psVector *vecCopy = psVectorCopy(NULL, (psVector*)(in->data.V), 387 388 ((psVector*)(in->data.V))->type.type); 388 if (vecCopy == NULL) { 389 psError(PS_ERR_BAD_PARAMETER_NULL, false, 390 "Error copying vector. Vector skipped.\n"); 391 } else { 392 newItem = psMetadataItemAlloc(in->name, PS_DATA_VECTOR, in->comment, vecCopy); 393 psFree(vecCopy); // Drop reference 394 } 389 //Following condition was removed b/c it doesn't seem possible for a 390 //non-NULL vector to be returned for non-NULL input 391 // if (vecCopy == NULL) { 392 // psError(PS_ERR_BAD_PARAMETER_NULL, false, 393 // "Error copying vector. Vector skipped.\n"); 394 // } else { 395 newItem = psMetadataItemAlloc(in->name, PS_DATA_VECTOR, in->comment, vecCopy); 396 psFree(vecCopy); // Drop reference 397 // } 395 398 break; 396 399 } … … 455 458 psErrorStackPrint(stderr, "Error copying %s (%s) in the metadata\n", inItem->name, 456 459 inItem->comment); 460 printf("\nok we're here\n"); 457 461 } 458 462 psFree(newItem); // Drop reference -
trunk/psLib/test/types/Makefile.am
r8312 r8374 32 32 tap_psMetadataItemCompare \ 33 33 tap_psMetadataItemParse \ 34 tap_psMetadata_printing 34 tap_psMetadata_printing \ 35 tap_psMetadata_copying 35 36 36 37 … … 73 74 tap_psMetadata_printing_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/test/tap/src 74 75 tap_psMetadata_printing_LDFLAGS = $(AM_LDFLAGS) $(top_builddir)/test/tap/src/libtap.la 76 77 tap_psMetadata_copying_CPPFLAGS = $(AM_CPPFLAGS) -I$(top_srcdir)/test/tap/src 78 tap_psMetadata_copying_LDFLAGS = $(AM_LDFLAGS) $(top_builddir)/test/tap/src/libtap.la 75 79 76 80 check_DATA = \
Note:
See TracChangeset
for help on using the changeset viewer.
