summaryrefslogtreecommitdiff
path: root/main/lzo/src
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2015-08-10 13:51:40 +0200
committerArne Schwabe <arne@rfc2549.org>2015-08-10 13:51:40 +0200
commit98399ed51045871f8d73599322b6947d6b2b80d0 (patch)
tree28eb352fc1fd89f9c0969cfe0e7c384dee8b17df /main/lzo/src
parente6af88b346e9eb5be462429bf9786e7e89ce0e0d (diff)
Update lzo to 2.09
Diffstat (limited to 'main/lzo/src')
-rw-r--r--main/lzo/src/compr1b.h7
-rw-r--r--main/lzo/src/compr1c.h7
-rw-r--r--main/lzo/src/config1.h9
-rw-r--r--main/lzo/src/config1a.h8
-rw-r--r--main/lzo/src/config1b.h8
-rw-r--r--main/lzo/src/config1c.h8
-rw-r--r--main/lzo/src/config1f.h8
-rw-r--r--main/lzo/src/config1x.h8
-rw-r--r--main/lzo/src/config1y.h8
-rw-r--r--main/lzo/src/config1z.h8
-rw-r--r--main/lzo/src/config2a.h8
-rw-r--r--main/lzo/src/lzo1.c8
-rw-r--r--main/lzo/src/lzo1_99.c6
-rw-r--r--main/lzo/src/lzo1_cm.ch6
-rw-r--r--main/lzo/src/lzo1_d.ch8
-rw-r--r--main/lzo/src/lzo1a.c8
-rw-r--r--main/lzo/src/lzo1a_99.c6
-rw-r--r--main/lzo/src/lzo1a_cm.ch6
-rw-r--r--main/lzo/src/lzo1a_cr.ch6
-rw-r--r--main/lzo/src/lzo1a_de.h6
-rw-r--r--main/lzo/src/lzo1b_1.c3
-rw-r--r--main/lzo/src/lzo1b_2.c3
-rw-r--r--main/lzo/src/lzo1b_3.c3
-rw-r--r--main/lzo/src/lzo1b_4.c3
-rw-r--r--main/lzo/src/lzo1b_5.c3
-rw-r--r--main/lzo/src/lzo1b_6.c3
-rw-r--r--main/lzo/src/lzo1b_7.c3
-rw-r--r--main/lzo/src/lzo1b_8.c3
-rw-r--r--main/lzo/src/lzo1b_9.c3
-rw-r--r--main/lzo/src/lzo1b_99.c3
-rw-r--r--main/lzo/src/lzo1b_9x.c7
-rw-r--r--main/lzo/src/lzo1b_c.ch6
-rw-r--r--main/lzo/src/lzo1b_cc.c16
-rw-r--r--main/lzo/src/lzo1b_cc.h20
-rw-r--r--main/lzo/src/lzo1b_cm.ch6
-rw-r--r--main/lzo/src/lzo1b_cr.ch6
-rw-r--r--main/lzo/src/lzo1b_d.ch7
-rw-r--r--main/lzo/src/lzo1b_d1.c4
-rw-r--r--main/lzo/src/lzo1b_d2.c4
-rw-r--r--main/lzo/src/lzo1b_de.h6
-rw-r--r--main/lzo/src/lzo1b_r.ch9
-rw-r--r--main/lzo/src/lzo1b_rr.c4
-rw-r--r--main/lzo/src/lzo1b_sm.ch6
-rw-r--r--main/lzo/src/lzo1b_tm.ch7
-rw-r--r--main/lzo/src/lzo1b_xx.c14
-rw-r--r--main/lzo/src/lzo1c_1.c3
-rw-r--r--main/lzo/src/lzo1c_2.c3
-rw-r--r--main/lzo/src/lzo1c_3.c3
-rw-r--r--main/lzo/src/lzo1c_4.c3
-rw-r--r--main/lzo/src/lzo1c_5.c3
-rw-r--r--main/lzo/src/lzo1c_6.c3
-rw-r--r--main/lzo/src/lzo1c_7.c3
-rw-r--r--main/lzo/src/lzo1c_8.c3
-rw-r--r--main/lzo/src/lzo1c_9.c3
-rw-r--r--main/lzo/src/lzo1c_99.c3
-rw-r--r--main/lzo/src/lzo1c_9x.c7
-rw-r--r--main/lzo/src/lzo1c_cc.c16
-rw-r--r--main/lzo/src/lzo1c_cc.h20
-rw-r--r--main/lzo/src/lzo1c_d1.c4
-rw-r--r--main/lzo/src/lzo1c_d2.c4
-rw-r--r--main/lzo/src/lzo1c_rr.c4
-rw-r--r--main/lzo/src/lzo1c_xx.c14
-rw-r--r--main/lzo/src/lzo1f_1.c9
-rw-r--r--main/lzo/src/lzo1f_9x.c7
-rw-r--r--main/lzo/src/lzo1f_d.ch7
-rw-r--r--main/lzo/src/lzo1f_d1.c4
-rw-r--r--main/lzo/src/lzo1f_d2.c4
-rw-r--r--main/lzo/src/lzo1x_1.c4
-rw-r--r--main/lzo/src/lzo1x_1k.c4
-rw-r--r--main/lzo/src/lzo1x_1l.c4
-rw-r--r--main/lzo/src/lzo1x_1o.c4
-rw-r--r--main/lzo/src/lzo1x_9x.c11
-rw-r--r--main/lzo/src/lzo1x_c.ch6
-rw-r--r--main/lzo/src/lzo1x_d.ch7
-rw-r--r--main/lzo/src/lzo1x_d1.c4
-rw-r--r--main/lzo/src/lzo1x_d2.c4
-rw-r--r--main/lzo/src/lzo1x_d3.c7
-rw-r--r--main/lzo/src/lzo1x_o.c4
-rw-r--r--main/lzo/src/lzo1x_oo.ch7
-rw-r--r--main/lzo/src/lzo1y_1.c4
-rw-r--r--main/lzo/src/lzo1y_9x.c4
-rw-r--r--main/lzo/src/lzo1y_d1.c4
-rw-r--r--main/lzo/src/lzo1y_d2.c4
-rw-r--r--main/lzo/src/lzo1y_d3.c4
-rw-r--r--main/lzo/src/lzo1y_o.c4
-rw-r--r--main/lzo/src/lzo1z_9x.c4
-rw-r--r--main/lzo/src/lzo1z_d1.c4
-rw-r--r--main/lzo/src/lzo1z_d2.c4
-rw-r--r--main/lzo/src/lzo1z_d3.c4
-rw-r--r--main/lzo/src/lzo2a_9x.c7
-rw-r--r--main/lzo/src/lzo2a_d.ch7
-rw-r--r--main/lzo/src/lzo2a_d1.c4
-rw-r--r--main/lzo/src/lzo2a_d2.c4
-rw-r--r--main/lzo/src/lzo_conf.h60
-rw-r--r--main/lzo/src/lzo_crc.c14
-rw-r--r--main/lzo/src/lzo_dict.h8
-rw-r--r--main/lzo/src/lzo_dll.ch6
-rw-r--r--main/lzo/src/lzo_func.h57
-rw-r--r--main/lzo/src/lzo_init.c22
-rw-r--r--main/lzo/src/lzo_mchw.ch27
-rw-r--r--main/lzo/src/lzo_ptr.c16
-rw-r--r--main/lzo/src/lzo_ptr.h6
-rw-r--r--main/lzo/src/lzo_str.c6
-rw-r--r--main/lzo/src/lzo_supp.h60
-rw-r--r--main/lzo/src/lzo_swd.ch20
-rw-r--r--main/lzo/src/lzo_util.c30
-rw-r--r--main/lzo/src/stats1a.h7
-rw-r--r--main/lzo/src/stats1b.h7
-rw-r--r--main/lzo/src/stats1c.h7
109 files changed, 461 insertions, 449 deletions
diff --git a/main/lzo/src/compr1b.h b/main/lzo/src/compr1b.h
index 32b22669..8c23fe85 100644
--- a/main/lzo/src/compr1b.h
+++ b/main/lzo/src/compr1b.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -64,6 +64,5 @@ LZO_COMPRESS ( const lzo_bytep in, lzo_uint in_len,
return _lzo1b_do_compress(in,in_len,out,out_len,wrkmem,do_compress);
}
-/*
-vi:ts=4:et
-*/
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/compr1c.h b/main/lzo/src/compr1c.h
index 566ba447..b5e8fb36 100644
--- a/main/lzo/src/compr1c.h
+++ b/main/lzo/src/compr1c.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -64,6 +64,5 @@ LZO_COMPRESS ( const lzo_bytep in, lzo_uint in_len,
return _lzo1c_do_compress(in,in_len,out,out_len,wrkmem,do_compress);
}
-/*
-vi:ts=4:et
-*/
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/config1.h b/main/lzo/src/config1.h
index 592f4737..99dd3610 100644
--- a/main/lzo/src/config1.h
+++ b/main/lzo/src/config1.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -35,7 +35,7 @@
#define __LZO_CONFIG1_H 1
#include "lzo_conf.h"
-#include "lzo/lzo1.h"
+#include <lzo/lzo1.h>
#define LZO_NO_R1 1
#include "config1a.h"
@@ -43,7 +43,4 @@
#endif /* already included */
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/config1a.h b/main/lzo/src/config1a.h
index 3f0aa48f..c3164473 100644
--- a/main/lzo/src/config1a.h
+++ b/main/lzo/src/config1a.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@
#define __LZO_CONFIG1A_H 1
#include "lzo_conf.h"
-#include "lzo/lzo1a.h"
+#include <lzo/lzo1a.h>
#undef LZO_COLLECT_STATS /* no support for stats here */
@@ -178,7 +178,5 @@
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/config1b.h b/main/lzo/src/config1b.h
index 26f47cbe..5b4e64aa 100644
--- a/main/lzo/src/config1b.h
+++ b/main/lzo/src/config1b.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@
#define __LZO_CONFIG1B_H 1
#include "lzo_conf.h"
-#include "lzo/lzo1b.h"
+#include <lzo/lzo1b.h>
/***********************************************************************
@@ -122,7 +122,5 @@
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/config1c.h b/main/lzo/src/config1c.h
index a465eaf6..7a888d95 100644
--- a/main/lzo/src/config1c.h
+++ b/main/lzo/src/config1c.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@
#define __LZO_CONFIG1C_H 1
#include "lzo_conf.h"
-#include "lzo/lzo1c.h"
+#include <lzo/lzo1c.h>
/***********************************************************************
@@ -127,7 +127,5 @@
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/config1f.h b/main/lzo/src/config1f.h
index 5e2a8e96..d6ca61d9 100644
--- a/main/lzo/src/config1f.h
+++ b/main/lzo/src/config1f.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@
#define __LZO_CONFIG1F_H 1
#include "lzo_conf.h"
-#include "lzo/lzo1f.h"
+#include <lzo/lzo1f.h>
/***********************************************************************
@@ -79,7 +79,5 @@
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/config1x.h b/main/lzo/src/config1x.h
index cbbc1672..72ced781 100644
--- a/main/lzo/src/config1x.h
+++ b/main/lzo/src/config1x.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -41,7 +41,7 @@
#include "lzo_conf.h"
#if !defined(__LZO_IN_MINILZO)
-#include "lzo/lzo1x.h"
+#include <lzo/lzo1x.h>
#endif
@@ -102,7 +102,5 @@
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/config1y.h b/main/lzo/src/config1y.h
index a36dac14..33869757 100644
--- a/main/lzo/src/config1y.h
+++ b/main/lzo/src/config1y.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -40,7 +40,7 @@
#endif
#include "lzo_conf.h"
-#include "lzo/lzo1y.h"
+#include <lzo/lzo1y.h>
#define M2_MAX_LEN 14
#define M2_MAX_OFFSET 0x0400
@@ -48,7 +48,5 @@
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/config1z.h b/main/lzo/src/config1z.h
index fcbc8385..e2f7a21c 100644
--- a/main/lzo/src/config1z.h
+++ b/main/lzo/src/config1z.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -40,14 +40,12 @@
#endif
#include "lzo_conf.h"
-#include "lzo/lzo1z.h"
+#include <lzo/lzo1z.h>
#define M2_MAX_OFFSET 0x0700
#include "config1x.h"
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/config2a.h b/main/lzo/src/config2a.h
index 16b74b03..17c8281d 100644
--- a/main/lzo/src/config2a.h
+++ b/main/lzo/src/config2a.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -36,7 +36,7 @@
#define __LZO_CONFIG2A_H 1
#include "lzo_conf.h"
-#include "lzo/lzo2a.h"
+#include <lzo/lzo2a.h>
/***********************************************************************
@@ -137,7 +137,5 @@
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1.c b/main/lzo/src/lzo1.c
index e629730c..96c159ed 100644
--- a/main/lzo/src/lzo1.c
+++ b/main/lzo/src/lzo1.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -27,7 +27,7 @@
#include "lzo_conf.h"
-#include "lzo/lzo1.h"
+#include <lzo/lzo1.h>
/***********************************************************************
@@ -618,6 +618,4 @@ lzo1_compress ( const lzo_bytep in , lzo_uint in_len,
}
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1_99.c b/main/lzo/src/lzo1_99.c
index a0ebf369..506add27 100644
--- a/main/lzo/src/lzo1_99.c
+++ b/main/lzo/src/lzo1_99.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -113,6 +113,4 @@ LZO_COMPRESS ( const lzo_bytep in, lzo_uint in_len,
}
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1_cm.ch b/main/lzo/src/lzo1_cm.ch
index 9e6ee32f..bfb19191 100644
--- a/main/lzo/src/lzo1_cm.ch
+++ b/main/lzo/src/lzo1_cm.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -35,6 +35,4 @@
#include "lzo1a_cm.ch"
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1_d.ch b/main/lzo/src/lzo1_d.ch
index e4dff04e..2e15a4a5 100644
--- a/main/lzo/src/lzo1_d.ch
+++ b/main/lzo/src/lzo1_d.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -153,8 +153,4 @@
#endif
-
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1a.c b/main/lzo/src/lzo1a.c
index e0894f60..1af4dba1 100644
--- a/main/lzo/src/lzo1a.c
+++ b/main/lzo/src/lzo1a.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -27,7 +27,7 @@
#include "lzo_conf.h"
-#include "lzo/lzo1a.h"
+#include <lzo/lzo1a.h>
/***********************************************************************
@@ -640,6 +640,4 @@ lzo1a_compress ( const lzo_bytep in , lzo_uint in_len,
}
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1a_99.c b/main/lzo/src/lzo1a_99.c
index 0feddbda..75579d4f 100644
--- a/main/lzo/src/lzo1a_99.c
+++ b/main/lzo/src/lzo1a_99.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -113,6 +113,4 @@ LZO_COMPRESS ( const lzo_bytep in, lzo_uint in_len,
}
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1a_cm.ch b/main/lzo/src/lzo1a_cm.ch
index 75289d5b..1b36e3c1 100644
--- a/main/lzo/src/lzo1a_cm.ch
+++ b/main/lzo/src/lzo1a_cm.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -225,6 +225,4 @@
assert(ii == ip);
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1a_cr.ch b/main/lzo/src/lzo1a_cr.ch
index cc1f7b4e..eef584b8 100644
--- a/main/lzo/src/lzo1a_cr.ch
+++ b/main/lzo/src/lzo1a_cr.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -110,7 +110,5 @@ store_run(lzo_bytep const oo, const lzo_bytep const ii, lzo_uint r_len)
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1a_de.h b/main/lzo/src/lzo1a_de.h
index 28c4be74..aaa01377 100644
--- a/main/lzo/src/lzo1a_de.h
+++ b/main/lzo/src/lzo1a_de.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -140,7 +140,5 @@ RBITS | MBITS MIN THR. MSIZE MAXS MINL MAXL MAXO R0MAX R0FAST
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_1.c b/main/lzo/src/lzo1b_1.c
index 7dfa93a5..101adba9 100644
--- a/main/lzo/src/lzo1b_1.c
+++ b/main/lzo/src/lzo1b_1.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 1
#include "compr1b.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_2.c b/main/lzo/src/lzo1b_2.c
index cfe8adf2..933bebb1 100644
--- a/main/lzo/src/lzo1b_2.c
+++ b/main/lzo/src/lzo1b_2.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 2
#include "compr1b.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_3.c b/main/lzo/src/lzo1b_3.c
index b1059950..0d070eaf 100644
--- a/main/lzo/src/lzo1b_3.c
+++ b/main/lzo/src/lzo1b_3.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 3
#include "compr1b.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_4.c b/main/lzo/src/lzo1b_4.c
index c666d6d1..17be356d 100644
--- a/main/lzo/src/lzo1b_4.c
+++ b/main/lzo/src/lzo1b_4.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 2
#include "compr1b.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_5.c b/main/lzo/src/lzo1b_5.c
index 67e9facd..920dbf1a 100644
--- a/main/lzo/src/lzo1b_5.c
+++ b/main/lzo/src/lzo1b_5.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 3
#include "compr1b.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_6.c b/main/lzo/src/lzo1b_6.c
index bdbcce8c..114aadd4 100644
--- a/main/lzo/src/lzo1b_6.c
+++ b/main/lzo/src/lzo1b_6.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 5
#include "compr1b.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_7.c b/main/lzo/src/lzo1b_7.c
index 1d415e05..9f5e6d79 100644
--- a/main/lzo/src/lzo1b_7.c
+++ b/main/lzo/src/lzo1b_7.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 3
#include "compr1b.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_8.c b/main/lzo/src/lzo1b_8.c
index a0cb8e12..94d20427 100644
--- a/main/lzo/src/lzo1b_8.c
+++ b/main/lzo/src/lzo1b_8.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 8
#include "compr1b.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_9.c b/main/lzo/src/lzo1b_9.c
index 9eb51d60..2d0532d2 100644
--- a/main/lzo/src/lzo1b_9.c
+++ b/main/lzo/src/lzo1b_9.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 9
#include "compr1b.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_99.c b/main/lzo/src/lzo1b_99.c
index b39e145f..570f2b08 100644
--- a/main/lzo/src/lzo1b_99.c
+++ b/main/lzo/src/lzo1b_99.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -35,3 +35,4 @@
#define MATCH_IP_END in_end
#include "compr1b.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_9x.c b/main/lzo/src/lzo1b_9x.c
index b1c9a1bd..285caad1 100644
--- a/main/lzo/src/lzo1b_9x.c
+++ b/main/lzo/src/lzo1b_9x.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -347,7 +347,4 @@ lzo1b_999_compress ( const lzo_bytep in , lzo_uint in_len,
}
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_c.ch b/main/lzo/src/lzo1b_c.ch
index 4fb79d46..f13a8124 100644
--- a/main/lzo/src/lzo1b_c.ch
+++ b/main/lzo/src/lzo1b_c.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -259,6 +259,4 @@ match:
#endif
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_cc.c b/main/lzo/src/lzo1b_cc.c
index cf597d52..c3318ce7 100644
--- a/main/lzo/src/lzo1b_cc.c
+++ b/main/lzo/src/lzo1b_cc.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -34,10 +34,11 @@
// compression internal entry point.
************************************************************************/
-int _lzo1b_do_compress ( const lzo_bytep in, lzo_uint in_len,
- lzo_bytep out, lzo_uintp out_len,
- lzo_voidp wrkmem,
- lzo_compress_t func )
+LZO_LOCAL_IMPL(int)
+_lzo1b_do_compress ( const lzo_bytep in, lzo_uint in_len,
+ lzo_bytep out, lzo_uintp out_len,
+ lzo_voidp wrkmem,
+ lzo_compress_t func )
{
int r;
#if defined(LZO_TEST_COMPRESS_OVERRUN)
@@ -149,7 +150,4 @@ void _lzo1b_stats_calc(lzo_stats_t *lzo_stats)
#endif
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_cc.h b/main/lzo/src/lzo1b_cc.h
index d92a095f..403025fd 100644
--- a/main/lzo/src/lzo1b_cc.h
+++ b/main/lzo/src/lzo1b_cc.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -57,25 +57,21 @@ extern const lzo_compress_t _lzo1b_99_compress_func;
//
************************************************************************/
-LZO_EXTERN(lzo_bytep )
+LZO_LOCAL_DECL(lzo_bytep )
_lzo1b_store_run ( lzo_bytep const oo, const lzo_bytep const ii,
lzo_uint r_len);
#define STORE_RUN _lzo1b_store_run
-lzo_compress_t _lzo1b_get_compress_func(int clevel);
-
-int _lzo1b_do_compress ( const lzo_bytep in, lzo_uint in_len,
- lzo_bytep out, lzo_uintp out_len,
- lzo_voidp wrkmem,
- lzo_compress_t func );
+LZO_LOCAL_DECL(int)
+_lzo1b_do_compress ( const lzo_bytep in, lzo_uint in_len,
+ lzo_bytep out, lzo_uintp out_len,
+ lzo_voidp wrkmem,
+ lzo_compress_t func );
#endif /* already included */
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_cm.ch b/main/lzo/src/lzo1b_cm.ch
index 2a90b509..ccfa869f 100644
--- a/main/lzo/src/lzo1b_cm.ch
+++ b/main/lzo/src/lzo1b_cm.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -277,6 +277,4 @@
assert(ii == ip);
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_cr.ch b/main/lzo/src/lzo1b_cr.ch
index faf12e2a..844ce94c 100644
--- a/main/lzo/src/lzo1b_cr.ch
+++ b/main/lzo/src/lzo1b_cr.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -109,6 +109,4 @@
assert(ii == ip);
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_d.ch b/main/lzo/src/lzo1b_d.ch
index cf253573..4fe164f7 100644
--- a/main/lzo/src/lzo1b_d.ch
+++ b/main/lzo/src/lzo1b_d.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -265,7 +265,4 @@ lookbehind_overrun:
}
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_d1.c b/main/lzo/src/lzo1b_d1.c
index cd52b250..190eaa2f 100644
--- a/main/lzo/src/lzo1b_d1.c
+++ b/main/lzo/src/lzo1b_d1.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,5 @@
#define DO_DECOMPRESS lzo1b_decompress
#include "lzo1b_d.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_d2.c b/main/lzo/src/lzo1b_d2.c
index 879b4aef..98a2704a 100644
--- a/main/lzo/src/lzo1b_d2.c
+++ b/main/lzo/src/lzo1b_d2.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,5 @@
#define DO_DECOMPRESS lzo1b_decompress_safe
#include "lzo1b_d.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_de.h b/main/lzo/src/lzo1b_de.h
index c88ee614..cf5abe9d 100644
--- a/main/lzo/src/lzo1b_de.h
+++ b/main/lzo/src/lzo1b_de.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -326,7 +326,5 @@ extern "C" {
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_r.ch b/main/lzo/src/lzo1b_r.ch
index d6ca5fa2..827a67de 100644
--- a/main/lzo/src/lzo1b_r.ch
+++ b/main/lzo/src/lzo1b_r.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -30,7 +30,7 @@
// store a literal run (internal)
************************************************************************/
-LZO_PUBLIC(lzo_bytep )
+LZO_LOCAL_IMPL(lzo_bytep )
STORE_RUN ( lzo_bytep const oo, const lzo_bytep const ii, lzo_uint r_len)
{
lzo_bytep op;
@@ -99,7 +99,4 @@ STORE_RUN ( lzo_bytep const oo, const lzo_bytep const ii, lzo_uint r_len)
}
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_rr.c b/main/lzo/src/lzo1b_rr.c
index 6442ea85..c91bbeca 100644
--- a/main/lzo/src/lzo1b_rr.c
+++ b/main/lzo/src/lzo1b_rr.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -29,3 +29,5 @@
#include "config1b.h"
#include "lzo1b_r.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_sm.ch b/main/lzo/src/lzo1b_sm.ch
index 032ec41b..06a83e29 100644
--- a/main/lzo/src/lzo1b_sm.ch
+++ b/main/lzo/src/lzo1b_sm.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -193,6 +193,4 @@
#endif /* (DD_BITS == 0) */
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_tm.ch b/main/lzo/src/lzo1b_tm.ch
index 96b96f00..a2da025d 100644
--- a/main/lzo/src/lzo1b_tm.ch
+++ b/main/lzo/src/lzo1b_tm.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -81,7 +81,4 @@ try_match:
#endif /* (DD_BITS == 0) */
-
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1b_xx.c b/main/lzo/src/lzo1b_xx.c
index 21eec0aa..56f30066 100644
--- a/main/lzo/src/lzo1b_xx.c
+++ b/main/lzo/src/lzo1b_xx.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -47,7 +47,7 @@ static const lzo_compress_t * const c_funcs [9] =
};
-lzo_compress_t _lzo1b_get_compress_func(int clevel)
+static lzo_compress_t lzo1b_get_compress_func(int clevel)
{
const lzo_compress_t *f;
@@ -56,7 +56,7 @@ lzo_compress_t _lzo1b_get_compress_func(int clevel)
if (clevel == LZO1B_DEFAULT_COMPRESSION)
clevel = LZO1B_BEST_SPEED;
else
- return 0;
+ return (lzo_compress_t) 0;
}
f = c_funcs[clevel-1];
assert(f && *f);
@@ -72,15 +72,11 @@ lzo1b_compress ( const lzo_bytep src, lzo_uint src_len,
{
lzo_compress_t f;
- f = _lzo1b_get_compress_func(clevel);
+ f = lzo1b_get_compress_func(clevel);
if (!f)
return LZO_E_ERROR;
return _lzo1b_do_compress(src,src_len,dst,dst_len,wrkmem,f);
}
-
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_1.c b/main/lzo/src/lzo1c_1.c
index fa9ae7d6..28c3f0c2 100644
--- a/main/lzo/src/lzo1c_1.c
+++ b/main/lzo/src/lzo1c_1.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 1
#include "compr1c.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_2.c b/main/lzo/src/lzo1c_2.c
index eb48954e..fa09d31a 100644
--- a/main/lzo/src/lzo1c_2.c
+++ b/main/lzo/src/lzo1c_2.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 2
#include "compr1c.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_3.c b/main/lzo/src/lzo1c_3.c
index cd6b861d..c8faa165 100644
--- a/main/lzo/src/lzo1c_3.c
+++ b/main/lzo/src/lzo1c_3.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 3
#include "compr1c.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_4.c b/main/lzo/src/lzo1c_4.c
index 81eafa5f..ca772d93 100644
--- a/main/lzo/src/lzo1c_4.c
+++ b/main/lzo/src/lzo1c_4.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 2
#include "compr1c.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_5.c b/main/lzo/src/lzo1c_5.c
index b2fa252a..7e8c546b 100644
--- a/main/lzo/src/lzo1c_5.c
+++ b/main/lzo/src/lzo1c_5.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 3
#include "compr1c.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_6.c b/main/lzo/src/lzo1c_6.c
index 44760049..632b8c0f 100644
--- a/main/lzo/src/lzo1c_6.c
+++ b/main/lzo/src/lzo1c_6.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 5
#include "compr1c.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_7.c b/main/lzo/src/lzo1c_7.c
index 0b16c07d..ad8a6abb 100644
--- a/main/lzo/src/lzo1c_7.c
+++ b/main/lzo/src/lzo1c_7.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 3
#include "compr1c.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_8.c b/main/lzo/src/lzo1c_8.c
index 727f2fc1..abb2b497 100644
--- a/main/lzo/src/lzo1c_8.c
+++ b/main/lzo/src/lzo1c_8.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 8
#include "compr1c.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_9.c b/main/lzo/src/lzo1c_9.c
index 6705bd7d..abbd0a1f 100644
--- a/main/lzo/src/lzo1c_9.c
+++ b/main/lzo/src/lzo1c_9.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,4 @@
#define CLEVEL 9
#include "compr1c.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_99.c b/main/lzo/src/lzo1c_99.c
index bec243b0..c583e83f 100644
--- a/main/lzo/src/lzo1c_99.c
+++ b/main/lzo/src/lzo1c_99.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -35,3 +35,4 @@
#define MATCH_IP_END in_end
#include "compr1c.h"
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_9x.c b/main/lzo/src/lzo1c_9x.c
index 9a7d6d0e..cbc4e514 100644
--- a/main/lzo/src/lzo1c_9x.c
+++ b/main/lzo/src/lzo1c_9x.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -361,7 +361,4 @@ lzo1c_999_compress ( const lzo_bytep in , lzo_uint in_len,
}
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_cc.c b/main/lzo/src/lzo1c_cc.c
index f6999dba..f7044250 100644
--- a/main/lzo/src/lzo1c_cc.c
+++ b/main/lzo/src/lzo1c_cc.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -34,10 +34,11 @@
// compression internal entry point.
************************************************************************/
-int _lzo1c_do_compress ( const lzo_bytep in, lzo_uint in_len,
- lzo_bytep out, lzo_uintp out_len,
- lzo_voidp wrkmem,
- lzo_compress_t func )
+LZO_LOCAL_IMPL(int)
+_lzo1c_do_compress ( const lzo_bytep in, lzo_uint in_len,
+ lzo_bytep out, lzo_uintp out_len,
+ lzo_voidp wrkmem,
+ lzo_compress_t func )
{
int r;
#if defined(LZO_TEST_COMPRESS_OVERRUN)
@@ -149,7 +150,4 @@ void _lzo1c_stats_calc(lzo_stats_t *lzo_stats)
#endif
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_cc.h b/main/lzo/src/lzo1c_cc.h
index ff63ff06..f8b7d830 100644
--- a/main/lzo/src/lzo1c_cc.h
+++ b/main/lzo/src/lzo1c_cc.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -57,25 +57,21 @@ extern const lzo_compress_t _lzo1c_99_compress_func;
//
************************************************************************/
-LZO_EXTERN(lzo_bytep )
+LZO_LOCAL_DECL(lzo_bytep )
_lzo1c_store_run ( lzo_bytep const oo, const lzo_bytep const ii,
lzo_uint r_len);
#define STORE_RUN _lzo1c_store_run
-lzo_compress_t _lzo1c_get_compress_func(int clevel);
-
-int _lzo1c_do_compress ( const lzo_bytep in, lzo_uint in_len,
- lzo_bytep out, lzo_uintp out_len,
- lzo_voidp wrkmem,
- lzo_compress_t func );
+LZO_LOCAL_DECL(int)
+_lzo1c_do_compress ( const lzo_bytep in, lzo_uint in_len,
+ lzo_bytep out, lzo_uintp out_len,
+ lzo_voidp wrkmem,
+ lzo_compress_t func );
#endif /* already included */
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_d1.c b/main/lzo/src/lzo1c_d1.c
index 63b6eaf4..e3fec206 100644
--- a/main/lzo/src/lzo1c_d1.c
+++ b/main/lzo/src/lzo1c_d1.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,5 @@
#define DO_DECOMPRESS lzo1c_decompress
#include "lzo1b_d.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_d2.c b/main/lzo/src/lzo1c_d2.c
index 64bc8e62..fa83cdda 100644
--- a/main/lzo/src/lzo1c_d2.c
+++ b/main/lzo/src/lzo1c_d2.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -46,3 +46,5 @@ LZO_PUBLIC(int) lzo1c_decompress_asm_safe
return lzo1c_decompress_safe(src, src_len, dst, dst_len, wrkmem);
}
#endif
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_rr.c b/main/lzo/src/lzo1c_rr.c
index 860d36e1..7851fa43 100644
--- a/main/lzo/src/lzo1c_rr.c
+++ b/main/lzo/src/lzo1c_rr.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -29,3 +29,5 @@
#include "config1c.h"
#include "lzo1b_r.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1c_xx.c b/main/lzo/src/lzo1c_xx.c
index 7a0e5940..8b46509d 100644
--- a/main/lzo/src/lzo1c_xx.c
+++ b/main/lzo/src/lzo1c_xx.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -47,7 +47,7 @@ static const lzo_compress_t * const c_funcs [9] =
};
-lzo_compress_t _lzo1c_get_compress_func(int clevel)
+static lzo_compress_t lzo1c_get_compress_func(int clevel)
{
const lzo_compress_t *f;
@@ -56,7 +56,7 @@ lzo_compress_t _lzo1c_get_compress_func(int clevel)
if (clevel == LZO1C_DEFAULT_COMPRESSION)
clevel = LZO1C_BEST_SPEED;
else
- return 0;
+ return (lzo_compress_t) 0;
}
f = c_funcs[clevel-1];
assert(f && *f);
@@ -72,15 +72,11 @@ lzo1c_compress ( const lzo_bytep src, lzo_uint src_len,
{
lzo_compress_t f;
- f = _lzo1c_get_compress_func(clevel);
+ f = lzo1c_get_compress_func(clevel);
if (!f)
return LZO_E_ERROR;
return _lzo1c_do_compress(src,src_len,dst,dst_len,wrkmem,f);
}
-
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1f_1.c b/main/lzo/src/lzo1f_1.c
index 0f8612e4..44a138c8 100644
--- a/main/lzo/src/lzo1f_1.c
+++ b/main/lzo/src/lzo1f_1.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -27,7 +27,7 @@
#include "lzo_conf.h"
-#include "lzo/lzo1f.h"
+#include <lzo/lzo1f.h>
/***********************************************************************
@@ -298,7 +298,4 @@ lzo1f_1_compress ( const lzo_bytep in , lzo_uint in_len,
}
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1f_9x.c b/main/lzo/src/lzo1f_9x.c
index eb78d8cb..353aca0a 100644
--- a/main/lzo/src/lzo1f_9x.c
+++ b/main/lzo/src/lzo1f_9x.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -327,7 +327,4 @@ lzo1f_999_compress ( const lzo_bytep in , lzo_uint in_len,
}
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1f_d.ch b/main/lzo/src/lzo1f_d.ch
index b22916e5..c5093c19 100644
--- a/main/lzo/src/lzo1f_d.ch
+++ b/main/lzo/src/lzo1f_d.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -207,7 +207,4 @@ lookbehind_overrun:
}
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1f_d1.c b/main/lzo/src/lzo1f_d1.c
index 0c505584..278fb680 100644
--- a/main/lzo/src/lzo1f_d1.c
+++ b/main/lzo/src/lzo1f_d1.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,5 @@
#define DO_DECOMPRESS lzo1f_decompress
#include "lzo1f_d.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1f_d2.c b/main/lzo/src/lzo1f_d2.c
index b762a7af..f98f8556 100644
--- a/main/lzo/src/lzo1f_d2.c
+++ b/main/lzo/src/lzo1f_d2.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -46,3 +46,5 @@ LZO_PUBLIC(int) lzo1f_decompress_asm_fast_safe
return lzo1f_decompress_safe(src, src_len, dst, dst_len, wrkmem);
}
#endif
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1x_1.c b/main/lzo/src/lzo1x_1.c
index 2bdecce0..2c6cb46d 100644
--- a/main/lzo/src/lzo1x_1.c
+++ b/main/lzo/src/lzo1x_1.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -53,3 +53,5 @@
#endif
#include "lzo1x_c.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1x_1k.c b/main/lzo/src/lzo1x_1k.c
index cbfa2344..74291c0e 100644
--- a/main/lzo/src/lzo1x_1k.c
+++ b/main/lzo/src/lzo1x_1k.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -53,3 +53,5 @@
#endif
#include "lzo1x_c.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1x_1l.c b/main/lzo/src/lzo1x_1l.c
index ee857bce..6fa81fd7 100644
--- a/main/lzo/src/lzo1x_1l.c
+++ b/main/lzo/src/lzo1x_1l.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -53,3 +53,5 @@
#endif
#include "lzo1x_c.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1x_1o.c b/main/lzo/src/lzo1x_1o.c
index 28fdaffc..8fd85842 100644
--- a/main/lzo/src/lzo1x_1o.c
+++ b/main/lzo/src/lzo1x_1o.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -54,3 +54,5 @@
#endif
#include "lzo1x_c.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1x_9x.c b/main/lzo/src/lzo1x_9x.c
index 9de75df0..4432e48d 100644
--- a/main/lzo/src/lzo1x_9x.c
+++ b/main/lzo/src/lzo1x_9x.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -109,7 +109,7 @@ code_match ( LZO_COMPRESS_T *c, lzo_bytep op, lzo_uint m_len, lzo_uint m_off )
lzo_uint x_len = m_len;
lzo_uint x_off = m_off;
- c->match_bytes += (unsigned long) m_len;
+ c->match_bytes += m_len;
#if 0
/*
@@ -265,7 +265,7 @@ code_match ( LZO_COMPRESS_T *c, lzo_bytep op, lzo_uint m_len, lzo_uint m_off )
static lzo_bytep
STORE_RUN ( LZO_COMPRESS_T *c, lzo_bytep op, const lzo_bytep ii, lzo_uint t )
{
- c->lit_bytes += (unsigned long) t;
+ c->lit_bytes += t;
if (op == c->out && t <= 238)
{
@@ -864,7 +864,4 @@ lzo1x_999_compress ( const lzo_bytep in , lzo_uint in_len,
}
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1x_c.ch b/main/lzo/src/lzo1x_c.ch
index 805f71d3..562e0b14 100644
--- a/main/lzo/src/lzo1x_c.ch
+++ b/main/lzo/src/lzo1x_c.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -400,6 +400,4 @@ DO_COMPRESS ( const lzo_bytep in , lzo_uint in_len,
}
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1x_d.ch b/main/lzo/src/lzo1x_d.ch
index aa0a8e08..5107f5fd 100644
--- a/main/lzo/src/lzo1x_d.ch
+++ b/main/lzo/src/lzo1x_d.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -472,7 +472,4 @@ lookbehind_overrun:
}
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1x_d1.c b/main/lzo/src/lzo1x_d1.c
index 2342afdb..b31f6de1 100644
--- a/main/lzo/src/lzo1x_d1.c
+++ b/main/lzo/src/lzo1x_d1.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,5 @@
#define DO_DECOMPRESS lzo1x_decompress
#include "lzo1x_d.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1x_d2.c b/main/lzo/src/lzo1x_d2.c
index 477522cb..abe94632 100644
--- a/main/lzo/src/lzo1x_d2.c
+++ b/main/lzo/src/lzo1x_d2.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -57,3 +57,5 @@ LZO_PUBLIC(int) lzo1x_decompress_asm_fast_safe
return lzo1x_decompress_safe(src, src_len, dst, dst_len, wrkmem);
}
#endif
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1x_d3.c b/main/lzo/src/lzo1x_d3.c
index 8da06923..8bde36fb 100644
--- a/main/lzo/src/lzo1x_d3.c
+++ b/main/lzo/src/lzo1x_d3.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -90,7 +90,4 @@ lzo1x_decompress_dict_safe ( const lzo_bytep in, lzo_uint in_len,
#include "lzo1x_d.ch"
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1x_o.c b/main/lzo/src/lzo1x_o.c
index 5b3dbafd..be596a77 100644
--- a/main/lzo/src/lzo1x_o.c
+++ b/main/lzo/src/lzo1x_o.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -31,3 +31,5 @@
#define DO_OPTIMIZE lzo1x_optimize
#include "lzo1x_oo.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1x_oo.ch b/main/lzo/src/lzo1x_oo.ch
index ebb406ff..82871bbb 100644
--- a/main/lzo/src/lzo1x_oo.ch
+++ b/main/lzo/src/lzo1x_oo.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -349,7 +349,4 @@ eof_found:
}
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1y_1.c b/main/lzo/src/lzo1y_1.c
index dfa4487a..5e1186b7 100644
--- a/main/lzo/src/lzo1y_1.c
+++ b/main/lzo/src/lzo1y_1.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -53,3 +53,5 @@
#endif
#include "lzo1x_c.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1y_9x.c b/main/lzo/src/lzo1y_9x.c
index 464d849e..d905a17c 100644
--- a/main/lzo/src/lzo1y_9x.c
+++ b/main/lzo/src/lzo1y_9x.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -28,3 +28,5 @@
#define LZO1Y 1
#include "lzo1x_9x.c"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1y_d1.c b/main/lzo/src/lzo1y_d1.c
index e10877e7..78e372cc 100644
--- a/main/lzo/src/lzo1y_d1.c
+++ b/main/lzo/src/lzo1y_d1.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,5 @@
#define DO_DECOMPRESS lzo1y_decompress
#include "lzo1x_d.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1y_d2.c b/main/lzo/src/lzo1y_d2.c
index 0aeeec6e..2f14724e 100644
--- a/main/lzo/src/lzo1y_d2.c
+++ b/main/lzo/src/lzo1y_d2.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -57,3 +57,5 @@ LZO_PUBLIC(int) lzo1y_decompress_asm_fast_safe
return lzo1y_decompress_safe(src, src_len, dst, dst_len, wrkmem);
}
#endif
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1y_d3.c b/main/lzo/src/lzo1y_d3.c
index 494a5f52..9c617500 100644
--- a/main/lzo/src/lzo1y_d3.c
+++ b/main/lzo/src/lzo1y_d3.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -31,3 +31,5 @@
#define lzo1x_decompress_dict_safe lzo1y_decompress_dict_safe
#include "lzo1x_d3.c"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1y_o.c b/main/lzo/src/lzo1y_o.c
index 27abd469..f6d2c0a6 100644
--- a/main/lzo/src/lzo1y_o.c
+++ b/main/lzo/src/lzo1y_o.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -31,3 +31,5 @@
#define DO_OPTIMIZE lzo1y_optimize
#include "lzo1x_oo.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1z_9x.c b/main/lzo/src/lzo1z_9x.c
index 579b161a..8914dafc 100644
--- a/main/lzo/src/lzo1z_9x.c
+++ b/main/lzo/src/lzo1z_9x.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -28,3 +28,5 @@
#define LZO1Z 1
#include "lzo1x_9x.c"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1z_d1.c b/main/lzo/src/lzo1z_d1.c
index 81cc02ac..53d4dbce 100644
--- a/main/lzo/src/lzo1z_d1.c
+++ b/main/lzo/src/lzo1z_d1.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,5 @@
#define DO_DECOMPRESS lzo1z_decompress
#include "lzo1x_d.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1z_d2.c b/main/lzo/src/lzo1z_d2.c
index 2a132e61..bb213640 100644
--- a/main/lzo/src/lzo1z_d2.c
+++ b/main/lzo/src/lzo1z_d2.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,5 @@
#define DO_DECOMPRESS lzo1z_decompress_safe
#include "lzo1x_d.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo1z_d3.c b/main/lzo/src/lzo1z_d3.c
index d82dc324..784bb7f7 100644
--- a/main/lzo/src/lzo1z_d3.c
+++ b/main/lzo/src/lzo1z_d3.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -31,3 +31,5 @@
#define lzo1x_decompress_dict_safe lzo1z_decompress_dict_safe
#include "lzo1x_d3.c"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo2a_9x.c b/main/lzo/src/lzo2a_9x.c
index 2fec38c2..0e14916f 100644
--- a/main/lzo/src/lzo2a_9x.c
+++ b/main/lzo/src/lzo2a_9x.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -343,7 +343,4 @@ lzo2a_999_compress ( const lzo_bytep in , lzo_uint in_len,
}
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo2a_d.ch b/main/lzo/src/lzo2a_d.ch
index 1f4acf12..dcd2b54c 100644
--- a/main/lzo/src/lzo2a_d.ch
+++ b/main/lzo/src/lzo2a_d.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -171,7 +171,4 @@ lookbehind_overrun:
}
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo2a_d1.c b/main/lzo/src/lzo2a_d1.c
index a32f4cd4..5694738b 100644
--- a/main/lzo/src/lzo2a_d1.c
+++ b/main/lzo/src/lzo2a_d1.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,5 @@
#define DO_DECOMPRESS lzo2a_decompress
#include "lzo2a_d.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo2a_d2.c b/main/lzo/src/lzo2a_d2.c
index c3c3bed3..5bf1a219 100644
--- a/main/lzo/src/lzo2a_d2.c
+++ b/main/lzo/src/lzo2a_d2.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -32,3 +32,5 @@
#define DO_DECOMPRESS lzo2a_decompress_safe
#include "lzo2a_d.ch"
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo_conf.h b/main/lzo/src/lzo_conf.h
index 3543b140..06901817 100644
--- a/main/lzo/src/lzo_conf.h
+++ b/main/lzo/src/lzo_conf.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -46,13 +46,26 @@
#if defined(__LZOCONF_H) || defined(__LZOCONF_H_INCLUDED)
# error "include this file first"
#endif
-#include "lzo/lzoconf.h"
+#if defined(LZO_CFG_BUILD_DLL) && (LZO_CFG_BUILD_DLL+0) && !defined(__LZO_EXPORT1) && !defined(__LZO_EXPORT2) && 0
+ /* idea: we could auto-define __LZO_EXPORT1 for DLL exports */
+#ifndef __LZODEFS_H_INCLUDED
+#if defined(LZO_HAVE_CONFIG_H)
+# include <config.h>
+#endif
+#include <limits.h>
+#include <stddef.h>
+#include <lzo/lzodefs.h>
+#endif
+ /* #define __LZO_EXPORT1 __attribute__((__visibility__("default"))) */
+ /* #define __LZO_EXPORT1 __declspec(dllexport) */
+#endif
+#include <lzo/lzoconf.h>
#if defined(LZO_CFG_EXTRA_CONFIG_HEADER2)
# include LZO_CFG_EXTRA_CONFIG_HEADER2
#endif
-#endif
+#endif /* !defined(__LZO_IN_MINILZO) */
-#if (LZO_VERSION < 0x2070) || !defined(__LZOCONF_H_INCLUDED)
+#if !defined(__LZOCONF_H_INCLUDED) || (LZO_VERSION+0 != 0x2090)
# error "version mismatch"
#endif
@@ -78,6 +91,10 @@
/* disable '-Wall' warnings in system header files */
# pragma warning(disable: 4746)
#endif
+#if (LZO_CC_INTELC && (__INTEL_COMPILER >= 900))
+ /* disable pedantic warnings in system header files */
+# pragma warning(disable: 1684)
+#endif
#if (LZO_CC_SUNPROC)
#if !defined(__cplusplus)
@@ -89,6 +106,37 @@
/***********************************************************************
+// function types
+************************************************************************/
+
+#if !defined(__LZO_NOEXPORT1)
+# define __LZO_NOEXPORT1 /*empty*/
+#endif
+#if !defined(__LZO_NOEXPORT2)
+# define __LZO_NOEXPORT2 /*empty*/
+#endif
+
+#if 1
+# define LZO_PUBLIC_DECL(r) LZO_EXTERN(r)
+#endif
+#if 1
+# define LZO_PUBLIC_IMPL(r) LZO_PUBLIC(r)
+#endif
+#if !defined(LZO_LOCAL_DECL)
+# define LZO_LOCAL_DECL(r) __LZO_EXTERN_C LZO_LOCAL_IMPL(r)
+#endif
+#if !defined(LZO_LOCAL_IMPL)
+# define LZO_LOCAL_IMPL(r) __LZO_NOEXPORT1 r __LZO_NOEXPORT2 __LZO_CDECL
+#endif
+#if 1
+# define LZO_STATIC_DECL(r) LZO_PRIVATE(r)
+#endif
+#if 1
+# define LZO_STATIC_IMPL(r) LZO_PRIVATE(r)
+#endif
+
+
+/***********************************************************************
//
************************************************************************/
@@ -384,7 +432,5 @@ LZO_EXTERN(const lzo_bytep) lzo_copyright(void);
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo_crc.c b/main/lzo/src/lzo_crc.c
index adb72381..b35ec234 100644
--- a/main/lzo/src/lzo_crc.c
+++ b/main/lzo/src/lzo_crc.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -105,10 +105,10 @@ lzo_get_crc32_table(void)
#define LZO_DO1(buf,i) \
crc = table[(unsigned char)((unsigned char)crc ^ buf[i])] ^ (crc >> 8)
#endif
-#define LZO_DO2(buf,i) LZO_DO1(buf,i); LZO_DO1(buf,i+1);
-#define LZO_DO4(buf,i) LZO_DO2(buf,i); LZO_DO2(buf,i+2);
-#define LZO_DO8(buf,i) LZO_DO4(buf,i); LZO_DO4(buf,i+4);
-#define LZO_DO16(buf,i) LZO_DO8(buf,i); LZO_DO8(buf,i+8);
+#define LZO_DO2(buf,i) LZO_DO1(buf,i); LZO_DO1(buf,i+1)
+#define LZO_DO4(buf,i) LZO_DO2(buf,i); LZO_DO2(buf,i+2)
+#define LZO_DO8(buf,i) LZO_DO4(buf,i); LZO_DO4(buf,i+4)
+#define LZO_DO16(buf,i) LZO_DO8(buf,i); LZO_DO8(buf,i+8)
LZO_PUBLIC(lzo_uint32_t)
@@ -150,6 +150,4 @@ lzo_crc32(lzo_uint32_t c, const lzo_bytep buf, lzo_uint len)
#undef LZO_DO16
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo_dict.h b/main/lzo/src/lzo_dict.h
index c3dd52bf..68ec43ff 100644
--- a/main/lzo/src/lzo_dict.h
+++ b/main/lzo/src/lzo_dict.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -207,7 +207,7 @@ extern "C" {
#if !defined(DVAL_ASSERT)
#if defined(__LZO_HASH_INCREMENTAL) && !defined(NDEBUG)
-#if (LZO_CC_CLANG || (LZO_CC_GNUC >= 0x020700ul) || LZO_CC_LLVM)
+#if 1 && (LZO_CC_ARMCC_GNUC || LZO_CC_CLANG || (LZO_CC_GNUC >= 0x020700ul) || LZO_CC_INTELC_GNUC || LZO_CC_LLVM || LZO_CC_PATHSCALE || LZO_CC_PGI)
static void __attribute__((__unused__))
#else
static void
@@ -303,7 +303,5 @@ DVAL_ASSERT(lzo_xint dv, const lzo_bytep p)
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo_dll.ch b/main/lzo/src/lzo_dll.ch
index 3b80edff..6fda0bc0 100644
--- a/main/lzo/src/lzo_dll.ch
+++ b/main/lzo/src/lzo_dll.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -47,6 +47,4 @@ int __far __pascal LibMain ( int a, short b, short c, long d )
#endif
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo_func.h b/main/lzo/src/lzo_func.h
index f11f2ae3..3c204da9 100644
--- a/main/lzo/src/lzo_func.h
+++ b/main/lzo/src/lzo_func.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -74,6 +74,9 @@ __lzo_static_forceinline unsigned lzo_bitops_ctlz32_func(lzo_uint32_t v)
#elif (LZO_BITOPS_USE_GNUC_BITSCAN) && (LZO_SIZEOF_INT == 4)
unsigned r; r = (unsigned) __builtin_clz(v); return r;
#define lzo_bitops_ctlz32(v) ((unsigned) __builtin_clz(v))
+#elif (LZO_BITOPS_USE_GNUC_BITSCAN) && (LZO_SIZEOF_LONG == 8) && (LZO_WORDSIZE >= 8)
+ unsigned r; r = (unsigned) __builtin_clzl(v); return r ^ 32;
+#define lzo_bitops_ctlz32(v) (((unsigned) __builtin_clzl(v)) ^ 32)
#else
LZO_UNUSED(v); return 0;
#endif
@@ -143,20 +146,15 @@ __lzo_static_forceinline unsigned lzo_bitops_cttz64_func(lzo_uint64_t v)
}
#endif
-#if 1 && (LZO_CC_ARMCC_GNUC || LZO_CC_CLANG || (LZO_CC_GNUC >= 0x020700ul) || LZO_CC_INTELC_GNUC || LZO_CC_LLVM || LZO_CC_PATHSCALE || LZO_CC_PGI)
-static void __attribute__((__unused__))
-#else
-__lzo_static_forceinline void
-#endif
-lzo_bitops_unused_funcs(void)
+lzo_unused_funcs_impl(void, lzo_bitops_unused_funcs)(void)
{
+ LZO_UNUSED_FUNC(lzo_bitops_unused_funcs);
LZO_UNUSED_FUNC(lzo_bitops_ctlz32_func);
LZO_UNUSED_FUNC(lzo_bitops_cttz32_func);
#if defined(lzo_uint64_t)
LZO_UNUSED_FUNC(lzo_bitops_ctlz64_func);
LZO_UNUSED_FUNC(lzo_bitops_cttz64_func);
#endif
- LZO_UNUSED_FUNC(lzo_bitops_unused_funcs);
}
@@ -165,8 +163,9 @@ lzo_bitops_unused_funcs(void)
************************************************************************/
#if defined(__lzo_alignof) && !(LZO_CFG_NO_UNALIGNED)
-#ifndef __lzo_memops_tcheck
-#define __lzo_memops_tcheck(t,a,b) ((void)0, sizeof(t) == (a) && __lzo_alignof(t) == (b))
+/* CBUG: disabled because of gcc bug 64516 */
+#if !defined(lzo_memops_tcheck__) && 0
+#define lzo_memops_tcheck__(t,a,b) ((void)0, sizeof(t) == (a) && __lzo_alignof(t) == (b))
#endif
#endif
#ifndef lzo_memops_TU0p
@@ -283,9 +282,9 @@ LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(*(lzo_memops_TU1p)0)==1)
LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(*(lzo_memops_TU2p)0)==2)
#define LZO_MEMOPS_COPY2(dd,ss) \
* (lzo_memops_TU2p) (lzo_memops_TU0p) (dd) = * (const lzo_memops_TU2p) (const lzo_memops_TU0p) (ss)
-#elif defined(__lzo_memops_tcheck)
+#elif defined(lzo_memops_tcheck__)
#define LZO_MEMOPS_COPY2(dd,ss) \
- LZO_BLOCK_BEGIN if (__lzo_memops_tcheck(lzo_memops_TU2,2,1)) { \
+ LZO_BLOCK_BEGIN if (lzo_memops_tcheck__(lzo_memops_TU2,2,1)) { \
* (lzo_memops_TU2p) (lzo_memops_TU0p) (dd) = * (const lzo_memops_TU2p) (const lzo_memops_TU0p) (ss); \
} else { LZO_MEMOPS_MOVE2(dd,ss); } LZO_BLOCK_END
#else
@@ -295,9 +294,9 @@ LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(*(lzo_memops_TU2p)0)==2)
LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(*(lzo_memops_TU4p)0)==4)
#define LZO_MEMOPS_COPY4(dd,ss) \
* (lzo_memops_TU4p) (lzo_memops_TU0p) (dd) = * (const lzo_memops_TU4p) (const lzo_memops_TU0p) (ss)
-#elif defined(__lzo_memops_tcheck)
+#elif defined(lzo_memops_tcheck__)
#define LZO_MEMOPS_COPY4(dd,ss) \
- LZO_BLOCK_BEGIN if (__lzo_memops_tcheck(lzo_memops_TU4,4,1)) { \
+ LZO_BLOCK_BEGIN if (lzo_memops_tcheck__(lzo_memops_TU4,4,1)) { \
* (lzo_memops_TU4p) (lzo_memops_TU0p) (dd) = * (const lzo_memops_TU4p) (const lzo_memops_TU0p) (ss); \
} else { LZO_MEMOPS_MOVE4(dd,ss); } LZO_BLOCK_END
#else
@@ -314,9 +313,9 @@ LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(*(lzo_memops_TU8p)0)==8)
#elif (LZO_OPT_UNALIGNED32)
#define LZO_MEMOPS_COPY8(dd,ss) \
LZO_BLOCK_BEGIN LZO_MEMOPS_COPY4(dd,ss); LZO_MEMOPS_COPY4((lzo_memops_TU1p)(lzo_memops_TU0p)(dd)+4,(const lzo_memops_TU1p)(const lzo_memops_TU0p)(ss)+4); LZO_BLOCK_END
-#elif defined(__lzo_memops_tcheck)
+#elif defined(lzo_memops_tcheck__)
#define LZO_MEMOPS_COPY8(dd,ss) \
- LZO_BLOCK_BEGIN if (__lzo_memops_tcheck(lzo_memops_TU8,8,1)) { \
+ LZO_BLOCK_BEGIN if (lzo_memops_tcheck__(lzo_memops_TU8,8,1)) { \
* (lzo_memops_TU8p) (lzo_memops_TU0p) (dd) = * (const lzo_memops_TU8p) (const lzo_memops_TU0p) (ss); \
} else { LZO_MEMOPS_MOVE8(dd,ss); } LZO_BLOCK_END
#else
@@ -350,7 +349,7 @@ __lzo_static_forceinline lzo_uint16_t lzo_memops_get_le16(const lzo_voidp ss)
return v;
}
#if (LZO_OPT_UNALIGNED16) && (LZO_ABI_LITTLE_ENDIAN)
-#define LZO_MEMOPS_GET_LE16(ss) * (const lzo_memops_TU2p) (const lzo_memops_TU0p) (ss)
+#define LZO_MEMOPS_GET_LE16(ss) (* (const lzo_memops_TU2p) (const lzo_memops_TU0p) (ss))
#else
#define LZO_MEMOPS_GET_LE16(ss) lzo_memops_get_le16(ss)
#endif
@@ -367,18 +366,18 @@ __lzo_static_forceinline lzo_uint32_t lzo_memops_get_le32(const lzo_voidp ss)
v = (lzo_uint32_t) vv;
#else
const lzo_memops_TU1p s = (const lzo_memops_TU1p) ss;
- v = (lzo_uint32_t) (((lzo_uint32_t)s[0] << 24) | ((lzo_uint32_t)s[1] << 16) | ((lzo_uint32_t)s[2] << 8) | ((lzo_uint32_t)s[3]));
+ v = (lzo_uint32_t) (((lzo_uint32_t)s[0]) | ((lzo_uint32_t)s[1] << 8) | ((lzo_uint32_t)s[2] << 16) | ((lzo_uint32_t)s[3] << 24));
#endif
return v;
}
#if (LZO_OPT_UNALIGNED32) && (LZO_ABI_LITTLE_ENDIAN)
-#define LZO_MEMOPS_GET_LE32(ss) * (const lzo_memops_TU4p) (const lzo_memops_TU0p) (ss)
+#define LZO_MEMOPS_GET_LE32(ss) (* (const lzo_memops_TU4p) (const lzo_memops_TU0p) (ss))
#else
#define LZO_MEMOPS_GET_LE32(ss) lzo_memops_get_le32(ss)
#endif
#if (LZO_OPT_UNALIGNED64) && (LZO_ABI_LITTLE_ENDIAN)
-#define LZO_MEMOPS_GET_LE64(ss) * (const lzo_memops_TU8p) (const lzo_memops_TU0p) (ss)
+#define LZO_MEMOPS_GET_LE64(ss) (* (const lzo_memops_TU8p) (const lzo_memops_TU0p) (ss))
#endif
__lzo_static_forceinline lzo_uint16_t lzo_memops_get_ne16(const lzo_voidp ss)
@@ -388,7 +387,8 @@ __lzo_static_forceinline lzo_uint16_t lzo_memops_get_ne16(const lzo_voidp ss)
return v;
}
#if (LZO_OPT_UNALIGNED16)
-#define LZO_MEMOPS_GET_NE16(ss) * (const lzo_memops_TU2p) (const lzo_memops_TU0p) (ss)
+LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(*(lzo_memops_TU2p)0)==2)
+#define LZO_MEMOPS_GET_NE16(ss) (* (const lzo_memops_TU2p) (const lzo_memops_TU0p) (ss))
#else
#define LZO_MEMOPS_GET_NE16(ss) lzo_memops_get_ne16(ss)
#endif
@@ -400,13 +400,15 @@ __lzo_static_forceinline lzo_uint32_t lzo_memops_get_ne32(const lzo_voidp ss)
return v;
}
#if (LZO_OPT_UNALIGNED32)
-#define LZO_MEMOPS_GET_NE32(ss) * (const lzo_memops_TU4p) (const lzo_memops_TU0p) (ss)
+LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(*(lzo_memops_TU4p)0)==4)
+#define LZO_MEMOPS_GET_NE32(ss) (* (const lzo_memops_TU4p) (const lzo_memops_TU0p) (ss))
#else
#define LZO_MEMOPS_GET_NE32(ss) lzo_memops_get_ne32(ss)
#endif
#if (LZO_OPT_UNALIGNED64)
-#define LZO_MEMOPS_GET_NE64(ss) * (const lzo_memops_TU8p) (const lzo_memops_TU0p) (ss)
+LZO_COMPILE_TIME_ASSERT_HEADER(sizeof(*(lzo_memops_TU8p)0)==8)
+#define LZO_MEMOPS_GET_NE64(ss) (* (const lzo_memops_TU8p) (const lzo_memops_TU0p) (ss))
#endif
__lzo_static_forceinline void lzo_memops_put_le16(lzo_voidp dd, lzo_uint16_t vv)
@@ -471,13 +473,9 @@ __lzo_static_forceinline void lzo_memops_put_ne32(lzo_voidp dd, lzo_uint32_t vv)
#define LZO_MEMOPS_PUT_NE32(dd,vv) lzo_memops_put_ne32(dd,vv)
#endif
-#if 1 && (LZO_CC_ARMCC_GNUC || LZO_CC_CLANG || (LZO_CC_GNUC >= 0x020700ul) || LZO_CC_INTELC_GNUC || LZO_CC_LLVM || LZO_CC_PATHSCALE || LZO_CC_PGI)
-static void __attribute__((__unused__))
-#else
-__lzo_static_forceinline void
-#endif
-lzo_memops_unused_funcs(void)
+lzo_unused_funcs_impl(void, lzo_memops_unused_funcs)(void)
{
+ LZO_UNUSED_FUNC(lzo_memops_unused_funcs);
LZO_UNUSED_FUNC(lzo_memops_get_le16);
LZO_UNUSED_FUNC(lzo_memops_get_le32);
LZO_UNUSED_FUNC(lzo_memops_get_ne16);
@@ -486,7 +484,6 @@ lzo_memops_unused_funcs(void)
LZO_UNUSED_FUNC(lzo_memops_put_le32);
LZO_UNUSED_FUNC(lzo_memops_put_ne16);
LZO_UNUSED_FUNC(lzo_memops_put_ne32);
- LZO_UNUSED_FUNC(lzo_memops_unused_funcs);
}
#endif /* already included */
diff --git a/main/lzo/src/lzo_init.c b/main/lzo/src/lzo_init.c
index 4128a602..142e95cd 100644
--- a/main/lzo/src/lzo_init.c
+++ b/main/lzo/src/lzo_init.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -118,6 +118,14 @@ _lzo_config_check(void)
r &= UA_GET_LE16(p) == 0;
u.b[1] = 128;
r &= UA_GET_LE16(p) == 128;
+ u.b[2] = 129;
+ r &= UA_GET_LE16(p) == LZO_UINT16_C(0x8180);
+#if (LZO_ABI_BIG_ENDIAN)
+ r &= UA_GET_NE16(p) == LZO_UINT16_C(0x8081);
+#endif
+#if (LZO_ABI_LITTLE_ENDIAN)
+ r &= UA_GET_NE16(p) == LZO_UINT16_C(0x8180);
+#endif
u.a[0] = u.a[1] = 0;
u.b[0] = 3; u.b[5] = 4;
p = u2p(&u, 1);
@@ -125,6 +133,14 @@ _lzo_config_check(void)
r &= UA_GET_LE32(p) == 0;
u.b[1] = 128;
r &= UA_GET_LE32(p) == 128;
+ u.b[2] = 129; u.b[3] = 130; u.b[4] = 131;
+ r &= UA_GET_LE32(p) == LZO_UINT32_C(0x83828180);
+#if (LZO_ABI_BIG_ENDIAN)
+ r &= UA_GET_NE32(p) == LZO_UINT32_C(0x80818283);
+#endif
+#if (LZO_ABI_LITTLE_ENDIAN)
+ r &= UA_GET_NE32(p) == LZO_UINT32_C(0x83828180);
+#endif
#if defined(UA_GET_NE64)
u.c[0] = u.c[1] = 0;
u.b[0] = 5; u.b[9] = 6;
@@ -220,6 +236,4 @@ __lzo_init_v2(unsigned v, int s1, int s2, int s3, int s4, int s5,
#endif
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo_mchw.ch b/main/lzo/src/lzo_mchw.ch
index 8273612a..bcfec46b 100644
--- a/main/lzo/src/lzo_mchw.ch
+++ b/main/lzo/src/lzo_mchw.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -55,16 +55,16 @@ typedef struct
lzo_uint printcount; /* counter for reporting progress every 1K bytes */
/* some stats */
- unsigned long lit_bytes;
- unsigned long match_bytes;
- unsigned long rep_bytes;
- unsigned long lazy;
+ lzo_uint lit_bytes;
+ lzo_uint match_bytes;
+ lzo_uint rep_bytes;
+ lzo_uint lazy;
#if defined(LZO1B)
lzo_uint r1_m_len;
/* some stats */
- unsigned long r1_r, m3_r, m2_m, m3_m;
+ lzo_uint r1_r, m3_r, m2_m, m3_m;
#endif
#if defined(LZO1C)
@@ -72,7 +72,7 @@ typedef struct
lzo_bytep m3;
/* some stats */
- unsigned long r1_r, m3_r, m2_m, m3_m;
+ lzo_uint r1_r, m3_r, m2_m, m3_m;
#endif
#if defined(LZO1F)
@@ -80,7 +80,7 @@ typedef struct
lzo_uint r1_m_len;
/* some stats */
- unsigned long r1_r, m2_m, m3_m;
+ lzo_uint r1_r, m2_m, m3_m;
#endif
#if defined(LZO1X) || defined(LZO1Y) || defined(LZO1Z)
@@ -88,13 +88,13 @@ typedef struct
lzo_uint r1_m_len;
/* some stats */
- unsigned long m1a_m, m1b_m, m2_m, m3_m, m4_m;
- unsigned long lit1_r, lit2_r, lit3_r;
+ lzo_uint m1a_m, m1b_m, m2_m, m3_m, m4_m;
+ lzo_uint lit1_r, lit2_r, lit3_r;
#endif
#if defined(LZO2A)
/* some stats */
- unsigned long m1, m2, m3, m4;
+ lzo_uint m1, m2, m3, m4;
#endif
}
LZO_COMPRESS_T;
@@ -219,7 +219,4 @@ find_match ( LZO_COMPRESS_T *c, lzo_swd_p s,
}
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo_ptr.c b/main/lzo/src/lzo_ptr.c
index 2896b70b..38359ff2 100644
--- a/main/lzo/src/lzo_ptr.c
+++ b/main/lzo/src/lzo_ptr.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -61,18 +61,20 @@ __lzo_align_gap(const lzo_voidp ptr, lzo_uint size)
#error "__LZO_UINTPTR_T_IS_POINTER is unsupported"
#else
lzo_uintptr_t p, n;
+ if (size < 2) return 0;
p = __lzo_ptr_linear(ptr);
+#if 0
n = (((p + size - 1) / size) * size) - p;
+#else
+ if ((size & (size - 1)) != 0)
+ return 0;
+ n = size; n = ((p + n - 1) & ~(n - 1)) - p;
+#endif
#endif
-
- assert(size > 0);
assert((long)n >= 0);
assert(n <= size);
return (unsigned)n;
}
-
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo_ptr.h b/main/lzo/src/lzo_ptr.h
index 1e23548f..736c7c5f 100644
--- a/main/lzo/src/lzo_ptr.h
+++ b/main/lzo/src/lzo_ptr.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -119,7 +119,5 @@ lzo_full_align_t;
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo_str.c b/main/lzo/src/lzo_str.c
index a7ca638f..3364e8af 100644
--- a/main/lzo/src/lzo_str.c
+++ b/main/lzo/src/lzo_str.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -54,6 +54,4 @@
#undef LZOLIB_PUBLIC
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo_supp.h b/main/lzo/src/lzo_supp.h
index f7d0351e..87307f99 100644
--- a/main/lzo/src/lzo_supp.h
+++ b/main/lzo/src/lzo_supp.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -1517,7 +1517,7 @@ LZOLIB_EXTERN(int, lzo_spawnve) (int mode, const char* fn, const char* const * a
LZOCHK_ASSERT(__LZO_MASK_GEN(1u,2) == 3)
LZOCHK_ASSERT(__LZO_MASK_GEN(1u,3) == 7)
LZOCHK_ASSERT(__LZO_MASK_GEN(1u,8) == 255)
-#if (SIZEOF_INT >= 2)
+#if (LZO_SIZEOF_INT >= 2)
LZOCHK_ASSERT(__LZO_MASK_GEN(1,15) == 32767)
LZOCHK_ASSERT(__LZO_MASK_GEN(1u,16) == 0xffffU)
LZOCHK_ASSERT(__LZO_MASK_GEN(0u,16) == 0u)
@@ -1525,22 +1525,22 @@ LZOLIB_EXTERN(int, lzo_spawnve) (int mode, const char* fn, const char* const * a
LZOCHK_ASSERT(__LZO_MASK_GEN(1ul,16) == 0xffffUL)
LZOCHK_ASSERT(__LZO_MASK_GEN(0ul,16) == 0ul)
#endif
-#if (SIZEOF_INT >= 4)
+#if (LZO_SIZEOF_INT >= 4)
LZOCHK_ASSERT(__LZO_MASK_GEN(1,31) == 2147483647)
LZOCHK_ASSERT(__LZO_MASK_GEN(1u,32) == 0xffffffffU)
LZOCHK_ASSERT(__LZO_MASK_GEN(0u,32) == 0u)
#endif
-#if (SIZEOF_LONG >= 4)
+#if (LZO_SIZEOF_LONG >= 4)
LZOCHK_ASSERT(__LZO_MASK_GEN(1ul,32) == 0xffffffffUL)
LZOCHK_ASSERT(__LZO_MASK_GEN(0ul,32) == 0ul)
#endif
-#if (SIZEOF_LONG >= 8)
+#if (LZO_SIZEOF_LONG >= 8)
LZOCHK_ASSERT(__LZO_MASK_GEN(1ul,64) == 0xffffffffffffffffUL)
LZOCHK_ASSERT(__LZO_MASK_GEN(0ul,64) == 0ul)
#endif
#if !(LZO_BROKEN_INTEGRAL_PROMOTION)
- LZOCHK_ASSERT(__LZO_MASK_GEN(1u,SIZEOF_INT*8) == ~0u)
- LZOCHK_ASSERT(__LZO_MASK_GEN(1ul,SIZEOF_LONG*8) == ~0ul)
+ LZOCHK_ASSERT(__LZO_MASK_GEN(1u,LZO_SIZEOF_INT*8) == ~0u)
+ LZOCHK_ASSERT(__LZO_MASK_GEN(1ul,LZO_SIZEOF_LONG*8) == ~0ul)
#endif
#if 1
LZOCHK_ASSERT(__LZO_MASK_GEN(0,0) == 0)
@@ -1575,10 +1575,10 @@ LZOLIB_EXTERN(int, lzo_spawnve) (int mode, const char* fn, const char* const * a
LZOCHK_ASSERT((~0ul & ~0) == ~0ul)
LZOCHK_ASSERT((~0ul & ~0u) == ~0u)
#if defined(__MSDOS__) && defined(__TURBOC__) && (__TURBOC__ < 0x0150)
-#elif (SIZEOF_INT == 2)
+#elif (LZO_SIZEOF_INT == 2)
LZOCHK_ASSERT((~0l & ~0u) == 0xffffU)
LZOCHK_ASSERT((~0ul & ~0u) == 0xffffU)
-#elif (SIZEOF_INT == 4)
+#elif (LZO_SIZEOF_INT == 4)
LZOCHK_ASSERT((~0l & ~0u) == 0xffffffffU)
LZOCHK_ASSERT((~0ul & ~0u) == 0xffffffffU)
#endif
@@ -1626,8 +1626,8 @@ LZOLIB_EXTERN(int, lzo_spawnve) (int mode, const char* fn, const char* const * a
#else
LZOCHK_ASSERT(sizeof(short) == sizeof(LZO_STATIC_CAST(short, 0)))
#endif
-#if (SIZEOF_SHORT > 0)
- LZOCHK_ASSERT(sizeof(short) == SIZEOF_SHORT)
+#if (LZO_SIZEOF_SHORT > 0)
+ LZOCHK_ASSERT(sizeof(short) == LZO_SIZEOF_SHORT)
#endif
LZOCHK_ASSERT_IS_SIGNED_T(int)
LZOCHK_ASSERT_IS_UNSIGNED_T(unsigned int)
@@ -1638,8 +1638,8 @@ LZOLIB_EXTERN(int, lzo_spawnve) (int mode, const char* fn, const char* const * a
LZOCHK_ASSERT(sizeof(int) >= sizeof(short))
LZOCHK_ASSERT(sizeof(int) == sizeof(0))
LZOCHK_ASSERT(sizeof(int) == sizeof(LZO_STATIC_CAST(int, 0)))
-#if (SIZEOF_INT > 0)
- LZOCHK_ASSERT(sizeof(int) == SIZEOF_INT)
+#if (LZO_SIZEOF_INT > 0)
+ LZOCHK_ASSERT(sizeof(int) == LZO_SIZEOF_INT)
#endif
LZOCHK_ASSERT(sizeof(0) == sizeof(int))
LZOCHK_ASSERT_IS_SIGNED_T(long)
@@ -1651,15 +1651,15 @@ LZOLIB_EXTERN(int, lzo_spawnve) (int mode, const char* fn, const char* const * a
LZOCHK_ASSERT(sizeof(long) >= sizeof(int))
LZOCHK_ASSERT(sizeof(long) == sizeof(0L))
LZOCHK_ASSERT(sizeof(long) == sizeof(LZO_STATIC_CAST(long, 0)))
-#if (SIZEOF_LONG > 0)
- LZOCHK_ASSERT(sizeof(long) == SIZEOF_LONG)
+#if (LZO_SIZEOF_LONG > 0)
+ LZOCHK_ASSERT(sizeof(long) == LZO_SIZEOF_LONG)
#endif
LZOCHK_ASSERT(sizeof(0L) == sizeof(long))
LZOCHK_ASSERT_IS_UNSIGNED_T(size_t)
LZOCHK_ASSERT(sizeof(size_t) >= sizeof(int))
LZOCHK_ASSERT(sizeof(size_t) == sizeof(sizeof(0)))
-#if (SIZEOF_SIZE_T > 0)
- LZOCHK_ASSERT(sizeof(size_t) == SIZEOF_SIZE_T)
+#if (LZO_SIZEOF_SIZE_T > 0)
+ LZOCHK_ASSERT(sizeof(size_t) == LZO_SIZEOF_SIZE_T)
#endif
LZOCHK_ASSERT_IS_SIGNED_T(ptrdiff_t)
LZOCHK_ASSERT(sizeof(ptrdiff_t) >= sizeof(int))
@@ -1670,13 +1670,13 @@ LZOLIB_EXTERN(int, lzo_spawnve) (int mode, const char* fn, const char* const * a
LZOCHK_ASSERT(4 == sizeof(LZO_STATIC_CAST(char __huge*, 0) - LZO_STATIC_CAST(char __huge*, 0)))
# endif
#endif
-#if (SIZEOF_PTRDIFF_T > 0)
- LZOCHK_ASSERT(sizeof(ptrdiff_t) == SIZEOF_PTRDIFF_T)
+#if (LZO_SIZEOF_PTRDIFF_T > 0)
+ LZOCHK_ASSERT(sizeof(ptrdiff_t) == LZO_SIZEOF_PTRDIFF_T)
#endif
LZOCHK_ASSERT(sizeof(void*) >= sizeof(char*))
-#if (SIZEOF_VOID_P > 0)
- LZOCHK_ASSERT(sizeof(void*) == SIZEOF_VOID_P)
- LZOCHK_ASSERT(sizeof(char*) == SIZEOF_VOID_P)
+#if (LZO_SIZEOF_VOID_P > 0)
+ LZOCHK_ASSERT(sizeof(void*) == LZO_SIZEOF_VOID_P)
+ LZOCHK_ASSERT(sizeof(char*) == LZO_SIZEOF_VOID_P)
#endif
#if (LZO_HAVE_MM_HUGE_PTR)
LZOCHK_ASSERT(4 == sizeof(void __huge*))
@@ -1692,14 +1692,14 @@ LZOLIB_EXTERN(int, lzo_spawnve) (int mode, const char* fn, const char* const * a
#if defined(LZOCHK_CFG_PEDANTIC)
#if defined(__MSDOS__) && defined(__TURBOC__) && (__TURBOC__ < 0x0150)
#else
- LZOCHK_ASSERT((1 << (8*SIZEOF_INT-1)) < 0)
+ LZOCHK_ASSERT((1 << (8*LZO_SIZEOF_INT-1)) < 0)
#endif
#endif
- LZOCHK_ASSERT((1u << (8*SIZEOF_INT-1)) > 0)
+ LZOCHK_ASSERT((1u << (8*LZO_SIZEOF_INT-1)) > 0)
#if defined(LZOCHK_CFG_PEDANTIC)
- LZOCHK_ASSERT((1l << (8*SIZEOF_LONG-1)) < 0)
+ LZOCHK_ASSERT((1l << (8*LZO_SIZEOF_LONG-1)) < 0)
#endif
- LZOCHK_ASSERT((1ul << (8*SIZEOF_LONG-1)) > 0)
+ LZOCHK_ASSERT((1ul << (8*LZO_SIZEOF_LONG-1)) > 0)
#if defined(lzo_int16e_t)
LZOCHK_ASSERT(sizeof(lzo_int16e_t) == 2)
LZOCHK_ASSERT(sizeof(lzo_int16e_t) == LZO_SIZEOF_LZO_INT16E_T)
@@ -1852,13 +1852,13 @@ LZOLIB_EXTERN(int, lzo_spawnve) (int mode, const char* fn, const char* const * a
LZOCHK_ASSERT((LZO_UINT64_C(0xffffffffffffffff) >> 63) == 1)
LZOCHK_ASSERT((LZO_UINT64_C(0xffffffffffffffff) & ~0) == LZO_UINT64_C(0xffffffffffffffff))
LZOCHK_ASSERT((LZO_UINT64_C(0xffffffffffffffff) & ~0l) == LZO_UINT64_C(0xffffffffffffffff))
-#if (SIZEOF_INT == 4)
+#if (LZO_SIZEOF_INT == 4)
# if (LZO_CC_GNUC && (LZO_CC_GNUC < 0x020000ul))
# else
LZOCHK_ASSERT((LZO_UINT64_C(0xffffffffffffffff) & (~0u+0u)) == 0xffffffffu)
# endif
#endif
-#if (SIZEOF_LONG == 4)
+#if (LZO_SIZEOF_LONG == 4)
# if (LZO_CC_GNUC && (LZO_CC_GNUC < 0x020000ul))
# else
LZOCHK_ASSERT((LZO_UINT64_C(0xffffffffffffffff) & (~0ul+0ul)) == 0xfffffffful)
@@ -1940,13 +1940,13 @@ LZOLIB_EXTERN(int, lzo_spawnve) (int mode, const char* fn, const char* const * a
LZOCHK_ASSERT(sizeof(void (*)(void)) == 8)
#endif
#if (LZO_CC_NDPC)
-#elif (SIZEOF_INT > 1)
+#elif (LZO_SIZEOF_INT > 1)
LZOCHK_ASSERT( LZO_STATIC_CAST(int, LZO_STATIC_CAST(unsigned char, LZO_STATIC_CAST(signed char, -1))) == 255)
#endif
#if defined(LZOCHK_CFG_PEDANTIC)
#if (LZO_CC_KEILC)
#elif (LZO_CC_NDPC)
-#elif !(LZO_BROKEN_INTEGRAL_PROMOTION) && (SIZEOF_INT > 1)
+#elif !(LZO_BROKEN_INTEGRAL_PROMOTION) && (LZO_SIZEOF_INT > 1)
LZOCHK_ASSERT( ((LZO_STATIC_CAST(unsigned char, 128)) << LZO_STATIC_CAST(int, (8*sizeof(int)-8))) < 0)
#endif
#endif
diff --git a/main/lzo/src/lzo_swd.ch b/main/lzo/src/lzo_swd.ch
index 566aca45..4a73a6b4 100644
--- a/main/lzo/src/lzo_swd.ch
+++ b/main/lzo/src/lzo_swd.ch
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -237,20 +237,33 @@ void swd_insertdict(lzo_swd_p s, lzo_uint node, lzo_uint len)
//
************************************************************************/
+static void swd_exit(lzo_swd_p s);
+
static
int swd_init(lzo_swd_p s, const lzo_bytep dict, lzo_uint dict_len)
{
#if defined(__LZO_CHECKER)
+ unsigned r = 1;
s->b = (lzo_bytep) malloc(SWD_N + SWD_F + SWD_F);
s->head3 = (swd_uintp) malloc(sizeof(swd_uint) * SWD_HSIZE);
s->succ3 = (swd_uintp) malloc(sizeof(swd_uint) * (SWD_N + SWD_F));
s->best3 = (swd_uintp) malloc(sizeof(swd_uint) * (SWD_N + SWD_F));
s->llen3 = (swd_uintp) malloc(sizeof(swd_uint) * SWD_HSIZE);
+ r &= s->b != NULL;
+ r &= s->head3 != NULL;
+ r &= s->succ3 != NULL;
+ r &= s->best3 != NULL;
+ r &= s->llen3 != NULL;
#ifdef HEAD2
IF_HEAD2(s) {
s->head2 = (swd_uintp) malloc(sizeof(swd_uint) * 65536L);
+ r &= s->head2 != NULL;
}
#endif
+ if (r != 1) {
+ swd_exit(s);
+ return LZO_E_OUT_OF_MEMORY;
+ }
#endif
s->m_len = 0;
@@ -683,7 +696,4 @@ void swd_findbest(lzo_swd_p s)
#undef s_get_head3
-/*
-vi:ts=4:et
-*/
-
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/lzo_util.c b/main/lzo/src/lzo_util.c
index 1f2a4d54..2f8059f5 100644
--- a/main/lzo/src/lzo_util.c
+++ b/main/lzo/src/lzo_util.c
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -37,25 +37,27 @@
* keep this copyright string in the executable of your product.
.*/
-static const char __lzo_copyright[] =
+static const char lzo_copyright_[] =
#if !defined(__LZO_IN_MINLZO)
/* save space as some people want a really small decompressor */
LZO_VERSION_STRING;
#else
"\r\n\n"
"LZO data compression library.\n"
- "$Copyright: LZO Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer\n"
+ "$Copyright: LZO Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer\n"
"<markus@oberhumer.com>\n"
"http://www.oberhumer.com $\n\n"
"$Id: LZO version: v" LZO_VERSION_STRING ", " LZO_VERSION_DATE " $\n"
"$Info: " LZO_INFO_STRING " $\n";
#endif
+static const char lzo_version_string_[] = LZO_VERSION_STRING;
+static const char lzo_version_date_[] = LZO_VERSION_DATE;
LZO_PUBLIC(const lzo_bytep)
lzo_copyright(void)
{
- return (const lzo_bytep) __lzo_copyright;
+ return (const lzo_bytep) lzo_copyright_;
}
LZO_PUBLIC(unsigned)
@@ -67,25 +69,25 @@ lzo_version(void)
LZO_PUBLIC(const char *)
lzo_version_string(void)
{
- return LZO_VERSION_STRING;
+ return lzo_version_string_;
}
LZO_PUBLIC(const char *)
lzo_version_date(void)
{
- return LZO_VERSION_DATE;
+ return lzo_version_date_;
}
LZO_PUBLIC(const lzo_charp)
_lzo_version_string(void)
{
- return LZO_VERSION_STRING;
+ return lzo_version_string_;
}
LZO_PUBLIC(const lzo_charp)
_lzo_version_date(void)
{
- return LZO_VERSION_DATE;
+ return lzo_version_date_;
}
@@ -100,10 +102,10 @@ _lzo_version_date(void)
/* NMAX is the largest n such that 255n(n+1)/2 + (n+1)(BASE-1) <= 2^32-1 */
#define LZO_DO1(buf,i) s1 += buf[i]; s2 += s1
-#define LZO_DO2(buf,i) LZO_DO1(buf,i); LZO_DO1(buf,i+1);
-#define LZO_DO4(buf,i) LZO_DO2(buf,i); LZO_DO2(buf,i+2);
-#define LZO_DO8(buf,i) LZO_DO4(buf,i); LZO_DO4(buf,i+4);
-#define LZO_DO16(buf,i) LZO_DO8(buf,i); LZO_DO8(buf,i+8);
+#define LZO_DO2(buf,i) LZO_DO1(buf,i); LZO_DO1(buf,i+1)
+#define LZO_DO4(buf,i) LZO_DO2(buf,i); LZO_DO2(buf,i+2)
+#define LZO_DO8(buf,i) LZO_DO4(buf,i); LZO_DO4(buf,i+4)
+#define LZO_DO16(buf,i) LZO_DO8(buf,i); LZO_DO8(buf,i+8)
LZO_PUBLIC(lzo_uint32_t)
lzo_adler32(lzo_uint32_t adler, const lzo_bytep buf, lzo_uint len)
@@ -143,6 +145,4 @@ lzo_adler32(lzo_uint32_t adler, const lzo_bytep buf, lzo_uint len)
#undef LZO_DO16
-/*
-vi:ts=4:et
-*/
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/stats1a.h b/main/lzo/src/stats1a.h
index 5c2af38c..8edfd908 100644
--- a/main/lzo/src/stats1a.h
+++ b/main/lzo/src/stats1a.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -120,6 +120,5 @@ extern lzo1a_stats_t *lzo1a_stats;
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/stats1b.h b/main/lzo/src/stats1b.h
index 453e7ab3..20274cd7 100644
--- a/main/lzo/src/stats1b.h
+++ b/main/lzo/src/stats1b.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -125,6 +125,5 @@ extern lzo1b_stats_t * const lzo1b_stats;
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+
+/* vim:set ts=4 sw=4 et: */
diff --git a/main/lzo/src/stats1c.h b/main/lzo/src/stats1c.h
index 7f1f4cd9..8804c2c7 100644
--- a/main/lzo/src/stats1c.h
+++ b/main/lzo/src/stats1c.h
@@ -2,7 +2,7 @@
This file is part of the LZO real-time data compression library.
- Copyright (C) 1996-2014 Markus Franz Xaver Johannes Oberhumer
+ Copyright (C) 1996-2015 Markus Franz Xaver Johannes Oberhumer
All Rights Reserved.
The LZO library is free software; you can redistribute it and/or
@@ -44,6 +44,5 @@
#endif /* already included */
-/*
-vi:ts=4:et
-*/
+
+/* vim:set ts=4 sw=4 et: */