IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 17, 2004, 7:53:16 AM (22 years ago)
Author:
rhl
Message:

Updated to match APIs in include/*.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/archive/pslib/src/Utils/tst_error.c

    r332 r707  
    3030int main(void)
    3131{
    32     psSetTraceLevel("", 10);            // turn on all tracing
    33     psSetLogDestination(PS_LOG_NONE);   // turn off error logging
     32    psTraceSetLevel("", 10);            // turn on all tracing
     33    psLogSetDestination(PS_LOG_NONE);   // turn off error logging
    3434
    3535    if (toplevel() != 0) {
    3636        psErrorStackPrint(stdout, "Traceback:\n");
    3737
    38         if (psLastError()->code == PS_ERR_UNKNOWN) {
     38        if (psErrorLast()->code == PS_ERR_UNKNOWN) {
    3939            fprintf(stderr, "Last error is of unknown type\n");
    4040        }
    41         if (psGetError(2)->code == PS_ERR_IO) {
     41        if (psErrorGet(2)->code == PS_ERR_IO) {
    4242            fprintf(stderr, "Third oldest error is of type IO\n");
    4343        }
     
    4747    psErrorStackPrint(stdout, "Traceback:\n");
    4848
    49     if (psLastError()->code == PS_ERR_NONE) {
     49    if (psErrorLast()->code == PS_ERR_NONE) {
    5050        fprintf(stderr, "No errors. Hurrah\n");
    5151    }
Note: See TracChangeset for help on using the changeset viewer.