This is something that often happens when we copy code.
For example: The following file (Lpc17xx_libcfg.h)
00001/***********************************************************************/00020 #ifndef LPC17XX_LIBCFG_H_ 00021 #define LPC17XX_LIBCFG_H_00022 00023 #include "lpc_types.h" 00024 00025 00026/************************** DEBUG Mode definitions *********************************/00027/* Un-comment the line below to compile the library in DEBUG mode , this would expanse00028 the "CHECK_PARAM" macro in the FW library code */00029 00030 #define DEBUG00031 00032 00033/* Peripheral FW LIBRARY CONFIGURATION Definitions ***********************/00034 00035/* Comment the Lin E below to disable the specific peripheral inclusion */00036 00037/* debug_framwork------------------------------*/0003 8//#define _DBGFWK00039 00040/* GPIO-------------------------------*/00041 #define _GPIO00042 00043/* Exti---------- ---------------------*/00044//#define _EXTI00045 00046/* UART-------------------------------*/00047//#define _ UART00048//#define _UART000049//#define _uart100050//#define _UART200051//#define _UART300052 00053/* SPI-------------------------------*/00054//#define _SPI0005 5 00056/* SSP-------------------------------*/00057//#define _SSP00058//#define _SSP000059//#define _SSP100060 00061 /* SYSTICK----------------------------*/00062 #define _SYSTICK00063 00064/* i²c-------------------------------*/ 00065//#define _I2C00066//#define _I2C000067//#define _I2C100068//#define _I2C200069 00070/* TIMER------------------ -------------*/00071 #define _TIM00072 00073 * * WDT-------------------------------*/00074//#define _WDT00075 00076 000 */* GPDMA-------------------------------*/00078//#define _GPDMA00079 00080 00081/* DAC---------------------------- ---*/00082//#define _DAC00083 00084/* DAC-------------------------------*/00085//#define _adc00086 00087 00088/PW M-------------------------------*/00089//#define _PWM00090//#define _PWM100091 00092/* RTC------------------------ -------*/00093//#define _RTC00094 00095/* I2S-------------------------------*/00096//#define _I2S00097 00098/* USB device-------------------------- -----*/00099//#define _USBDEV00100//#define _USB_DMA00101 00102/* QEI-------------------------------*/00103//#defi NE _qei00104 00105/* MCPWM-------------------------------*/00106//#define _MCPWM00107 00108/* CAN------------------- -------------*/00109//#define _CAN00110 00111 */RIT-------------------------------*/00112 #define _RIT00113 00114/* E MAC------------------------------*/00115//#define _EMAC00116 00117/************************** global/public MACRO Definitions *********************************/00118 00119 #ifdef DEBUG00120/************************************** 00121 * @brief The CHECK_PARAM macro is used for function ' s parame Ters check.00122 * It is used only if the library is compiled in DEBUG mode.00123 * @param [i N] expr-if expr is false, it CALLS check_failed () function00124 * which reports the name of the source file and the source00125 * Line number of the "failed.00126 *-If expr is true, it returns no value .00127 * @return None00128 *******************************************************************************/0 0129 #define CHECK_PARAM (expr)? (void) 0:check_failed ((uint8_t *) __file__, __line__)) 00130 #else00131 #define CHECK_PARAM (expr) 00132 #endif/* DEBUG */0 0133 00134 00135 00136/************************** global/public FUNCTION DECLARATION ******************************** */00137 00138 #ifdef DEBUG00139 void check_failed (uint8_t *file, uint32_t line), 00140 #endif00141 00142 00143 #endif/* L Pc17xx_libcfg_h_ * *
First, we want to select the Regular expression option
Then, replace the line number
? : Represents any single character.
Finally, replace the space at the beginning of the line
UltraEdit Remove line numbers and spaces at the beginning of a row