Skip to content

Commit

Permalink
Patches to allow this to compile fully within Eucalyptus (should be h…
Browse files Browse the repository at this point in the history
…armless outside).
  • Loading branch information
th-in-gs committed May 9, 2009
1 parent 3df035a commit 7536885
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ext/cocoa/src/SyckInput.m
Expand Up @@ -4,7 +4,7 @@
#import "YAMLCocoaCategories.h"
#import <syck.h>

void cocoa_syck_error_handler( SyckParser *p, char *msg )
void cocoa_syck_error_handler( SyckParser *p, const char *msg )
{
NSLog(@"syck error:%s position:(%d, %d)", msg, p->linect, p->cursor - p->lineptr);
}
Expand Down
5 changes: 5 additions & 0 deletions lib/bytecode.c
Expand Up @@ -8,7 +8,12 @@
* Copyright (C) 2003 why the lucky stiff
*/
#include "syck.h"

#if GRAM_FILES_HAVE_TAB_SUFFIX
#include "gram.tab.h"
#else
#include "gram.h"
#endif

#define QUOTELEN 128

Expand Down
5 changes: 5 additions & 0 deletions lib/bytecode.re
Expand Up @@ -7,7 +7,12 @@
* Copyright (C) 2003 why the lucky stiff
*/
#include "syck.h"

#if GRAM_FILES_HAVE_TAB_SUFFIX
#include "gram.tab.h"
#else
#include "gram.h"
#endif

#define QUOTELEN 128

Expand Down
4 changes: 4 additions & 0 deletions lib/sycklex.h
@@ -1,3 +1,7 @@
#if GRAM_FILES_HAVE_TAB_SUFFIX
#include "gram.tab.h"
#else
#include "gram.h"
#endif

int sycklex( YYSTYPE *sycklval, SyckParser *parser );
5 changes: 5 additions & 0 deletions lib/token.c
Expand Up @@ -8,7 +8,12 @@
* Copyright (C) 2003 why the lucky stiff
*/
#include "syck.h"

#if GRAM_FILES_HAVE_TAB_SUFFIX
#include "gram.tab.h"
#else
#include "gram.h"
#endif

/*
* Allocate quoted strings in chunks
Expand Down
5 changes: 5 additions & 0 deletions lib/token.re
Expand Up @@ -7,7 +7,12 @@
* Copyright (C) 2003 why the lucky stiff
*/
#include "syck.h"

#if GRAM_FILES_HAVE_TAB_SUFFIX
#include "gram.tab.h"
#else
#include "gram.h"
#endif

/*
* Allocate quoted strings in chunks
Expand Down

0 comments on commit 7536885

Please sign in to comment.