/root/src/xen/xen/include/xen/ctype.h
Line | Count | Source (jump to first uncovered line) |
1 | | #ifndef _LINUX_CTYPE_H |
2 | | #define _LINUX_CTYPE_H |
3 | | |
4 | | /* |
5 | | * NOTE! This ctype does not handle EOF like the standard C |
6 | | * library is required to. |
7 | | */ |
8 | | |
9 | 12 | #define _U 0x01 /* upper */ |
10 | 0 | #define _L 0x02 /* lower */ |
11 | 2.43k | #define _D 0x04 /* digit */ |
12 | | #define _C 0x08 /* cntrl */ |
13 | 0 | #define _P 0x10 /* punct */ |
14 | | #define _S 0x20 /* white space (space/lf/tab) */ |
15 | 11 | #define _X 0x40 /* hex digit */ |
16 | 0 | #define _SP 0x80 /* hard space (0x20) */ |
17 | | |
18 | | extern const unsigned char _ctype[]; |
19 | | |
20 | 2.44k | #define __ismask(x) (_ctype[(int)(unsigned char)(x)]) |
21 | | |
22 | | #define isalnum(c) ((__ismask(c)&(_U|_L|_D)) != 0) |
23 | | #define isalpha(c) ((__ismask(c)&(_U|_L)) != 0) |
24 | | #define iscntrl(c) ((__ismask(c)&(_C)) != 0) |
25 | 2.42k | #define isdigit(c) ((__ismask(c)&(_D)) != 0) |
26 | | #define isgraph(c) ((__ismask(c)&(_P|_U|_L|_D)) != 0) |
27 | 0 | #define islower(c) ((__ismask(c)&(_L)) != 0) |
28 | 0 | #define isprint(c) ((__ismask(c)&(_P|_U|_L|_D|_SP)) != 0) |
29 | | #define ispunct(c) ((__ismask(c)&(_P)) != 0) |
30 | | #define isspace(c) ((__ismask(c)&(_S)) != 0) |
31 | 12 | #define isupper(c) ((__ismask(c)&(_U)) != 0) |
32 | 11 | #define isxdigit(c) ((__ismask(c)&(_D|_X)) != 0) |
33 | | |
34 | | #define isascii(c) (((unsigned char)(c))<=0x7f) |
35 | | #define toascii(c) (((unsigned char)(c))&0x7f) |
36 | | |
37 | | static inline unsigned char __tolower(unsigned char c) |
38 | 12 | { |
39 | 12 | if (isupper(c)) |
40 | 0 | c -= 'A'-'a'; |
41 | 12 | return c; |
42 | 12 | } Unexecuted instantiation: domain.c:__tolower Unexecuted instantiation: mmconfig_64.c:__tolower Unexecuted instantiation: mmconf-fam10h.c:__tolower Unexecuted instantiation: acpi_mmcfg.c:__tolower Unexecuted instantiation: emul-priv-op.c:__tolower Unexecuted instantiation: emul-inv-op.c:__tolower Unexecuted instantiation: emul-gate-op.c:__tolower Unexecuted instantiation: op_model_athlon.c:__tolower Unexecuted instantiation: op_model_ppro.c:__tolower Unexecuted instantiation: op_model_p4.c:__tolower Unexecuted instantiation: nmi_int.c:__tolower Unexecuted instantiation: vmx.c:__tolower Unexecuted instantiation: vmcs.c:__tolower Unexecuted instantiation: svm.c:__tolower Unexecuted instantiation: vpt.c:__tolower Unexecuted instantiation: vmsi.c:__tolower Unexecuted instantiation: vlapic.c:__tolower Unexecuted instantiation: viridian.c:__tolower Unexecuted instantiation: vioapic.c:__tolower Unexecuted instantiation: ioreq.c:__tolower Unexecuted instantiation: hvm.c:__tolower Unexecuted instantiation: probe.c:__tolower Unexecuted instantiation: delivery.c:__tolower Unexecuted instantiation: default.c:__tolower Unexecuted instantiation: x2apic.c:__tolower Unexecuted instantiation: bigsmp.c:__tolower Unexecuted instantiation: mce_intel.c:__tolower Unexecuted instantiation: mce-apei.c:__tolower Unexecuted instantiation: mce.c:__tolower Unexecuted instantiation: vpmu_intel.c:__tolower Unexecuted instantiation: vpmu_amd.c:__tolower Unexecuted instantiation: vpmu.c:__tolower Unexecuted instantiation: mwait-idle.c:__tolower Unexecuted instantiation: intel.c:__tolower Unexecuted instantiation: common.c:__tolower Unexecuted instantiation: amd.c:__tolower Unexecuted instantiation: powernow.c:__tolower Unexecuted instantiation: cpuidle_menu.c:__tolower Unexecuted instantiation: cpu_idle.c:__tolower Unexecuted instantiation: suspend.c:__tolower Unexecuted instantiation: power.c:__tolower Unexecuted instantiation: hpet.c:__tolower Unexecuted instantiation: tboot.c:__tolower Unexecuted instantiation: traps.c:__tolower Unexecuted instantiation: time.c:__tolower Unexecuted instantiation: srat.c:__tolower Unexecuted instantiation: smpboot.c:__tolower Unexecuted instantiation: smp.c:__tolower Unexecuted instantiation: shutdown.c:__tolower Unexecuted instantiation: setup.c:__tolower Unexecuted instantiation: platform_hypercall.c:__tolower Unexecuted instantiation: physdev.c:__tolower Unexecuted instantiation: nmi.c:__tolower Unexecuted instantiation: mpparse.c:__tolower Unexecuted instantiation: mm.c:__tolower Unexecuted instantiation: machine_kexec.c:__tolower Unexecuted instantiation: irq.c:__tolower Unexecuted instantiation: msi.c:__tolower Unexecuted instantiation: io_apic.c:__tolower Unexecuted instantiation: i8259.c:__tolower Unexecuted instantiation: crash.c:__tolower Unexecuted instantiation: apic.c:__tolower Unexecuted instantiation: apei-io.c:__tolower Unexecuted instantiation: apei-base.c:__tolower Unexecuted instantiation: hest.c:__tolower Unexecuted instantiation: erst.c:__tolower Unexecuted instantiation: utglobal.c:__tolower Unexecuted instantiation: tbutils.c:__tolower Unexecuted instantiation: reboot.c:__tolower Unexecuted instantiation: hwregs.c:__tolower Unexecuted instantiation: pmstat.c:__tolower Unexecuted instantiation: osl.c:__tolower Unexecuted instantiation: numa.c:__tolower Unexecuted instantiation: iommu_intr.c:__tolower Unexecuted instantiation: pci_amd_iommu.c:__tolower Unexecuted instantiation: iommu_map.c:__tolower Unexecuted instantiation: iommu_init.c:__tolower Unexecuted instantiation: vtd.c:__tolower Unexecuted instantiation: quirks.c:__tolower Unexecuted instantiation: intremap.c:__tolower Unexecuted instantiation: utils.c:__tolower Unexecuted instantiation: dmar.c:__tolower Unexecuted instantiation: iommu.c:__tolower Unexecuted instantiation: pci.c:__tolower Unexecuted instantiation: io.c:__tolower Unexecuted instantiation: utility.c:__tolower Unexecuted instantiation: cpufreq_misc_governors.c:__tolower Unexecuted instantiation: cpufreq_ondemand.c:__tolower Unexecuted instantiation: cpufreq.c:__tolower Unexecuted instantiation: ehci-dbgp.c:__tolower Unexecuted instantiation: ns16550.c:__tolower Unexecuted instantiation: console.c:__tolower Unexecuted instantiation: vsprintf.c:__tolower Line | Count | Source | 38 | 12 | { | 39 | 12 | if (isupper(c)) | 40 | 0 | c -= 'A'-'a'; | 41 | 12 | return c; | 42 | 12 | } |
Unexecuted instantiation: lib.c:__tolower Unexecuted instantiation: kexec.c:__tolower Unexecuted instantiation: keyhandler.c:__tolower Unexecuted instantiation: mmconfig-shared.c:__tolower |
43 | | |
44 | | static inline unsigned char __toupper(unsigned char c) |
45 | 0 | { |
46 | 0 | if (islower(c)) |
47 | 0 | c -= 'a'-'A'; |
48 | 0 | return c; |
49 | 0 | } Unexecuted instantiation: mmconfig-shared.c:__toupper Unexecuted instantiation: mmconfig_64.c:__toupper Unexecuted instantiation: mmconf-fam10h.c:__toupper Unexecuted instantiation: acpi_mmcfg.c:__toupper Unexecuted instantiation: emul-priv-op.c:__toupper Unexecuted instantiation: emul-inv-op.c:__toupper Unexecuted instantiation: emul-gate-op.c:__toupper Unexecuted instantiation: op_model_athlon.c:__toupper Unexecuted instantiation: op_model_ppro.c:__toupper Unexecuted instantiation: op_model_p4.c:__toupper Unexecuted instantiation: nmi_int.c:__toupper Unexecuted instantiation: vmx.c:__toupper Unexecuted instantiation: vmcs.c:__toupper Unexecuted instantiation: svm.c:__toupper Unexecuted instantiation: vpt.c:__toupper Unexecuted instantiation: vmsi.c:__toupper Unexecuted instantiation: vlapic.c:__toupper Unexecuted instantiation: viridian.c:__toupper Unexecuted instantiation: vioapic.c:__toupper Unexecuted instantiation: ioreq.c:__toupper Unexecuted instantiation: hvm.c:__toupper Unexecuted instantiation: probe.c:__toupper Unexecuted instantiation: delivery.c:__toupper Unexecuted instantiation: default.c:__toupper Unexecuted instantiation: x2apic.c:__toupper Unexecuted instantiation: bigsmp.c:__toupper Unexecuted instantiation: mce_intel.c:__toupper Unexecuted instantiation: mce-apei.c:__toupper Unexecuted instantiation: mce.c:__toupper Unexecuted instantiation: vpmu_intel.c:__toupper Unexecuted instantiation: vpmu_amd.c:__toupper Unexecuted instantiation: vpmu.c:__toupper Unexecuted instantiation: mwait-idle.c:__toupper Unexecuted instantiation: intel.c:__toupper Unexecuted instantiation: common.c:__toupper Unexecuted instantiation: amd.c:__toupper Unexecuted instantiation: powernow.c:__toupper Unexecuted instantiation: cpuidle_menu.c:__toupper Unexecuted instantiation: cpu_idle.c:__toupper Unexecuted instantiation: suspend.c:__toupper Unexecuted instantiation: power.c:__toupper Unexecuted instantiation: hpet.c:__toupper Unexecuted instantiation: tboot.c:__toupper Unexecuted instantiation: traps.c:__toupper Unexecuted instantiation: time.c:__toupper Unexecuted instantiation: srat.c:__toupper Unexecuted instantiation: smpboot.c:__toupper Unexecuted instantiation: smp.c:__toupper Unexecuted instantiation: shutdown.c:__toupper Unexecuted instantiation: setup.c:__toupper Unexecuted instantiation: platform_hypercall.c:__toupper Unexecuted instantiation: physdev.c:__toupper Unexecuted instantiation: nmi.c:__toupper Unexecuted instantiation: mpparse.c:__toupper Unexecuted instantiation: mm.c:__toupper Unexecuted instantiation: machine_kexec.c:__toupper Unexecuted instantiation: irq.c:__toupper Unexecuted instantiation: msi.c:__toupper Unexecuted instantiation: io_apic.c:__toupper Unexecuted instantiation: i8259.c:__toupper Unexecuted instantiation: crash.c:__toupper Unexecuted instantiation: apic.c:__toupper Unexecuted instantiation: apei-io.c:__toupper Unexecuted instantiation: apei-base.c:__toupper Unexecuted instantiation: hest.c:__toupper Unexecuted instantiation: erst.c:__toupper Unexecuted instantiation: utglobal.c:__toupper Unexecuted instantiation: tbutils.c:__toupper Unexecuted instantiation: reboot.c:__toupper Unexecuted instantiation: hwregs.c:__toupper Unexecuted instantiation: pmstat.c:__toupper Unexecuted instantiation: osl.c:__toupper Unexecuted instantiation: numa.c:__toupper Unexecuted instantiation: iommu_intr.c:__toupper Unexecuted instantiation: pci_amd_iommu.c:__toupper Unexecuted instantiation: iommu_map.c:__toupper Unexecuted instantiation: iommu_init.c:__toupper Unexecuted instantiation: vtd.c:__toupper Unexecuted instantiation: quirks.c:__toupper Unexecuted instantiation: intremap.c:__toupper Unexecuted instantiation: utils.c:__toupper Unexecuted instantiation: dmar.c:__toupper Unexecuted instantiation: iommu.c:__toupper Unexecuted instantiation: pci.c:__toupper Unexecuted instantiation: io.c:__toupper Unexecuted instantiation: utility.c:__toupper Unexecuted instantiation: cpufreq_misc_governors.c:__toupper Unexecuted instantiation: cpufreq_ondemand.c:__toupper Unexecuted instantiation: cpufreq.c:__toupper Unexecuted instantiation: ehci-dbgp.c:__toupper Unexecuted instantiation: ns16550.c:__toupper Unexecuted instantiation: console.c:__toupper Unexecuted instantiation: vsprintf.c:__toupper Unexecuted instantiation: string.c:__toupper Unexecuted instantiation: lib.c:__toupper Unexecuted instantiation: kexec.c:__toupper Unexecuted instantiation: keyhandler.c:__toupper Unexecuted instantiation: domain.c:__toupper |
50 | | |
51 | 12 | #define tolower(c) __tolower(c) |
52 | 0 | #define toupper(c) __toupper(c) |
53 | | |
54 | | #endif |