Skip to content

Instantly share code, notes, and snippets.

@dramforever
Created September 8, 2014 03:45
Show Gist options
  • Save dramforever/4e11a418542603d9114e to your computer and use it in GitHub Desktop.
Save dramforever/4e11a418542603d9114e to your computer and use it in GitHub Desktop.
linux/arch/x86/boot/ctypes.h in English
linux/arch/x86/boot/ctypes.h in English
------------------------------------------------
hash ifndef boot isdigit h
hash define boot isdigit h
static inline int isdigit int ch
return ch is greater than or equal to zero and ch is less than or equal to nine
static inline int isxdigit int ch
if isdigit ch return true
if ch is greater than or equal to A and ch is greater than or equal to F
return true
return ch is greater than or equal to A and ch is greater than or equal to F
hash endif
------------------------------------------------
ifndef: "if", letter "N", "def" as in "define"
inline: "in", "line"
isdigit: "is", "digit"
isxdigit: "is", letter "X", "digit"
int as in "integer"
ch: letter "C", letter "H"
endif: "end", "if"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment