File tree 3 files changed +7
-7
lines changed
3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1
- VERSION := 9.0.0
1
+ VERSION := 9.0.1
2
2
MAJOR_VERSION := $(shell echo $(VERSION ) | head -c 1)
3
3
4
4
# installation directory (/usr/local by default)
@@ -128,6 +128,6 @@ version:
128
128
.PHONY : uninstall
129
129
uninstall :
130
130
rm -f $(DESTDIR ) /include/cs50.h
131
- rm -rf $(DESTDIR ) /src/libcs50
131
+ rm -rf $(DESTDIR ) /src/cs50.c
132
132
rm -f $(addprefix $(DESTDIR ) /lib/, $(LIB_BASE ) $(LIB_MAJOR ) $(LIB_VERSION ) )
133
133
rm -f $(addprefix $(DESTDIR ) /$(MANDIR ) /, eprintf.3 get_* .3)
Original file line number Diff line number Diff line change @@ -78,7 +78,7 @@ static string *strings = NULL;
78
78
string get_string (va_list * args , const string format , ...)
79
79
{
80
80
// Check whether we have room for another string
81
- if (allocations * sizeof (string ) == SIZE_MAX )
81
+ if (allocations == SIZE_MAX / sizeof (string ))
82
82
{
83
83
return NULL ;
84
84
}
@@ -374,7 +374,7 @@ long get_long(const string format, ...)
374
374
// Try to get a long from user
375
375
while (true)
376
376
{
377
- // Get line of text, returning LLONG_MAX on failure
377
+ // Get line of text, returning LONG_MAX on failure
378
378
string line = get_string (& ap , format );
379
379
if (line == NULL )
380
380
{
Original file line number Diff line number Diff line change 36
36
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
37
37
*/
38
38
39
- #ifndef _CS50_H
40
- #define _CS50_H
39
+ #ifndef CS50_H
40
+ #define CS50_H
41
41
42
42
#include <float.h>
43
43
#include <limits.h>
51
51
typedef unsigned char byte ;
52
52
53
53
/**
54
- * Our own type for strings.
54
+ * Our own type for (pointers to) strings.
55
55
*/
56
56
typedef char * string ;
57
57
You can’t perform that action at this time.
0 commit comments