Skip to content

Instantly share code, notes, and snippets.

@exodist
Created August 7, 2010 21:58
Show Gist options
  • Save exodist/513242 to your computer and use it in GitHub Desktop.
Save exodist/513242 to your computer and use it in GitHub Desktop.
#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