diff options
author | stuconnolly <stuart02@gmail.com> | 2013-01-25 22:25:29 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2013-01-25 22:25:29 +0000 |
commit | 29797ba0fe84e314e51b994df04140c8621602dd (patch) | |
tree | 55df1b95e4025e3a1df3b698b9979dafaadd2c1c /Source/GeneratePreviewForURL.m | |
parent | 4faf9d57efd88123216f78b292886a5ee086e421 (diff) | |
download | sequelpro-29797ba0fe84e314e51b994df04140c8621602dd.tar.gz sequelpro-29797ba0fe84e314e51b994df04140c8621602dd.tar.bz2 sequelpro-29797ba0fe84e314e51b994df04140c8621602dd.zip |
Move the flex parsing function definitions to their own file so they're not duplicated in multiple places.
Diffstat (limited to 'Source/GeneratePreviewForURL.m')
-rw-r--r-- | Source/GeneratePreviewForURL.m | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/Source/GeneratePreviewForURL.m b/Source/GeneratePreviewForURL.m index 9b66d3e7..5261b76a 100644 --- a/Source/GeneratePreviewForURL.m +++ b/Source/GeneratePreviewForURL.m @@ -37,6 +37,7 @@ #import "SPDataAdditions.h" #import "SPEditorTokens.h" +#import "SPSyntaxParser.h" OSStatus GenerateThumbnailForURL(void *thisInterface, QLThumbnailRequestRef thumbnail, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options, CGSize maxSize); OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options); @@ -48,17 +49,6 @@ void CancelPreviewGeneration(void* thisInterface, QLPreviewRequestRef preview); This function's job is to create preview for designated file ----------------------------------------------------------------------------- */ -#pragma mark lex init - -/* -* Include all the extern variables and prototypes required for flex (used for syntax highlighting) -*/ -extern NSUInteger yylex(); -extern NSUInteger yyuoffset, yyuleng; -typedef struct yy_buffer_state *YY_BUFFER_STATE; -void yy_switch_to_buffer(YY_BUFFER_STATE); -YY_BUFFER_STATE yy_scan_string (const char *); - OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, CFURLRef url, CFStringRef contentTypeUTI, CFDictionaryRef options) { @@ -528,6 +518,5 @@ OSStatus GeneratePreviewForURL(void *thisInterface, QLPreviewRequestRef preview, void CancelPreviewGeneration(void* thisInterface, QLPreviewRequestRef preview) { - // implement only if supported + // Implement only if supported } - |