From 28874e21da0034ab4f3d7feb964c23e885b44b87 Mon Sep 17 00:00:00 2001 From: iphydf Date: Wed, 27 Dec 2023 00:34:54 +0000 Subject: [PATCH] fix: Allow SOCKET type for winsock. --- src/Language/Cimple/Lexer.x | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Language/Cimple/Lexer.x b/src/Language/Cimple/Lexer.x index 6a3bdca..a036bf9 100644 --- a/src/Language/Cimple/Lexer.x +++ b/src/Language/Cimple/Lexer.x @@ -66,6 +66,7 @@ tokens :- <0> "IP_ADAPTER_INFO" { mkL IdStdType } <0> "LPTSTR" { mkL IdStdType } <0> "u_long" { mkL IdStdType } +<0> "SOCKET" { mkL IdStdType } <0> "WSADATA" { mkL IdStdType } -- System struct types.