Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Macros | Enumerations | Functions
opt_types.cpp File Reference
#include "opt_types.h"
#include <rw_cmdopt.h>
#include <rw_driver.h>
#include <string.h>
Include dependency graph for opt_types.cpp:

Go to the source code of this file.

Macros

#define _RWSTD_TEST_SRC
 
#define DEFINE_HANDLERS(T)
 

Enumerations

enum  {
  rw_bool , rw_char , rw_uchar , rw_schar ,
  rw_ushrt , rw_shrt , rw_uint , rw_int ,
  rw_ulong , rw_long , rw_ullong , rw_llong ,
  rw_flt , rw_dbl , rw_ldbl , rw_wchar ,
  rw_pvoid
}
 

Functions

 DEFINE_HANDLERS (bool)
 
 DEFINE_HANDLERS (char)
 
 DEFINE_HANDLERS (schar)
 
 DEFINE_HANDLERS (uchar)
 
 DEFINE_HANDLERS (shrt)
 
 DEFINE_HANDLERS (ushrt)
 
 DEFINE_HANDLERS (int)
 
 DEFINE_HANDLERS (uint)
 
 DEFINE_HANDLERS (long)
 
 DEFINE_HANDLERS (ulong)
 
 DEFINE_HANDLERS (llong)
 
 DEFINE_HANDLERS (ullong)
 
 DEFINE_HANDLERS (flt)
 
 DEFINE_HANDLERS (dbl)
 
 DEFINE_HANDLERS (ldbl)
 
 DEFINE_HANDLERS (wchar)
 
 DEFINE_HANDLERS (pvoid)
 
int _rw_setopts_types ()
 
_TEST_EXPORT int rw_enabled (const char *name)
 

Macro Definition Documentation

◆ _RWSTD_TEST_SRC

#define _RWSTD_TEST_SRC

opt_types.cpp - definitions of type option handlers

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 1994-2006 Rogue Wave Software.

Definition at line 30 of file opt_types.cpp.

◆ DEFINE_HANDLERS

#define DEFINE_HANDLERS (   T)
Value:
static int _rw_no_ ## T (int, char *[]) { \
return _rw_enable_type (rw_ ## T, false); \
} \
static int _rw_en_ ## T (int, char *[]) { \
return _rw_enable_type (rw_ ## T, true); \
} \
typedef void unused_type /* allow a semicolon */
#define T
Definition 17.names.cpp:163

Definition at line 67 of file opt_types.cpp.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
rw_bool 
rw_char 
rw_uchar 
rw_schar 
rw_ushrt 
rw_shrt 
rw_uint 
rw_int 
rw_ulong 
rw_long 
rw_ullong 
rw_llong 
rw_flt 
rw_dbl 
rw_ldbl 
rw_wchar 
rw_pvoid 

Definition at line 39 of file opt_types.cpp.

Function Documentation

◆ _rw_setopts_types()

int _rw_setopts_types ( )

opt_types.h - declarations of type option handlers

$Id$

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Copyright 1994-2006 Rogue Wave Software.

Definition at line 96 of file opt_types.cpp.

◆ DEFINE_HANDLERS() [1/17]

DEFINE_HANDLERS ( bool  )

◆ DEFINE_HANDLERS() [2/17]

DEFINE_HANDLERS ( char  )

◆ DEFINE_HANDLERS() [3/17]

DEFINE_HANDLERS ( dbl  )

◆ DEFINE_HANDLERS() [4/17]

DEFINE_HANDLERS ( flt  )

◆ DEFINE_HANDLERS() [5/17]

DEFINE_HANDLERS ( int  )

◆ DEFINE_HANDLERS() [6/17]

DEFINE_HANDLERS ( ldbl  )

◆ DEFINE_HANDLERS() [7/17]

DEFINE_HANDLERS ( llong  )

◆ DEFINE_HANDLERS() [8/17]

DEFINE_HANDLERS ( long  )

◆ DEFINE_HANDLERS() [9/17]

DEFINE_HANDLERS ( pvoid  )

◆ DEFINE_HANDLERS() [10/17]

DEFINE_HANDLERS ( schar  )

◆ DEFINE_HANDLERS() [11/17]

DEFINE_HANDLERS ( shrt  )

◆ DEFINE_HANDLERS() [12/17]

DEFINE_HANDLERS ( uchar  )

◆ DEFINE_HANDLERS() [13/17]

DEFINE_HANDLERS ( uint  )

◆ DEFINE_HANDLERS() [14/17]

DEFINE_HANDLERS ( ullong  )

◆ DEFINE_HANDLERS() [15/17]

DEFINE_HANDLERS ( ulong  )

◆ DEFINE_HANDLERS() [16/17]

DEFINE_HANDLERS ( ushrt  )

◆ DEFINE_HANDLERS() [17/17]

DEFINE_HANDLERS ( wchar  )

◆ rw_enabled()

_TEST_EXPORT int rw_enabled ( const char *  name)

Determines whether a feature is enabled.

Parameters
nameThe name of a feature.
Returns
Returns a non-zero value if the named feature is enabled, otherwise 0.

Definition at line 138 of file opt_types.cpp.