annotate libdvdcss/common.h @ 36222:5bff1fc3e7e5

vo_gl_tiled: ensure variables are always initialized. This applies in particular if the backend isn't X11 or W32.
author reimar
date Sun, 09 Jun 2013 18:33:24 +0000
parents 691431d2289e
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
1 /*****************************************************************************
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
2 * common.h: common definitions
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
3 * Collection of useful common types and macros definitions
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
4 *****************************************************************************
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
5 * Copyright (C) 1998, 1999, 2000 VideoLAN
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
6 *
27462
60bd1a7f3fc6 Sync libdvdcss with upstream version 1.2.10.
diego
parents: 20730
diff changeset
7 * Authors: Sam Hocevar <sam@via.ecp.fr>
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
8 * Vincent Seguin <seguin@via.ecp.fr>
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
9 * Gildas Bazin <gbazin@netcourrier.com>
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
10 *
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
11 * This program is free software; you can redistribute it and/or modify
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
12 * it under the terms of the GNU General Public License as published by
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
13 * the Free Software Foundation; either version 2 of the License, or
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
14 * (at your option) any later version.
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
15 *
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
16 * This program is distributed in the hope that it will be useful,
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
19 * GNU General Public License for more details.
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
20 *
31098
9e9595c779cf libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents: 27462
diff changeset
21 * You should have received a copy of the GNU General Public License along
9e9595c779cf libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents: 27462
diff changeset
22 * with libdvdcss; if not, write to the Free Software Foundation, Inc.,
9e9595c779cf libdvdcss: cosmetics: Fix FSF address and program name in license headers.
diego
parents: 27462
diff changeset
23 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
24 *****************************************************************************/
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
25
32265
cda66f57f7a5 Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents: 31098
diff changeset
26 #ifndef DVDCSS_COMMON_H
cda66f57f7a5 Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents: 31098
diff changeset
27 #define DVDCSS_COMMON_H
cda66f57f7a5 Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents: 31098
diff changeset
28
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
29 /*****************************************************************************
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
30 * Basic types definitions
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
31 *****************************************************************************/
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
32 #if defined( HAVE_STDINT_H )
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
33 # include <stdint.h>
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
34 #elif defined( HAVE_INTTYPES_H )
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
35 # include <inttypes.h>
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
36 #else
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
37 /* Fallback types (very x86-centric, sorry) */
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
38 typedef unsigned char uint8_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
39 typedef signed char int8_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
40 typedef unsigned int uint32_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
41 typedef signed int int32_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
42 #endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
43
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
44 #if defined( WIN32 )
35952
691431d2289e Update internal libdvdcss to Git revision 39e0e2b.
diego
parents: 34179
diff changeset
45 # include <io.h> /* _lseeki64 */
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
46
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
47 # ifndef PATH_MAX
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
48 # define PATH_MAX MAX_PATH
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
49 # endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
50
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
51 /* several type definitions */
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
52 # if defined( __MINGW32__ )
20730
66c2f233ccff Fix linking on Cygwin and remove nonsense lseek64 --> lseek indirection,
diego
parents: 20613
diff changeset
53 # define lseek _lseeki64
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
54 # if !defined( _OFF_T_ )
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
55 typedef long long _off_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
56 typedef _off_t off_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
57 # define _OFF_T_
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
58 # else
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
59 # define off_t long long
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
60 # endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
61 # endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
62
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
63 # if defined( _MSC_VER )
20730
66c2f233ccff Fix linking on Cygwin and remove nonsense lseek64 --> lseek indirection,
diego
parents: 20613
diff changeset
64 # define lseek _lseeki64
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
65 # if !defined( _OFF_T_DEFINED )
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
66 typedef __int64 off_t;
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
67 # define _OFF_T_DEFINED
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
68 # else
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
69 # define off_t __int64
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
70 # endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
71 # define stat _stati64
35952
691431d2289e Update internal libdvdcss to Git revision 39e0e2b.
diego
parents: 34179
diff changeset
72 # define snprintf _snprintf
20613
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
73 # endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
74
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
75 #endif
e68f255d7d64 Move libdvdcss into its own subdirectory.
diego
parents:
diff changeset
76
32265
cda66f57f7a5 Sync some minor changes from upstream libdvdcss, up to r237.
diego
parents: 31098
diff changeset
77 #endif /* DVDCSS_COMMON_H */