-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Project 1] Fix a bug related list and add comments and add documenta…
…tion.
- Loading branch information
Showing
13 changed files
with
103 additions
and
18 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
Binary file not shown.
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 |
---|---|---|
@@ -1,10 +1,10 @@ | ||
SOURCES=command.c history.c list.c main.c memory.c opcode.c | ||
SOURCES=command.c history.c list.c 20141500.c memory.c opcode.c | ||
TARGET=20141500.out | ||
|
||
all: $(TARGET) | ||
|
||
$(TARGET): $(SOURCES) | ||
gcc -std=gnu99 $(SOURCES) -o $(TARGET) | ||
gcc -std=gnu99 -W -Wall $(SOURCES) -o $(TARGET) | ||
|
||
clean: | ||
rm -f $(TARGET) |
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 |
---|---|---|
@@ -1,13 +1,17 @@ | ||
#ifndef __HISTORY_H__ | ||
#define __HISTORY_H__ | ||
|
||
/* history manager는 오직 factory 함수를 통해서만 얻을 수 있다. */ | ||
struct history_manager; | ||
|
||
/* history manager를 생성하고 소멸시키는 함수들 */ | ||
struct history_manager *history_manager_construct (); | ||
void history_manager_destroy (struct history_manager *manager); | ||
|
||
/* history manager에 history를 추가하는 함수 */ | ||
void history_insert (struct history_manager *manager, const char *command_str); | ||
|
||
/* history manager내에 있는 history 들을 출력하는 함수 */ | ||
void history_print (struct history_manager *manager, const char *cur_command_str); | ||
|
||
#endif |
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
Oops, something went wrong.