source: sources/src/data_field.h @ 30

Last change on this file since 30 was 27, checked in by buchmann, 16 years ago

SystemCASS now uses autoconf/automake to build the API. Regression tests still
use the old Makefiles.
(thanks to Nicolas Pouillon)

The library directory no longer is "lib-arch-system". The directory now is "lib-linux". Everyone needs to pay attention about SYSTEMCASS environment variable.

Changes:

  • system header includes
  • Add includes to config.h (generated by autoconf/automake)
  • test:
    • linux preprocessor macro instead of _WIN32
    • CONFIG_DEBUG instead of DEBUG

Removes:

  • Makefile
  • guess_endianness.cc
  • guess_os.sh
  • assert.h (we now use standard assert.h)
  • Options.def
File size: 1011 bytes
Line 
1/*------------------------------------------------------------\
2|                                                             |
3| Tool    :                  systemcass                       |
4|                                                             |
5| File    :                 data_field.h                      |
6|                                                             |
7| Author  :                 Buchmann Richard                  |
8|                                                             |
9| Date    :                   03_05_2006                      |
10|                                                             |
11\------------------------------------------------------------*/
12#ifndef __DATA_FIELD_H__
13#define __DATA_FIELD_H__
14
15template<int      WIDTH,
16         int      PADDING,
17         typename data_type>
18struct val_field {
19  data_type valW:WIDTH;
20};
21
22template<int      WIDTH,
23         typename data_type>
24struct val_field<WIDTH,0,data_type> {
25  data_type valW:WIDTH;
26};
27
28#endif
29
Note: See TracBrowser for help on using the repository browser.