Show
Ignore:
Timestamp:
03/27/08 23:35:21 (10 months ago)
Author:
karpet
Message:

whitespace only. again.

I am now using gnu indent rather than the original bsd version. My opts are below:

--no-blank-lines-after-declarations
--blank-lines-after-procedures
--no-blank-lines-after-commas
--break-before-boolean-operator
//--break-function-decl-args
//--break-function-decl-args-end
// long options above do not work. use short below instead.
-bfda
-bfde
--braces-on-if-line
--brace-indent4
--braces-after-struct-decl-line
--dont-cuddle-else
--comment-delimiters-on-blank-lines
--else-endif-column1
--no-space-after-casts
--declaration-indentation4
--paren-indentation4
--dont-format-first-column-comments
--dont-format-comments
--ignore-newlines

--line-length80
--indent-level4
--parameter-indentation5
--continue-at-parentheses
--no-space-after-function-call-names
--no-space-after-parentheses
--procnames-start-lines
--space-after-for
--space-after-if
--space-after-while
--dont-star-comments
--swallow-optional-blank-lines
--no-tabs

-TxmlChar?
-Tswish_ParserData
-Tswish_Config
-Tswish_3
-Tswish_Analyzer
-Tswish_Parser
-Tswish_DocInfo
-Tswish_TagStack
-Tswish_MetaName
-Tswish_Property

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • libswish3/trunk/src/libswish3/getruntime.c

    r2101 r2103  
    1818Boston, MA 02111-1307, USA. 
    1919*/ 
    20  
    2120 
    2221#include "acconfig.h" 
     
    7372 
    7473cpu_seconds 
    75 get_cpu_secs() 
     74get_cpu_secs( 
     75
    7676{ 
    7777#if defined (HAVE_GETRUSAGE) && defined (HAVE_SYS_RESOURCE_H) 
    78     struct rusage   rusage; 
    79     cpu_seconds     secs; 
     78    struct rusage rusage; 
     79    cpu_seconds secs; 
    8080 
    8181    getrusage(0, &rusage); 
     
    8989    return secs; 
    9090 
    91  
    92 #else                /* ! HAVE_GETRUSAGE */ 
     91#else /* ! HAVE_GETRUSAGE */ 
    9392#ifdef HAVE_TIMES 
    9493 
     
    9796/* Again, these are clock_t, which may overflow, but under linux it's 1/100 second so about 6000 hours */ 
    9897 
    99     struct tms      tms; 
     98    struct tms tms; 
    10099 
    101100    times(&tms); 
     
    103102    return (cpu_seconds) ((tms.tms_utime + tms.tms_stime) / GNU_HZ); 
    104103 
    105  
    106 #else                /* ! HAVE_TIMES */ 
     104#else /* ! HAVE_TIMES */ 
    107105/* Fall back on clock and hope it's correctly implemented. */ 
    108106/* clock() returns clock_t, which seems to be a long.  On Linux CLOCKS_PER_SEC is 10^6 */ 
    109107/* so expect an overflow at about 35 minutes. */ 
    110108 
    111     clock_t         t = clock(); 
     109    clock_t t = clock(); 
    112110    if (t < 0) 
    113111        t = 0; 
     
    115113    return (cpu_seconds) (t / CLOCKS_PER_SEC); 
    116114 
    117 #endif                /* HAVE_TIMES */ 
    118 #endif                /* HAVE_GETRUSAGE */ 
     115#endif /* HAVE_TIMES */ 
     116#endif /* HAVE_GETRUSAGE */ 
    119117}