mirror of
https://github.com/carp-lang/Carp.git
synced 2024-09-17 16:38:14 +03:00
Handle const args.
This commit is contained in:
parent
10b5ec1ef4
commit
c4a0f51e09
@ -17,3 +17,5 @@ void dah(int *x, float* y);
|
||||
char *blah(int *x, float* y);
|
||||
|
||||
vector2 *more(vector3* in);
|
||||
|
||||
GLFWAPI GLFWwindow* glfwCreateWindow(int width, int height, const char* title, GLFWmonitor* monitor, GLFWwindow* share);
|
||||
|
@ -68,6 +68,8 @@ parseHeaderFile path src sedCommand =
|
||||
|
||||
arg :: Parsec.Parsec String () (String, Int)
|
||||
arg = do Parsec.many spaceOrTab
|
||||
_ <- Parsec.option "" $ do Parsec.string "const"
|
||||
Parsec.many spaceOrTab
|
||||
argTypeAsString <- Parsec.many1 identifierChar
|
||||
stars1 <- stars
|
||||
Parsec.many1 spaceOrTab
|
||||
|
Loading…
Reference in New Issue
Block a user