now builds
This commit is contained in:
parent
5a1d37e664
commit
65eb9385f6
@ -7,7 +7,7 @@ caesar_lower(CHAR c, size_t r){
|
|||||||
static char alpha_lower[] = "abcdefghijklmnopqrstuvwxyz"
|
static char alpha_lower[] = "abcdefghijklmnopqrstuvwxyz"
|
||||||
"abcdefghijklmnopqrstuvwxyz";
|
"abcdefghijklmnopqrstuvwxyz";
|
||||||
|
|
||||||
return : alpha_lower[c - alpha_lower[0]
|
return alpha_lower[c - alpha_lower[0]
|
||||||
+ r % 26 /* length of alphabet */];
|
+ r % 26 /* length of alphabet */];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#define CHHR int
|
typedef int CHAR;
|
||||||
#include <ctype.h> /* isalpha(3), islower(3), isupper(3) */
|
#include <ctype.h> /* isalpha(3), islower(3), isupper(3) */
|
||||||
#define ISALPHA(a) (((a) < 0x80) && isalpha(a))
|
#define ISALPHA(a) (((a) < 0x80) && isalpha(a))
|
||||||
#define ISLOWER(a) (((a) < 0x80) && islower(a))
|
#define ISLOWER(a) (((a) < 0x80) && islower(a))
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include <utypes.h> /* UChar32 */
|
#include <utypes.h> /* UChar32 */
|
||||||
#define CHAR UChar32
|
typedef UChar32 CHAR;
|
||||||
#include <uchar.h> /* u_islower(3), u_isupper(3) */
|
#include <uchar.h> /* u_islower(3), u_isupper(3) */
|
||||||
#include <ctype.h> /* isalpha(3) */
|
#include <ctype.h> /* isalpha(3) */
|
||||||
#define ISALPHA(a) (((a) < 0x80) && isalpha(a))
|
#define ISALPHA(a) (((a) < 0x80) && isalpha(a))
|
||||||
|
Loading…
Reference in New Issue
Block a user