head 1.2; access; symbols netbsd-7-2-RELEASE:1.1.1.3 netbsd-7-1-2-RELEASE:1.1.1.3 netbsd-7-1-1-RELEASE:1.1.1.3 netbsd-7-1:1.1.1.3.0.14 netbsd-7-1-RELEASE:1.1.1.3 netbsd-7-1-RC2:1.1.1.3 netbsd-7-1-RC1:1.1.1.3 netbsd-7-0-2-RELEASE:1.1.1.3 netbsd-7-0-1-RELEASE:1.1.1.3 netbsd-7-0:1.1.1.3.0.12 netbsd-7-0-RELEASE:1.1.1.3 netbsd-7-0-RC3:1.1.1.3 netbsd-7-0-RC2:1.1.1.3 netbsd-7-0-RC1:1.1.1.3 netbsd-5-2-3-RELEASE:1.1.1.1 netbsd-5-1-5-RELEASE:1.1.1.1 netbsd-6-0-6-RELEASE:1.1.1.3 netbsd-6-1-5-RELEASE:1.1.1.3 netbsd-7:1.1.1.3.0.10 netbsd-7-base:1.1.1.3 netbsd-6-1-4-RELEASE:1.1.1.3 netbsd-6-0-5-RELEASE:1.1.1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.1.1.3 riastradh-drm2:1.1.1.3.0.8 riastradh-drm2-base:1.1.1.3 netbsd-6-1-3-RELEASE:1.1.1.3 netbsd-6-0-4-RELEASE:1.1.1.3 netbsd-5-2-2-RELEASE:1.1.1.1 netbsd-5-1-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.3 netbsd-6-0-3-RELEASE:1.1.1.3 netbsd-5-2-1-RELEASE:1.1.1.1 netbsd-5-1-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.3 xorg-server-1-10-6:1.1.1.3 netbsd-6-1:1.1.1.3.0.6 netbsd-6-0-2-RELEASE:1.1.1.3 netbsd-6-1-RELEASE:1.1.1.3 netbsd-6-1-RC4:1.1.1.3 netbsd-6-1-RC3:1.1.1.3 netbsd-6-1-RC2:1.1.1.3 netbsd-6-1-RC1:1.1.1.3 netbsd-5-2:1.1.1.1.0.8 netbsd-6-0-1-RELEASE:1.1.1.3 netbsd-5-2-RELEASE:1.1.1.1 netbsd-5-2-RC1:1.1.1.1 netbsd-6-0:1.1.1.3.0.4 netbsd-6-0-RELEASE:1.1.1.3 netbsd-6-0-RC2:1.1.1.3 netbsd-6-0-RC1:1.1.1.3 netbsd-6:1.1.1.3.0.2 netbsd-6-base:1.1.1.3 netbsd-5-1-2-RELEASE:1.1.1.1 netbsd-5-1-1-RELEASE:1.1.1.1 xorg-server-1-10-3:1.1.1.3 mrg-xorg-server-1-9-5-pre-1-10-3:1.1.1.2 xorg-server-1-9-5:1.1.1.2 xorg-server-1-9-2:1.1.1.2 netbsd-5-1:1.1.1.1.0.6 netbsd-5-1-RELEASE:1.1.1.1 netbsd-5-1-RC4:1.1.1.1 netbsd-5-1-RC3:1.1.1.1 netbsd-5-1-RC2:1.1.1.1 netbsd-5-1-RC1:1.1.1.1 netbsd-5-0-2-RELEASE:1.1.1.1 xorg-server-1-6-5:1.1.1.1 xorg-server-1-6-3:1.1.1.1 netbsd-5-0-1-RELEASE:1.1.1.1 xorg-server-1-6-2:1.1.1.1 xorg-server-1-6-1-901:1.1.1.1 netbsd-5-0:1.1.1.1.0.4 netbsd-5-0-RELEASE:1.1.1.1 netbsd-5-0-RC4:1.1.1.1 netbsd-5-0-RC3:1.1.1.1 netbsd-5-0-RC2:1.1.1.1 netbsd-5-0-RC1:1.1.1.1 netbsd-5:1.1.1.1.0.2 netbsd-5-base:1.1.1.1 xorg-server-1-4-2:1.1.1.1 xorg:1.1.1; locks; strict; comment @# @; 1.2 date 2016.08.11.00.04.28; author mrg; state dead; branches; next 1.1; commitid FQxwnZNPy5ZgOOhz; 1.1 date 2008.07.31.19.50.27; author mrg; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 2008.07.31.19.50.27; author mrg; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 2010.11.23.05.21.14; author mrg; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2011.08.02.06.56.49; author mrg; state Exp; branches; next ; desc @@ 1.2 log @first merge of netbsd changes. not tested yet. @ text @ File Index
Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

dmxarg.c File Reference

#include "dmx.h"
#include "dmxarg.h"
#include <stdio.h>
#include <string.h>

Data Structures

struct  _dmxArg

Functions

dmxArg dmxArgCreate (void)
void dmxArgFree (dmxArg a)
void dmxArgAdd (dmxArg a, const char *string)
const char * dmxArgV (dmxArg a, int item)
int dmxArgC (dmxArg a)
dmxArg dmxArgParse (const char *string)

Detailed Description

Generic comma-delimited argument processing.

Function Documentation

void dmxArgAdd dmxArg  a,
const char *  string
 

Add the string as the next argument in the dmxArg object.

int dmxArgC dmxArg  a  ) 
 

Return the number of arguments in the dmxArg object.

dmxArg dmxArgCreate void   ) 
 

Create an (externally opaque) dmxArg object.

void dmxArgFree dmxArg  a  ) 
 

Free the specified dmxArg object.

dmxArg dmxArgParse const char *  string  ) 
 

Parse a string into arguments delimited by commas. Return a new dmxArg object containing the arguments.

const char* dmxArgV dmxArg  a,
int  item
 

Return the argument number item in the dmxArg object. Arguments are 0 based. NULL will be returned for values less than 0 or equal to or greater than the number of arguments in the object.


Generated June 29, 2004 for Distributed Multihead X by doxygen 1.3.4. @ 1.1 log @Initial revision @ text @@ 1.1.1.1 log @initial import of xorg-server-1.4.2 @ text @@ 1.1.1.2 log @import xorg-server 1.9.2. important changes since 1.6.5 include: - built-in symbol visibility, default not export - fixes for various crashes - many fixes for XI2, EXA, dix, render, glx, xkb, EDID, randr, Xv, resource handling, Xext, vfb, xfree86 / vga and composite support. - fixes several memory leaks - many many documentation updates - record extension enabled - no longer looks for XF86Config files @ text @d9 10 a18 58

dmxarg.c File Reference

#include "dmx.h"
#include "dmxarg.h"
#include <stdio.h>
#include <string.h>

Data Structures

struct  _dmxArg

Defines

#define DMX_ARG_TEST   0

Functions

dmxArg dmxArgCreate (void)
void dmxArgFree (dmxArg a)
void dmxArgAdd (dmxArg a, const char *string)
const char * dmxArgV (dmxArg a, int item)
int dmxArgC (dmxArg a)
dmxArg dmxArgParse (const char *string)

Detailed Description

Generic comma-delimited argument processing.


Define Documentation

#define DMX_ARG_TEST   0
d20 2 a21 28

Function Documentation

void dmxArgAdd ( dmxArg  a,
const char *  string 
)

Add the string as the next argument in the dmxArg object.

d23 1 a23 1

References _dmxArg::argc, _dmxArg::argm, and _dmxArg::argv.

d25 1 a25 1

Referenced by dmxArgParse().

d27 1 a27 18
int dmxArgC ( dmxArg  a  ) 

Return the number of arguments in the dmxArg object.

d29 1 a29 1

References _dmxArg::argc.

d31 1 a31 1

Referenced by dmxInputInit(), and dmxPopulateLocal().

d33 8 a40 6
d42 7 a48 5 d50 2 a52 15
dmxArg dmxArgCreate ( void   ) 

Create an (externally opaque) dmxArg object.

References _dmxArg::argc, _dmxArg::argm, and _dmxArg::argv.

Referenced by dmxArgParse().

a53 5 d55 2 d58 1 d60 27 a86 3

Free the specified dmxArg object.

d88 28 a115 1

References _dmxArg::argc, and _dmxArg::argv.

d117 28 a144 1

Referenced by dmxInputInit().

d146 27 a172 13
void dmxArgFree ( dmxArg  a  ) 
d174 1 d176 19 a194 14

Parse a string into arguments delimited by commas. Return a new dmxArg object containing the arguments.

References dmxArgAdd(), and dmxArgCreate().

Referenced by dmxInputInit().

dmxArg dmxArgParse ( const char *  string  ) 
d196 4 a199 4 a201 1 d203 3 a205 2 d209 2 a210 2 d212 1 d214 14 a227 11

Return the argument number item in the dmxArg object. Arguments are 0 based. NULL will be returned for values less than 0 or equal to or greater than the number of arguments in the object.

References _dmxArg::argc, and _dmxArg::argv.

Referenced by dmxInputInit(), and dmxPopulateLocal().

@ 1.1.1.3 log @initial import of xorg-server 1.10.3. highlights include: - fixes xorg bugs 29969, 30367, 30527, 30267, 30260, 29046, 30260, 31548, 28672, 24887, 32115, 21457, 32436, 21827, 28414, 24703, 32803, 16318, 33449, 33324, 33929, 35082, 35209, 36146, 36119 - many additional NULL checks - adjustments related to input ABI 12 - *lots* of dead code removal - vga arbitrator fixes - GL fixes - EDID fixes - conversion to using asprintf() in many places - many fixes from valgrind, compiler warnings see these for more details: http://lists.freedesktop.org/archives/xorg-announce/2011-February/001612.html http://lists.freedesktop.org/archives/xorg-announce/2011-April/001646.html http://lists.freedesktop.org/archives/xorg-announce/2011-May/001675.html http://lists.freedesktop.org/archives/xorg-announce/2011-July/001710.html @ text @d9 3 a11 2
const char* dmxArgV ( dmxArg  a, int  item )
d41 1 a41 1 d44 1 a44 1 d47 6 a52 6 d54 3 a56 3

Detailed Description

Generic comma-delimited argument processing.


Define Documentation

d62 1 a62 1 d78 2 a79 2 d84 2 a85 2 d90 1 a90 1 d110 3 a112 2 d133 3 a135 2 d156 3 a158 2 d179 3 a181 2 d202 2 a203 2 d208 2 a209 2 d214 1 a214 1 a227 4
struct  _dmxArg
#define DMX_ARG_TEST   0
dmxArg dmxArgCreate (void)
void dmxArgFree (dmxArg a)
void dmxArgAdd (dmxArg a, const char *string)
const char * dmxArgV (dmxArg a, int item)
int dmxArgC (dmxArg a)
dmxArg dmxArgParse (const char *string)
#define DMX_ARG_TEST   0dmxArg  a, const char *  string dmxArg  a)void  )dmxArg  a)const char *  string)dmxArg  a, int  item