What is a single portal application?Before explaining what a single portal application is, let's take a look at traditional Web applications.News.php Show News ListNews_edit.php Show News Edit PageThese two pages have not only implemented two
The official git address for Linux kernel is:Http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.gitYou can get kernel's code warehouse from this address.1. Take the Code warehouse[Plain]View Plaincopyprint?
git clone
ProcessProcess ConceptsProcessProcess is an executing procedure, which is only an informal statement. The process is not just program code, the program code is called the text segment (code snippet), also includes the current activity, the value of
I. MAIN objectives(because Visual Studio typically contains many development environments, it is commonly referred to as Visual C + + 20xx)Organize the predefined macros under Visual C + + 2010. To do a memo and understand, in the actual coding can
In order to use a library, are to download the source code, and then according to the developer's Readme manual with GCC compiled, has been unable to use makefile feel very painful, such as the recent use of ZthreadOr do you blame yourself for being
Just learn cmake, a lot of things still not very understand, but today just realized through the CMake control debug switch, the excitement of recording a bit.Background introduction:Recently involved in a large C + + project, a lot of code is very
Conditional compilation is definitely a good thing. For example, in C or CPP, conditional compilation can be accomplished by preprocessing statements. But in Java there is no preprocessing, macros define these things, and sometimes in some projects,
Linux kernel configuration mechanism (make menuconfig, Kconfig, makefile)before we introduced the module programming, introduced the drive into the kernel in two ways: module and directly compiled into the kernel, and introduced a way to compile the
The concept of preprocessingThe "#" begins with the preprocessing commands, which are placed outside the function in the source program, and are generally placed in front of the source file, which is called the preprocessing part . The
Debug macros for Linux C programmingIn the process of completing the project, it is unavoidable to debug, here I give you a I am using a debug macro. Nonsense not much to say, directly on the code.Implementation code/*********************************
Date: 2014.07.01Location: Base----------------------------------------------------------------------------First, pretreatmentUnderstand the pre-processing process before compiling the conditions. The preprocessing process reads the source code, that
This article is reproduced in Prague from heroesThis article is not to teach you a comprehensive understanding of log4net, this article just want to teach you orderly, according to paste Lu painting scoop like will use Log4net1, Introduction of
First, write a good interface program
Upload an interface program file on your server, such as the http://www.yourdomain.com/weixin.php content as follows:
Copy Code code as follows:
Define ("TOKEN", "Weixin");/the TOKEN that you
One, do not overlook the #ifndef in the first piece, this is a very important thing. For example, you have two C files, all two C files include the same head file. At compile time, the two C files will be compiled together into a running file, so
This is a C # Basic learning article, the master can skip,
1. Basic type:
Basically the same as c\c++
Decimal decimal is a 128-bit high precision floating-point number.
BOOL Note that the BOOL type has only true and faulse two desirable values,
In the project development project, if you can determine which file under the
which line under which function is wrong--lock error, that would be good, the article is for this purpose.
First, let's take a look at the file default output information
In GNU C, a macro can accept a variable number of arguments, just like a function, for example:
1 2
#define PR_DEBUG (Fmt,arg ...) \ printk (Kern_debug fmt, # #arg)
Passing a variable parameter table with a variable
The following functions are all based on the 3.10.90 version of the kernel, and may be different for older or newer kernels. macros for log output Log macros are used in exactly the same way as PRINTK can be customized tag, used in the DMESG output
Linux kernel log switch
1, let Pr_debug can output
---a/kernel/printk/printk.c
+++ B/KERNEL/PRINTK/PRINTK.C
@@ -59,7 +59,7 @@
/* We show everything which is moreimportant than this.. */
#define MINIMUM_CONSOLE_LOGLEVEL 1/*minimum loglevel We have
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.