iASL: Fix non-ANSI // comments in main parser file.

convert to /* */ comments.
This commit is contained in:
Robert Moore 2012-07-19 14:18:07 -07:00
parent 1b021cb489
commit 5e3ebfccb5

View File

@ -632,7 +632,7 @@ void * AslLocalAllocate (unsigned int Size);
%type <n> SwitchTerm
%type <n> UnloadTerm
%type <n> WhileTerm
//%type <n> CaseTermList
/* %type <n> CaseTermList */
/* Type 2 opcodes */
@ -2911,10 +2911,10 @@ ExtendedSpaceTerm
FixedDmaTerm
: PARSEOP_FIXEDDMA '(' {$<n>$ = TrCreateLeafNode (PARSEOP_FIXEDDMA);}
WordConstExpr // 04: DMA RequestLines
',' WordConstExpr // 06: DMA Channels
OptionalXferSize // 07: DMA TransferSize
OptionalNameString // 08: DescriptorName
WordConstExpr /* 04: DMA RequestLines */
',' WordConstExpr /* 06: DMA Channels */
OptionalXferSize /* 07: DMA TransferSize */
OptionalNameString /* 08: DescriptorName */
')' {$$ = TrLinkChildren ($<n>3,4,$4,$6,$7,$8);}
| PARSEOP_FIXEDDMA '('
error ')' {$$ = AslDoError(); yyclearin;}
@ -2932,16 +2932,16 @@ FixedIOTerm
GpioIntTerm
: PARSEOP_GPIO_INT '(' {$<n>$ = TrCreateLeafNode (PARSEOP_GPIO_INT);}
InterruptTypeKeyword // 04: InterruptType
',' InterruptLevel // 06: InterruptLevel
OptionalShareType // 07: SharedType
',' PinConfigByte // 09: PinConfig
OptionalWordConstExpr // 10: DebounceTimeout
',' StringData // 12: ResourceSource
OptionalByteConstExpr // 13: ResourceSourceIndex
OptionalResourceType // 14: ResourceType
OptionalNameString // 15: DescriptorName
OptionalBuffer_Last // 16: VendorData
InterruptTypeKeyword /* 04: InterruptType */
',' InterruptLevel /* 06: InterruptLevel */
OptionalShareType /* 07: SharedType */
',' PinConfigByte /* 09: PinConfig */
OptionalWordConstExpr /* 10: DebounceTimeout */
',' StringData /* 12: ResourceSource */
OptionalByteConstExpr /* 13: ResourceSourceIndex */
OptionalResourceType /* 14: ResourceType */
OptionalNameString /* 15: DescriptorName */
OptionalBuffer_Last /* 16: VendorData */
')' '{'
DWordConstExpr '}' {$$ = TrLinkChildren ($<n>3,11,$4,$6,$7,$9,$10,$12,$13,$14,$15,$16,$19);}
| PARSEOP_GPIO_INT '('
@ -2950,16 +2950,16 @@ GpioIntTerm
GpioIoTerm
: PARSEOP_GPIO_IO '(' {$<n>$ = TrCreateLeafNode (PARSEOP_GPIO_IO);}
OptionalShareType_First // 04: SharedType
',' PinConfigByte // 06: PinConfig
OptionalWordConstExpr // 07: DebounceTimeout
OptionalWordConstExpr // 08: DriveStrength
OptionalIoRestriction // 09: IoRestriction
',' StringData // 11: ResourceSource
OptionalByteConstExpr // 12: ResourceSourceIndex
OptionalResourceType // 13: ResourceType
OptionalNameString // 14: DescriptorName
OptionalBuffer_Last // 15: VendorData
OptionalShareType_First /* 04: SharedType */
',' PinConfigByte /* 06: PinConfig */
OptionalWordConstExpr /* 07: DebounceTimeout */
OptionalWordConstExpr /* 08: DriveStrength */
OptionalIoRestriction /* 09: IoRestriction */
',' StringData /* 11: ResourceSource */
OptionalByteConstExpr /* 12: ResourceSourceIndex */
OptionalResourceType /* 13: ResourceType */
OptionalNameString /* 14: DescriptorName */
OptionalBuffer_Last /* 15: VendorData */
')' '{'
DWordList '}' {$$ = TrLinkChildren ($<n>3,11,$4,$6,$7,$8,$9,$11,$12,$13,$14,$15,$18);}
| PARSEOP_GPIO_IO '('
@ -2968,15 +2968,15 @@ GpioIoTerm
I2cSerialBusTerm
: PARSEOP_I2C_SERIALBUS '(' {$<n>$ = TrCreateLeafNode (PARSEOP_I2C_SERIALBUS);}
WordConstExpr // 04: SlaveAddress
OptionalSlaveMode // 05: SlaveMode
',' DWordConstExpr // 07: ConnectionSpeed
OptionalAddressingMode // 08: AddressingMode
',' StringData // 10: ResourceSource
OptionalByteConstExpr // 11: ResourceSourceIndex
OptionalResourceType // 12: ResourceType
OptionalNameString // 13: DescriptorName
OptionalBuffer_Last // 14: VendorData
WordConstExpr /* 04: SlaveAddress */
OptionalSlaveMode /* 05: SlaveMode */
',' DWordConstExpr /* 07: ConnectionSpeed */
OptionalAddressingMode /* 08: AddressingMode */
',' StringData /* 10: ResourceSource */
OptionalByteConstExpr /* 11: ResourceSourceIndex */
OptionalResourceType /* 12: ResourceType */
OptionalNameString /* 13: DescriptorName */
OptionalBuffer_Last /* 14: VendorData */
')' {$$ = TrLinkChildren ($<n>3,9,$4,$5,$7,$8,$10,$11,$12,$13,$14);}
| PARSEOP_I2C_SERIALBUS '('
error ')' {$$ = AslDoError(); yyclearin;}
@ -3149,19 +3149,19 @@ RegisterTerm
SpiSerialBusTerm
: PARSEOP_SPI_SERIALBUS '(' {$<n>$ = TrCreateLeafNode (PARSEOP_SPI_SERIALBUS);}
WordConstExpr // 04: DeviceSelection
OptionalDevicePolarity // 05: DevicePolarity
OptionalWireMode // 06: WireMode
',' ByteConstExpr // 08: DataBitLength
OptionalSlaveMode // 09: SlaveMode
',' DWordConstExpr // 11: ConnectionSpeed
',' ClockPolarityKeyword // 13: ClockPolarity
',' ClockPhaseKeyword // 15: ClockPhase
',' StringData // 17: ResourceSource
OptionalByteConstExpr // 18: ResourceSourceIndex
OptionalResourceType // 19: ResourceType
OptionalNameString // 20: DescriptorName
OptionalBuffer_Last // 21: VendorData
WordConstExpr /* 04: DeviceSelection */
OptionalDevicePolarity /* 05: DevicePolarity */
OptionalWireMode /* 06: WireMode */
',' ByteConstExpr /* 08: DataBitLength */
OptionalSlaveMode /* 09: SlaveMode */
',' DWordConstExpr /* 11: ConnectionSpeed */
',' ClockPolarityKeyword /* 13: ClockPolarity */
',' ClockPhaseKeyword /* 15: ClockPhase */
',' StringData /* 17: ResourceSource */
OptionalByteConstExpr /* 18: ResourceSourceIndex */
OptionalResourceType /* 19: ResourceType */
OptionalNameString /* 20: DescriptorName */
OptionalBuffer_Last /* 21: VendorData */
')' {$$ = TrLinkChildren ($<n>3,13,$4,$5,$6,$8,$9,$11,$13,$15,$17,$18,$19,$20,$21);}
| PARSEOP_SPI_SERIALBUS '('
error ')' {$$ = AslDoError(); yyclearin;}
@ -3187,20 +3187,20 @@ StartDependentFnTerm
UartSerialBusTerm
: PARSEOP_UART_SERIALBUS '(' {$<n>$ = TrCreateLeafNode (PARSEOP_UART_SERIALBUS);}
DWordConstExpr // 04: ConnectionSpeed
OptionalBitsPerByte // 05: BitsPerByte
OptionalStopBits // 06: StopBits
',' ByteConstExpr // 08: LinesInUse
OptionalEndian // 09: Endianess
OptionalParityType // 10: Parity
OptionalFlowControl // 11: FlowControl
',' WordConstExpr // 13: Rx BufferSize
',' WordConstExpr // 15: Tx BufferSize
',' StringData // 17: ResourceSource
OptionalByteConstExpr // 18: ResourceSourceIndex
OptionalResourceType // 19: ResourceType
OptionalNameString // 20: DescriptorName
OptionalBuffer_Last // 21: VendorData
DWordConstExpr /* 04: ConnectionSpeed */
OptionalBitsPerByte /* 05: BitsPerByte */
OptionalStopBits /* 06: StopBits */
',' ByteConstExpr /* 08: LinesInUse */
OptionalEndian /* 09: Endianess */
OptionalParityType /* 10: Parity */
OptionalFlowControl /* 11: FlowControl */
',' WordConstExpr /* 13: Rx BufferSize */
',' WordConstExpr /* 15: Tx BufferSize */
',' StringData /* 17: ResourceSource */
OptionalByteConstExpr /* 18: ResourceSourceIndex */
OptionalResourceType /* 19: ResourceType */
OptionalNameString /* 20: DescriptorName */
OptionalBuffer_Last /* 21: VendorData */
')' {$$ = TrLinkChildren ($<n>3,14,$4,$5,$6,$8,$9,$10,$11,$13,$15,$17,$18,$19,$20,$21);}
| PARSEOP_UART_SERIALBUS '('
error ')' {$$ = AslDoError(); yyclearin;}