ctypes.h

12-22 1,621 views

http://www.runoob.com/cprogramming/c-data-types.html
http://www.runoob.com/go/go-data-types.html
https://gist.github.com/zchee/b9c99695463d8902cd33
https://www.cnblogs.com/majianguo/p/7650059.html
https://blog.nuxui.com/archives/561.html
http://www.cplusplus.com/reference/cstdint/
https://sites.uclouvain.be/SystInfo/usr/include/stdint.h.html
https://en.wikipedia.org/wiki/C_data_types
Java 基本数据类型

#ifndef __TENON_TYPES__
#define __TENON_TYPES__
typedef void t_void;

typedef char t_char;          // 1
typedef wchar_t t_wchar;      // 2
typedef unsigned char t_byte; // 1

typedef int t_int;              // 2 or 4
typedef char t_int8;            // 1
typedef unsigned char t_uint8;  // 1
typedef short t_int16;          // 2
typedef unsigned short t_uin16; // 2
typedef int t_int32;            // 4
typedef unsigned int t_uint32;  // 4
typedef long t_int64;           // 8
typedef unsigned long t_uint64; // 8

typedef float t_float;            // 4 字节 | 1.2E-38 到 3.4E+38 | 6 位小数
typedef float t_float32;          // 4
typedef double t_float64;         // 8
typedef double t_complex64;       // 8 double | 8 字节 | 2.3E-308 到 1.7E+308 | 15 位小数
// typedef double double t_complex128; // 16 long double | 16 字节 | 3.4E-4932 到 1.1E+4932 |  19 位小数

typedef char *string;

// ====================================================================================================================
// Basic type redefinition
// ====================================================================================================================

// typedef void Void;
// typedef bool Bool;

// typedef char Char;
// typedef unsigned char UChar;
// typedef short Short;
// typedef unsigned short UShort;
// typedef int Int;
// typedef unsigned int UInt;
// typedef double Double;
// typedef float Float;

// #if !(__linux__)
// typedef signed char int8_t;
// typedef short int16_t;
// typedef int int32_t;
// typedef long long int64_t;
// #endif
// typedef unsigned char uint8_t;
// typedef unsigned short uint16_t;
// typedef unsigned int uint32_t;
// typedef unsigned long long uint64_t;

// // ====================================================================================================================
// // 64-bit integer type
// // ====================================================================================================================

// #ifdef _MSC_VER
// typedef __int64 Int64;

// #if _MSC_VER <= 1200    // MS VC6
// typedef __int64 UInt64; // MS VC6 does not support unsigned __int64 to double conversion
// #else
// typedef unsigned __int64 UInt64;
// #endif

// #else

// typedef       long long           Int64;
// typedef       unsigned long long  UInt64;

#endif //__TENON_TYPES__

COM in plain C

https://www.codeproject.com/Articles/13601/COM-in-plain-C

阅读全文

A Brief Intro to Input Method Framework, Linux IME, and XIM

https://tedyin.com/posts/a-brief-intro-to-linux-input-method-framework/ There are chances one need an input method editor (IME). For CJK users, su...

阅读全文

使用Visual studio查看exe或DLL文件的依赖项

事先准备:只要 Visual Studio 任何版本即可。 点击开始 -> 程序 -> Visual Studio对应的版本,打开Visual Studio Tools -> 选择 命令提示 进入命...

阅读全文

欢迎留言