File: version-cmp_8c.tex

package info (click to toggle)
discover 2.1.2-7
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 6,244 kB
  • ctags: 2,776
  • sloc: sh: 8,115; ansic: 7,275; xml: 1,809; makefile: 726
file content (87 lines) | stat: -rw-r--r-- 2,794 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
\section{/home/pere/src/debiancvs/pkg-discover/discover/trunk/lib/version-cmp.c File Reference}
\label{version-cmp_8c}\index{/home/pere/src/debiancvs/pkg-discover/discover/trunk/lib/version-cmp.c@{/home/pere/src/debiancvs/pkg-discover/discover/trunk/lib/version-cmp.c}}
Version comparison functions. 

{\tt \#include \char`\"{}config.h\char`\"{}}\par
{\tt \#include $<$assert.h$>$}\par
{\tt \#include $<$ctype.h$>$}\par
{\tt \#include $<$stdio.h$>$}\par
{\tt \#include $<$stdlib.h$>$}\par
{\tt \#include $<$string.h$>$}\par
{\tt \#include $<$discover/discover.h$>$}\par
{\tt \#include $<$discover/utils.h$>$}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define {\bf MAXBUFLEN}~256
\end{CompactItemize}
\subsection*{Typedefs}
\begin{CompactItemize}
\item 
typedef enum {\bf range\_\-states} {\bf range\_\-state}
\end{CompactItemize}
\subsection*{Enumerations}
\begin{CompactItemize}
\item 
enum {\bf range\_\-states} \{ \par
{\bf START}, 
{\bf OPEN}, 
{\bf VERSION1}, 
{\bf VERSEP1}, 
\par
{\bf PAUSE1}, 
{\bf SEPARATOR}, 
{\bf I}, 
{\bf N}, 
\par
{\bf F}, 
{\bf VERSION2}, 
{\bf VERSEP2}, 
{\bf PAUSE2}, 
\par
{\bf CLOSE}, 
{\bf ERROR}
 \}
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
int {\bf discover\_\-xml\_\-version\_\-cmp} (char $\ast$range, char $\ast$version, {\bf discover\_\-error\_\-t} $\ast$status)
\end{CompactItemize}


\subsection{Detailed Description}
Version comparison functions. 

This file holds the routines needed to process version data in the XML file. This version data is used to look for information pertaining to a particular version of the OS/software requiring that information. 

Definition in file {\bf version-cmp.c}.

\subsection{Define Documentation}
\index{version-cmp.c@{version-cmp.c}!MAXBUFLEN@{MAXBUFLEN}}
\index{MAXBUFLEN@{MAXBUFLEN}!version-cmp.c@{version-cmp.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define MAXBUFLEN~256}\label{version-cmp_8c_a0}


This probably shouldn't be here; it's bad practice (3.0, right). 

Definition at line 55 of file version-cmp.c.

\subsection{Typedef Documentation}
\index{version-cmp.c@{version-cmp.c}!range_state@{range\_\-state}}
\index{range_state@{range\_\-state}!version-cmp.c@{version-cmp.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}typedef enum {\bf range\_\-states}
 {\bf range\_\-state}}\label{version-cmp_8c_a1}


This is used as a placeholder while comparing versions of modules. 

\subsection{Enumeration Type Documentation}
\index{version-cmp.c@{version-cmp.c}!range_states@{range\_\-states}}
\index{range_states@{range\_\-states}!version-cmp.c@{version-cmp.c}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf range\_\-states}}\label{version-cmp_8c_a21}


Version placeholders 

Definition at line 58 of file version-cmp.c.