mirror of
https://github.com/reactos/reactos.git
synced 2024-09-14 06:42:52 +00:00
the code does, in fact, handle bitfields correctly.
svn path=/trunk/; revision=6540
This commit is contained in:
parent
1b7b04aa07
commit
0b63c2c64d
|
@ -261,7 +261,7 @@ void depend ( const string& ident, vector<string>& dependencies )
|
||||||
|
|
||||||
int parse_variable ( const vector<string>& tokens, int off, vector<string>& names, vector<string>& dependencies )
|
int parse_variable ( const vector<string>& tokens, int off, vector<string>& names, vector<string>& dependencies )
|
||||||
{
|
{
|
||||||
// FIXME - handle bitfields properly
|
// NOTE - Test with bitfields, I think this code will actually handle them properly...
|
||||||
depend ( tokens[off++], dependencies );
|
depend ( tokens[off++], dependencies );
|
||||||
int done = tokens.size();
|
int done = tokens.size();
|
||||||
while ( off < done && tokens[off] != ";" )
|
while ( off < done && tokens[off] != ";" )
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: test.h,v 1.1 2003/11/05 20:24:23 royce Exp $
|
/* $Id: test.h,v 1.2 2003/11/06 02:50:12 royce Exp $
|
||||||
*/
|
*/
|
||||||
/*
|
/*
|
||||||
* test.h
|
* test.h
|
||||||
|
@ -22,11 +22,11 @@
|
||||||
#ifndef __INTERNAL_PSAPI_H_INCLUDED__
|
#ifndef __INTERNAL_PSAPI_H_INCLUDED__
|
||||||
#define __INTERNAL_PSAPI_H_INCLUDED__
|
#define __INTERNAL_PSAPI_H_INCLUDED__
|
||||||
|
|
||||||
typedef struct foo_
|
typedef struct tagFOO
|
||||||
{
|
{
|
||||||
int lonibble : 4;
|
INT lonibble : 4;
|
||||||
int hinibble : 4;
|
INT hinibble : 4;
|
||||||
} foo;
|
} FOO, *PFOO, FAR *LPFOO;
|
||||||
|
|
||||||
/* INCLUDES */
|
/* INCLUDES */
|
||||||
#define NTOS_MODE_USER
|
#define NTOS_MODE_USER
|
||||||
|
|
|
@ -122,6 +122,19 @@ void tokenize ( const string& text, vector<string>& tokens )
|
||||||
tokens.push_back ( ";" );
|
tokens.push_back ( ";" );
|
||||||
p++;
|
p++;
|
||||||
break;
|
break;
|
||||||
|
case ':':
|
||||||
|
switch ( p[1] )
|
||||||
|
{
|
||||||
|
case ':':
|
||||||
|
tokens.push_back ( string ( p, 2 ) );
|
||||||
|
p += 2;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
tokens.push_back ( ":" );
|
||||||
|
p++;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case '*':
|
case '*':
|
||||||
switch ( p[1] )
|
switch ( p[1] )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue