T. Meissner
1ad6f920d0
added memory.h & memory.c with safeFree macro as safe wrapper around the free() function; use safeFree() instead of free()
10 years ago
T. Meissner
45f57c91e1
added linker option for math library; added dict_use to all target
10 years ago
T. Meissner
d6aba8cb68
return value of realloc now written in tmp variable for proper handling of realloc errors
10 years ago
T. Meissner
290f6bbe4e
fixed memory leak by adding free of in->pair array in dictionary_free()
10 years ago
T. Meissner
95af873851
add new example of a (simple & not so safe) dictionary implementation from chapter 11
10 years ago
T. Meissner
32b0ddf6b6
add comment
10 years ago
T. Meissner
523e4b2aec
added another example of extending a structure with nested anon. structs, nested in a anon. union for direct access of the nested struct
10 years ago
T. Meissner
055bad853d
moved source files in sub dirs for chapters; split Makefile for chapter10 & chapter11 sources
10 years ago
T. Meissner
91bdbb65e2
added example of extending a structure with nested naynonymous declarations
10 years ago
T. Meissner
ead450fd8b
refactoring of this_row() funct. by using pointer to string literals
10 years ago
T. Meissner
66e5b090c1
add removing of dSYM folder in clean target
10 years ago
T. Meissner
f1af7fddc0
new target 'check' to run cppcheck on all *.c files
10 years ago
T. Meissner
466ac5fbde
add new example for designated initializers (ch. 10)
10 years ago
T. Meissner
3865f438d3
add Makefile
10 years ago
T. Meissner
1cd4dcfbe7
add new example of simple 'function' overloading using C11 _Generic keyword
10 years ago
T. Meissner
37c2df71dd
add check for return value of asprintf()
10 years ago
T. Meissner
5d15239439
fixed order of includes; added _GNU_SOURCE define to succ. compile under Linux; through away return value of closedir()
10 years ago
T. Meissner
215c899318
added 21st century c link
10 years ago
T. Meissner
88ac01498d
initial commit of 21st century c book examples
10 years ago
T. Meissner
2e19992f15
added case study of chapter 6
10 years ago
T. Meissner
fcff21703f
Merge branch 'master' of https://www.github.com/tmeissner/learning-by-doing
10 years ago
T. Meissner
b32f55befa
make files pep8 compliant
10 years ago
T. Meissner
9d4d8c41f6
added new file with examples of extending built-in types like integer
10 years ago
T. Meissner
61cf2c9b67
added new file with examples of using the set data type/object
10 years ago
T. Meissner
e3cd75c638
added new file with examples of using the list data type/object
10 years ago
T. Meissner
129ed90f27
completed dict examples by adding various methods for initialising, for example with defaultdict
10 years ago
T. Meissner
53bce1fa4d
completed tupes examples by adding one for named tupes
10 years ago
T. Meissner
9588711a2d
added first examples of chapter 06: tuples
10 years ago
T. Meissner
cd9bc2dd75
added error handling for: invalid filename (empty string), file save error, delete error; back() & forward() now safe in range of 0 .. characters list length; some minor refactoring
10 years ago
T. Meissner
75ae457119
make it pep8 compliant
10 years ago
T. Meissner
4e387a3dc3
added new zipscale variant which uses composition instead of inhiterance
10 years ago
T. Meissner
47dd9bf1cc
make it pep8 compliant
10 years ago
T. Meissner
3a6d1e600d
added timeout after that the webpage still will be loaded
10 years ago
T. Meissner
4a09212506
completed chapter 05 case study
10 years ago
T. Meissner
12f8a5c2c9
making the source files pep8 comliant
10 years ago
T. Meissner
0dbac08bd9
added case study of chapter 05
10 years ago
T. Meissner
5e866e5a68
renamed class ZipReplace into ZipReplaceInh
10 years ago
T. Meissner
4597685ec8
added zipreplace_comp.py as composition example
10 years ago
T. Meissner
cc9fffdc82
added class ZipProcessorComp for composition example
10 years ago
T. Meissner
c25b1b4991
added zipscale module which inhiterances from zipprocessor module
10 years ago
T. Meissner
4f677a4978
added zip files to gitignore list
10 years ago
T. Meissner
427eac2f82
example for useful use of property function
10 years ago
T. Meissner
b0a6f0240f
refactoring of zipsearch.py by using inhiterance
10 years ago
T. Meissner
7e5496029d
example for managing objects which replaces given strings in zipped files
10 years ago
T. Meissner
0a3d7b8cd5
more examples of chapter 05
10 years ago
T. Meissner
78e27a0633
added Editor class
10 years ago
T. Meissner
2daf82f8d5
added example of function vs. oop
10 years ago
T. Meissner
bc87e3e041
editor module to use & test auth module
10 years ago
T. Meissner
687b2a8f25
added case study of chapter 4: auth module
10 years ago
T. Meissner
db8f802191
Further integration of classes
Following classes were added: Purchase, Rental, HouseRental, HousePurchase,
ApartmentRental, ApartmentPurchase, Agent
Furthermore printing an empty newline was added at the end of display() methods
in each class where the method exists
10 years ago