Skip to content

Commit

Permalink
Adding the code that explains the movie Inception in 'C' language and…
Browse files Browse the repository at this point in the history
… tries to implement INCEPTION movie concept programmatically
  • Loading branch information
karthick18 committed Jul 24, 2010
0 parents commit ddc5968
Show file tree
Hide file tree
Showing 6 changed files with 1,611 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Makefile
@@ -0,0 +1,17 @@
CC := gcc
CFLAGS := -g -Wall -m32
SRC_FILES := $(wildcard *.c)
OBJ_FILES := $(SRC_FILES:%.c=%.o)
LDLIBS := -lpthread -lrt
TARGET := inception

all: $(TARGET)

$(TARGET): $(OBJ_FILES)
$(CC) $(CFLAGS) -g -o $@ $^ $(LDLIBS)

%.o:%.c
$(CC) $(CFLAGS) -c -o $@ $<

clean:
rm -f $(OBJ_FILES) *~ $(TARGET)
Binary file added inception
Binary file not shown.

3 comments on commit ddc5968

@karthick18
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What makes you think I am not the original author of list.h? Kidding :-)
The seeds of list_head struct,list_add/del, are a bit like linux kernel list.h but broadly the dup_list,list_dump,list_destroy,etc. are completely mine.
Feel free to use it as its GPL. If you want me to change the license, I can even do that :-). In short, just take it.

@dolmen
Copy link

@dolmen dolmen commented on ddc5968 Aug 11, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. It would be better to write this inside the file.
As this is "a bit like Linux kernel list.h" I will avoid it and try to find a clearly BSD-licensed one.

@karthick18
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok. But check linux kernel list.h and see if there is any resemblance to the core functions above. If you find any,let me know. I quit :-)

Please sign in to comment.