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/times.c

    r2101 r2103  
    3636 
    3737double 
    38 swish_time_elapsed(void) 
     38swish_time_elapsed( 
     39    void 
     40
    3941{ 
    4042#ifdef HAVE_SYS_TIMEB_H 
    4143#include <sys/timeb.h> 
    4244 
    43     struct timeb    ftimebuf; 
     45    struct timeb ftimebuf; 
    4446 
    4547    ftime(&ftimebuf); 
    46     return (double) ftimebuf.time + (double) ftimebuf.millitm / 1000.0; 
     48    return (double)ftimebuf.time + (double)ftimebuf.millitm / 1000.0; 
    4749 
    4850#else 
    4951 
    50                     return ((double) clock()) / CLOCKS_PER_SEC; 
     52    return ((double)clock()) / CLOCKS_PER_SEC; 
    5153 
    5254#endif 
     
    5860 
    5961double 
    60 swish_time_elapsed(void) 
     62swish_time_elapsed( 
     63    void 
     64
    6165{ 
    62     struct timeval t; 
    63     int             i; 
     66    struct timeval t; 
     67    int i; 
    6468 
    6569    i = gettimeofday(&t, NULL); 
     
    6771        return 0; 
    6872 
    69     return (double) (t.tv_sec + t.tv_usec / 1000000.0); 
     73    return (double)(t.tv_sec + t.tv_usec / 1000000.0); 
    7074} 
    7175#endif 
     
    7377/* return CPU time used */ 
    7478double 
    75 swish_time_cpu(void) 
     79swish_time_cpu( 
     80    void 
     81
    7682{ 
    77     return (double) get_cpu_secs(); 
     83    return (double)get_cpu_secs(); 
    7884} 
    7985 
    80 char           * 
    81 swish_print_time(double time) 
     86char * 
     87swish_print_time( 
     88    double time 
     89
    8290{ 
    83     int             hh, mm, ss; 
    84     int             delta; 
    85     char           *str; 
     91    int hh, mm, ss; 
     92    int delta; 
     93    char *str; 
    8694 
    8795    if (time < 0) 
    8896        time = 0; 
    8997 
    90     delta = (int) (time + 0.5); 
     98    delta = (int)(time + 0.5); 
    9199    ss = delta % 60; 
    92100    delta /= 60; 
     
    100108    else { 
    101109        swish_xfree(str); 
    102         return (char *) swish_xstrdup((xmlChar *) "unknown time"); 
     110        return (char *)swish_xstrdup((xmlChar *)"unknown time"); 
    103111    } 
    104112} 
    105113 
    106 char           * 
    107 swish_print_fine_time(double time) 
     114char * 
     115swish_print_fine_time( 
     116    double time 
     117
    108118{ 
    109     char           *str; 
     119    char *str; 
    110120 
    111121    if (time >= 10) 
     
    118128    else { 
    119129        swish_xfree(str); 
    120         return (char *) swish_xstrdup((xmlChar *) "unknown fine time"); 
     130        return (char *)swish_xstrdup((xmlChar *)"unknown fine time"); 
    121131    } 
    122132