-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This gem is the only user of that library, so it is better to inline here than to depend on a separate gem that we also have to maintain.
- Loading branch information
1 parent
d4b9efe
commit bddb2cc
Showing
20 changed files
with
2,692 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,3 +34,5 @@ bower.json | |
|
||
# Ignore pow environment settings | ||
.powenv | ||
|
||
*.so |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#include <ruby.h> | ||
#include "html_tokenizer.h" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require 'mkmf' | ||
|
||
$CXXFLAGS += " -std=c++11 " | ||
$CXXFLAGS += " -g -O1 -ggdb " | ||
$CFLAGS += " -g -O1 -ggdb " | ||
|
||
if ENV['DEBUG'] | ||
$CXXFLAGS += " -DDEBUG " | ||
$CFLAGS += " -DDEBUG " | ||
end | ||
|
||
create_makefile('better_html_ext') |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#include <ruby.h> | ||
#include "tokenizer.h" | ||
#include "parser.h" | ||
|
||
static VALUE mHtmlTokenizer = Qnil; | ||
|
||
void Init_better_html_ext() | ||
{ | ||
mHtmlTokenizer = rb_define_module("HtmlTokenizer"); | ||
Init_html_tokenizer_tokenizer(mHtmlTokenizer); | ||
Init_html_tokenizer_parser(mHtmlTokenizer); | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#pragma once | ||
|
||
#ifdef DEBUG | ||
#define DBG_PRINT(msg, arg...) printf("%s:%u: " msg "\n", __FUNCTION__, __LINE__, arg); | ||
#else | ||
#define DBG_PRINT(msg, arg...) ((void)0); | ||
#endif |
Oops, something went wrong.