Created
August 7, 2010 21:58
-
-
Save exodist/513242 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "Pattern.h" | |
#include "PatternNode.h" | |
#include <stdlib.h> | |
struct Pattern { | |
PatternNode *start; | |
char *pattern_string; | |
short match_case; | |
}; | |
Pattern *compile_pattern( char *string, Collection *collection ) { | |
Pattern *p = malloc(sizeof(Pattern)); | |
*p.pattern_string = string; | |
return p; | |
} | |
Pattern.c: In function 'compile_pattern': | |
Pattern.c:13: error: request for member 'pattern_string' in something not a structure or union |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment