Skip to content

Commit

Permalink
get rid of libscript
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamhm committed Aug 2, 2010
1 parent 76447d2 commit 048efe4
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 150 deletions.
2 changes: 0 additions & 2 deletions Buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -535,8 +535,6 @@ void Buffer_breakLine(Buffer* this) {
Undo_endGroup(this->undo, this->x, this->y);
}

Script_hook("onBreakLine");

this->lastKey = 0;
}

Expand Down
1 change: 0 additions & 1 deletion Highlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,6 @@ bool Highlight_readHighlightFile(ReadHighlightFileArgs* args, char* name) {
// FILES match succeeded. Skip over other FILES section,
// waiting for RULES section
if (String_eq(tokens[0], "RULES") && ntokens == 1) {
Script_loadExtensions(name);
state = 4;
}
break;
Expand Down
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ bin_PROGRAMS = dit

my_dit_C_sources = dit.c Buffer.c CRT.c Clipboard.c DebugMemory.c Field.c \
FileReader.c FunctionBar.c Hashtable.c Highlight.c Line.c List.c Object.c \
Panel.c PatternMatcher.c Pool.c RichString.c ScreenManager.c Script.c \
Panel.c PatternMatcher.c Pool.c RichString.c ScreenManager.c \
Stack.c String.c StringBuffer.c TabManager.c Undo.c Vector.c Files.c
BUILT_SOURCES = Prototypes.h Structures.h

Expand Down
141 changes: 0 additions & 141 deletions Script.c

This file was deleted.

3 changes: 1 addition & 2 deletions TODO
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
* mouse support
* populate README file with text from the website
* make libscript optional
* autoindent in TABS mode
* configurable 'whole word' in highlighting ("\tblabla" in C)
* centralize color configuration
3 changes: 0 additions & 3 deletions dit.c
Original file line number Diff line number Diff line change
Expand Up @@ -743,8 +743,6 @@ int main(int argc, char** argv) {
Dit_registerActions();
Dit_parseBindings(keys);
Hashtable_delete(Dit_actions);

Script_init();

TabManager* tabs = TabManager_new(0, 0, COLS, LINES, 20);
tabs->defaultTabWidth = tabWidth;
Expand Down Expand Up @@ -774,7 +772,6 @@ int main(int argc, char** argv) {
mvhline(LINES - 1, 0, ' ', tabs->tabOffset);

Buffer* buffer = TabManager_draw(tabs, COLS);
Script_setCurrentBuffer(buffer);
getyx(stdscr, y, x);

attrset(CRT_colors[TabColor]);
Expand Down

0 comments on commit 048efe4

Please sign in to comment.