]> mj.ucw.cz Git - libucw.git/commitdiff
Removed trailing whitespaces.
authorMartin Mares <mj@ucw.cz>
Sat, 29 Apr 2006 22:16:00 +0000 (00:16 +0200)
committerMartin Mares <mj@ucw.cz>
Sat, 29 Apr 2006 22:16:00 +0000 (00:16 +0200)
Please fix your editors not to generate such things, especially when
auto-indenting.

17 files changed:
build/git/hooks/update
charset/mp-charconv.c
charset/mp-charconv.h
charset/stk-charconv.c
charset/stk-charconv.h
lib/asort-test.c
lib/base64.c
lib/hashfunc.c
lib/hashtable.h
lib/kmp-search.h
lib/kmp.h
lib/lists.h
lib/lizard.c
lib/md5.c
lib/perl/Ulimit/Ulimit.pm
lib/perl/Ulimit/Ulimit.xs
lib/redblack.h

index 881621f01cbd2b2ec019a37b8e058f7755a19810..aca1a7fe29255134e25a0a6c4f309ba2a0093b6a 100755 (executable)
@@ -50,7 +50,7 @@ else
                fi
        done <$t
        rm $t
-fi 
+fi
 
 exec >&2
 mutt -x -e 'set charset="utf-8"; set send_charset="us-ascii:iso-8859-2:utf-8"' -s "$subj" "$recipient" <$out
index 6615973cb4c23588ae2a6a38cccd90127911fe1f..ef0adf951c83a0b5de0a026763bccb5b1c7f0a06 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     Sherlock Library -- Character Conversion with Allocation on a Memory Pool 
+ *     Sherlock Library -- Character Conversion with Allocation on a Memory Pool
  *
  *     (c) 2006 Pavel Charvat <pchar@ucw.cz>
  *
@@ -17,12 +17,12 @@ mp_strconv(struct mempool *mp, byte *s, uns in_cs, uns out_cs)
 {
   if (in_cs == out_cs)
     return mp_strdup(mp, s);
+
   struct conv_context c;
   char *b[32];
   uns bs[32], n = 0, sum = 0;
   uns l = strlen(s) + 1;
-  
+
   conv_init(&c);
   conv_set_charset(&c, in_cs, out_cs);
   c.source = s;
index 0c34c46927eed0b636beaa01812a9f8870b70111..f33cd373e590620a7ceb9e6051d3b166fc89952c 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     Sherlock Library -- Character Conversion with Allocation on a Memory Pool 
+ *     Sherlock Library -- Character Conversion with Allocation on a Memory Pool
  *
  *     (c) 2006 Pavel Charvat <pchar@ucw.cz>
  *
@@ -16,7 +16,7 @@
 byte *mp_strconv(struct mempool *mp, byte *s, uns cs_in, uns cs_out);
 
 static inline byte *
-mp_strconv_to_utf8(struct mempool *mp, byte *s, uns cs_in) 
+mp_strconv_to_utf8(struct mempool *mp, byte *s, uns cs_in)
 { return mp_strconv(mp, s, cs_in, CONV_CHARSET_UTF8); }
 
 static inline byte *
index 7fc2d72cbf0bf9833c9a9f3a34a28e1e3f2574ae..d5f55fed9e55a599a9e9e8e033ea79c5a8aa06a3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     Sherlock Library -- Character Conversion with Allocation on the Stack 
+ *     Sherlock Library -- Character Conversion with Allocation on the Stack
  *
  *     (c) 2006 Pavel Charvat <pchar@ucw.cz>
  *
index 01a242cdc9887d5510ee47e2f34c15e9660938ef..3b47940f317d63ce7f99e943b3512835d26cccbd 100644 (file)
@@ -1,5 +1,5 @@
 /*
- *     Sherlock Library -- Character Conversion with Allocation on the Stack 
+ *     Sherlock Library -- Character Conversion with Allocation on the Stack
  *
  *     (c) 2006 Pavel Charvat <pchar@ucw.cz>
  *
@@ -21,7 +21,7 @@
 
 #define stk_strconv_to_utf8(s, cs_in) stk_strconv(s, cs_in, CONV_CHARSET_UTF8)
 #define stk_strconv_from_utf8(s, cs_out) stk_strconv(s, CONV_CHARSET_UTF8, cs_out)
-   
+
 /* Internals */
 
 uns stk_strconv_init(struct conv_context *c, byte *s, uns cs_in, uns cs_out);
index b84bb53a61de4418c6e1a1c57d884780dad30d9d..acc209fc99a911e53f64c1bc9adb8f4856a24385 100644 (file)
@@ -68,7 +68,7 @@ int main(void)
   check();
   generate();
   init_timer();
-  as_sort(N);  
+  as_sort(N);
   printf("asort: %d ms\n", get_timer());
   check();
   return 0;
index 6a06055aefe97fca49f343e52fe75cdd66db9ebe..0f1b0144baceec439a33d683f5b0ed477daa6f99 100644 (file)
@@ -93,7 +93,7 @@ base64_decode(byte *dest, byte *src, uns len)
                   headache.  - Turadg Aleahmad <turadg@wise.berkeley.edu>
                 */
 
-               if (ch == ' ') ch = '+'; 
+               if (ch == ' ') ch = '+';
 
                ch = reverse_table[ch];
                if (ch == 0xff) continue;
index 10c29abd67c3cdb7be34a294adfbb20d7820ce93..f51c84e8ec42b67f190a0a95c630e1ad7cfbdf4b 100644 (file)
@@ -45,7 +45,7 @@ str_len_uns(uns x)
        uns a, i;
        byte *bytes;
        a = ~x & (x - sub) & and;
-       /* 
+       /*
         * x_2 = x - 0x01010101;
         * x_3 = ~x & x_2;
         * a = x_3 & 0x80808080;
index 0419a47ce6468162833f9de277b29792dca2c0a3..ec581ed777bb9743826b963204bb6e940965837f 100644 (file)
@@ -611,7 +611,7 @@ do {                                                                                        \
        GLUE_(h_px,node) *h_var = &h_buck->n;
 #define HASH_FOR_ALL(h_px, h_var) HASH_FOR_ALL_DYNAMIC(h_px, &GLUE_(h_px,table), h_var)
 #define HASH_END_FOR } } while(0)
-#define HASH_BREAK 
+#define HASH_BREAK
 #define HASH_CONTINUE continue
 
 #endif
index 726593f07e120ee54b79f7501f1a47cf79dee501..188f9790a8362a5d5cd814111c2ef6beec903eb3 100644 (file)
  *  Each time you include it with parameters set in the corresponding
  *  preprocessor macros, it generates KMP structures and functions
  *  with the parameters given. See lib/kmp.h before reading this description.
- *  
+ *
  *  This file defines:
  *
  *     struct search           structure with both the internal and the user-defined variables
  *                             used during the search and accessible from all macros
  *
  *     void search(kmp,search,src) executes the search; search structure is allocated by the caller (possible input/output)
- *     
+ *
  *     void run(kmp,src)       the same, but automatically allocates search structre from the stack
  *
  *
  *
  *  KMPS_INIT(kmp,src,search)  statement executed at the beginning of search()
  *  KMPS_EXIT(kmp,src,search)  ... at the end
- *  KMPS_STEP(kmp,src,search)  ... after each step (read of next character + current state update) 
+ *  KMPS_STEP(kmp,src,search)  ... after each step (read of next character + current state update)
  *                             of the algorithm, but before KMPS_FOUND[_CHAIN]
- *  KMPS_FOUND_CHAIN(kmp,src,search) ... for each state representing locally longest match 
+ *  KMPS_FOUND_CHAIN(kmp,src,search) ... for each state representing locally longest match
  *                             (stored in search->out - NOT necessary search->s!);
- *                             all matches form a NULL-terminated link list (search->out, search->out->next, ...) 
+ *                             all matches form a NULL-terminated link list (search->out, search->out->next, ...)
  *                             in order of decreasing length
  *  KMPS_FOUND(kmp,src,search)  ... called for every match (in search->out)
  *  KMPS_WANT_BEST             algorithm computes globally longest match, which is available
index 86a0f98f89740b2cd88232d85f6cd55fb5e6b2cc..67889a17e9e78c03ce30e5eee9f39935ad0ffac4 100644 (file)
--- a/lib/kmp.h
+++ b/lib/kmp.h
  *                             we abbreviate this to P(x) below
  *
  *     KMP_CHAR                alphabet type, the default is u16
- *     
- *     KMP_SOURCE              user-defined text source; KMP_GET_CHAR must 
+ *
+ *     KMP_SOURCE              user-defined text source; KMP_GET_CHAR must
  *     KMP_GET_CHAR(kmp,src,c) return zero at the end or nonzero together with the next character in c otherwise;
  *                             if not defined, zero-terminated array of bytes is used as the input
- *     
+ *
  *     KMP_VARS                user-defined variables in 'struct P(struct)'
  *                             -- a structure describing the whole automaton;
  *                             these variables are stored in .u substructure to avoid collisions
@@ -139,7 +139,7 @@ struct P(state) {
   struct {
 #   ifdef KMP_STATE_VARS
     KMP_STATE_VARS
-#   endif    
+#   endif
   } u;                         /* user-defined data*/
 };
 
@@ -213,10 +213,10 @@ static inline void
 P(hash_init_key) (struct P(hash_table) *t UNUSED, struct P(state) *s, struct P(state) *f, P(char_t) c)
 {
   bzero(s, sizeof(*s));
-# ifdef KMP_INIT_STATE  
+# ifdef KMP_INIT_STATE
   struct P(struct) *kmp = (struct P(struct) *)t;
   { KMP_INIT_STATE(kmp, s); }
-# endif  
+# endif
   s->from = f;
   s->c = c;
   s->next = f->back; /* the pointers hold the link-list of sons... changed in build() */
@@ -287,7 +287,7 @@ P(get_char) (struct P(struct) *kmp UNUSED, P(source_t) *src, P(char_t) *c)
   else if (!Ualpha(cc))
     cc = P(control)();
   else
-# endif  
+# endif
     {
 #     ifdef KMP_TOLOWER
       cc = Utolower(cc);
@@ -402,7 +402,7 @@ P(build) (struct P(struct) *kmp)
   null->back = NULL;
 # ifdef KMP_BUILD_STATE
   { KMP_BUILD_STATE(kmp, null); }
-# endif  
+# endif
   while (read != write)
     {
       struct P(state) *s = fifo[read++], *t;
@@ -425,7 +425,7 @@ P(build) (struct P(struct) *kmp)
        }
 #     ifdef KMP_BUILD_STATE
       { KMP_BUILD_STATE(kmp, s); }
-#     endif      
+#     endif
     }
 }
 
index 756085f7a070af7086d10bf60af59e9f9becba7f..39036913f8d99a3d8eac7bdb0c1c1cce1ace083a 100644 (file)
@@ -22,7 +22,7 @@
  *     null    head_node.prev  tail_node.next
  *     tail                    tail_node.prev
  */
-      
+
 typedef struct node {
   struct node *next, *prev;
 } node;
index 10fd5f0c9fb2154d920cea743c4b77b23cb36db7..e5035e05698827fb0af13e0d3503110bbe79fbd8 100644 (file)
@@ -6,7 +6,7 @@
  *     This software may be freely distributed and used according to the terms
  *     of the GNU Lesser General Public License.
  *
- *     The file format is based on LZO1X and 
+ *     The file format is based on LZO1X and
  *     the compression method is based on zlib.
  */
 
@@ -450,7 +450,7 @@ long.  Decode sequences of these types until the EOF or END marker is read.
     C following characters will be copied from the compressed text to the
     output.  The number CC is always stored in the 2 least significant bits of
     the second last byte of the sequence.
-    
+
     If END is read, the algorithm switches to the copy mode.
 
 pattern                                        length          position
index a0e50ab8925a154450ac388063bff752da739571..43052b9e9bc28c8e8d28f90d84b722e7ecaca2f2 100644 (file)
--- a/lib/md5.c
+++ b/lib/md5.c
@@ -104,7 +104,7 @@ void MD5Update(struct MD5Context *ctx, unsigned char const *buf, unsigned len)
 }
 
 /*
- * Final wrapup - pad to 64-byte boundary with the bit pattern 
+ * Final wrapup - pad to 64-byte boundary with the bit pattern
  * 1 0* (64-bit count of bits processed, MSB-first)
  */
 void MD5Final(unsigned char digest[16], struct MD5Context *ctx)
index ed66b3f9435ecf71a6ce0709d079e9ffa268a36b..a05ea5b5d13a6442542dce4853d99a5d96e25e47 100644 (file)
@@ -10,7 +10,7 @@
 # Interface:
 #   Sherlock::Ulimit::setlimit( $resource, $softlimit, $hardlimit)
 #   Sherlock::Ulimit::getlimit( $resource, $softlimit, $hardlimit)
-# 
+#
 # setlimit sets limit to values supplied in softlimit and hardlimit
 # getlimit reads limits into softlimit and hardlimit
 # $resource constants are defined below
@@ -44,7 +44,7 @@ our $AS = 9;
 # If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
 # will save memory.
 our %EXPORT_TAGS = ( 'all' => [ qw(
-       
+
 ) ] );
 
 our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
index 2951ac697a9d03972a0e9eba130c3b4ebcb5fadf..5d6a368d1d1ee6cde696371f42cf38dae69d9029 100644 (file)
@@ -12,7 +12,7 @@
 #include <unistd.h>
 
 
-MODULE = Sherlock::Ulimit              PACKAGE = Sherlock::Ulimit              
+MODULE = Sherlock::Ulimit              PACKAGE = Sherlock::Ulimit
 
 PROTOTYPES: ENABLED
 
index b0254c5992c88a3be92da5f12680545c2d638cd5..fc7dd736fb4819c68223982607d0510316b6a28f 100644 (file)
@@ -15,7 +15,7 @@
  * A red-black tree is a binary search tree, where records are stored
  * in nodes (may be also leaves).  Every node has a colour.  The
  * following restrictions hold:
- * 
+ *
  * - a parent of a red node is black
  * - every path from the root to a node with less than 2 children
  *   contains the same number of black nodes