mirror of
https://github.com/reactos/reactos.git
synced 2025-02-24 17:34:57 +00:00
the code does, in fact, handle bitfields correctly.
svn path=/trunk/; revision=6540
This commit is contained in:
parent
1b7b04aa07
commit
0b63c2c64d
3 changed files with 19 additions and 6 deletions
|
@ -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 )
|
||||
{
|
||||
// FIXME - handle bitfields properly
|
||||
// NOTE - Test with bitfields, I think this code will actually handle them properly...
|
||||
depend ( tokens[off++], dependencies );
|
||||
int done = tokens.size();
|
||||
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
|
||||
|
@ -22,11 +22,11 @@
|
|||
#ifndef __INTERNAL_PSAPI_H_INCLUDED__
|
||||
#define __INTERNAL_PSAPI_H_INCLUDED__
|
||||
|
||||
typedef struct foo_
|
||||
typedef struct tagFOO
|
||||
{
|
||||
int lonibble : 4;
|
||||
int hinibble : 4;
|
||||
} foo;
|
||||
INT lonibble : 4;
|
||||
INT hinibble : 4;
|
||||
} FOO, *PFOO, FAR *LPFOO;
|
||||
|
||||
/* INCLUDES */
|
||||
#define NTOS_MODE_USER
|
||||
|
|
|
@ -122,6 +122,19 @@ void tokenize ( const string& text, vector<string>& tokens )
|
|||
tokens.push_back ( ";" );
|
||||
p++;
|
||||
break;
|
||||
case ':':
|
||||
switch ( p[1] )
|
||||
{
|
||||
case ':':
|
||||
tokens.push_back ( string ( p, 2 ) );
|
||||
p += 2;
|
||||
break;
|
||||
default:
|
||||
tokens.push_back ( ":" );
|
||||
p++;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case '*':
|
||||
switch ( p[1] )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue