type
stringclasses
5 values
content
stringlengths
9
163k
functions
void sectioning_underscore (char *cmd) { char *temp, *secname; int level; /* If we're not indenting the first paragraph, we shall make it behave like @noindent is called directly after the section heading. */ if (! do_first_par_indent) cm_noindent (); temp = xmalloc (2 + strlen (cmd)); temp[0] ...
functions
void insert_and_underscore (int level, char *cmd) { int i, len; int index; int old_no_indent; unsigned char *starting_pos, *ending_pos; char *temp; char with_char = scoring_characters[level]; close_paragraph (); filling_enabled = indented_fill = 0; old_no_indent = no_indent; no_indent = 1; if (...
functions
void sectioning_html (int level, char *cmd) { static int toc_ref_count = 0; int index; int old_no_indent; unsigned char *starting_pos, *ending_pos; char *temp, *toc_anchor = NULL; close_paragraph (); filling_enabled = indented_fill = 0; old_no_indent = no_indent; no_indent = 1; /* level 0 (chapte...
functions
void cm_raisesections (void) { discard_until ("\n"); section_alist_offset--; }
functions
void cm_lowersections (void) { discard_until ("\n"); section_alist_offset++; }
functions
void cm_ideprecated (int arg, int start, int end) { warning (_("%c%s is obsolete; use %c%s instead"), COMMAND_PREFIX, command, COMMAND_PREFIX, command + 1); sectioning_underscore (command + 1); }
functions
void cm_top (void) { /* It is an error to have more than one @top. */ if (top_node_seen && strcmp (current_node, "Top") != 0) { TAG_ENTRY *tag = tag_table; line_error (_("Node with %ctop as a section already exists"), COMMAND_PREFIX); while (tag) { if (tag...
functions
void cm_chapter (void) { enum_marker = 0; sectioning_underscore ("chapter"); }
functions
void cm_section (void) { sectioning_underscore ("section"); }
functions
void cm_subsection (void) { sectioning_underscore ("subsection"); }
functions
void cm_subsubsection (void) { sectioning_underscore ("subsubsection"); }
functions
void cm_unnumbered (void) { enum_marker = UNNUMBERED_MAGIC; sectioning_underscore ("unnumbered"); }
functions
void cm_unnumberedsec (void) { sectioning_underscore ("unnumberedsec"); }
functions
void cm_unnumberedsubsec (void) { sectioning_underscore ("unnumberedsubsec"); }
functions
void cm_unnumberedsubsubsec (void) { sectioning_underscore ("unnumberedsubsubsec"); }
functions
void cm_appendix (void) { /* Reset top level number so we start from Appendix A */ if (enum_marker != APPENDIX_MAGIC) numbers [0] = 0; enum_marker = APPENDIX_MAGIC; sectioning_underscore ("appendix"); }
functions
void cm_appendixsec (void) { sectioning_underscore ("appendixsec"); }
functions
void cm_appendixsubsec (void) { sectioning_underscore ("appendixsubsec"); }
functions
void cm_appendixsubsubsec (void) { sectioning_underscore ("appendixsubsubsec"); }
functions
void cm_majorheading (void) { sectioning_underscore ("majorheading"); }
functions
void cm_chapheading (void) { sectioning_underscore ("chapheading"); }
functions
void cm_heading (void) { sectioning_underscore ("heading"); }
functions
void cm_subheading (void) { sectioning_underscore ("subheading"); }
functions
void cm_subsubheading (void) { sectioning_underscore ("subsubheading"); }
includes
#include <stdio.h>
includes
#include <stdint.h>
includes
#include <limits.h>
includes
#include <string>
includes
#include <set>
includes
#include <vector>
functions
endif if (!arms_block_source || !arms_block_target) { adebug_fprintf(stderr, "[XXX] Source or target of an edge is missing!\n"); continue; }
functions
void dyninst_analyze_address_taken(BPatch_addressSpace *handle, DICFG *cfg) { /* XXX: this is currently a /very/ simple address-taken analysis. * It looks for instruction operands that correspond to known function addresses, * and then marks these functions as having their address taken. In particula...
functions
void visit(Dereference* op) {}
functions
void visit(Immediate* op) { address_t addr; ArmsFunction *func; switch(op->eval().type) { case s32: addr = op->eval().val.s32val; break; case u32: addr = op->eval().val.u32val; break; case s64: addr = op->eval().val.s64val; ...
functions
void visit(RegisterAST* op) {}
functions
void dyninst_analyze_address_taken_deprecated(const char*bin, const char **argv, DICFG *cfg) { BPatch bpatch; BPatch_addressSpace *handle = NULL; if (! getenv("RT_EDIT")) { handle = bpatch.openBinary(bin); }
defines
#define USB_FS_CLK_SRC kCLOCK_UsbSrcPll0
defines
#define USB_FS_CLK_FREQ CLOCK_GetFreq(kCLOCK_PllFllSelClk)
defines
#define USB_HS_PHY_CLK_SRC kCLOCK_UsbPhySrcExt
defines
#define USB_HS_PHY_CLK_FREQ BOARD_XTAL0_CLK_HZ
defines
#define USB_HS_CLK_SRC kCLOCK_UsbSrcUnused
defines
#define USB_HS_CLK_FREQ 0U
defines
#define CONTROLLER_ID kUSB_ControllerKhci0
defines
#define CONTROLLER_ID kUSB_ControllerEhci0
defines
#define USB_HOST_INTERRUPT_PRIORITY (3U)
functions
void USB0_IRQHandler(void) { USB_HostKhciIsrFunction(g_HostHandle); }
functions
void USBHS_IRQHandler(void) { USB_HostEhciIsrFunction(g_HostHandle); }
functions
usb_status_t USB_HostEvent(usb_device_handle deviceHandle, usb_host_configuration_handle configurationHandle, uint32_t eventCode) { usb_status_t status = kStatus_USB_Success; switch (eventCode) { case kUSB_HostEventAttach: ...
functions
void USB_HostApplicationInit(void) { usb_status_t status = kStatus_USB_Success; IRQn_Type usbIrq; #if ((defined USB_HOST_CONFIG_KHCI) && (USB_HOST_CONFIG_KHCI)) IRQn_Type usbFsIrqs[] = USB_IRQS; usbIrq = usbFsIrqs[CONTROLLER_ID - kUSB_ControllerKhci0]; CLOCK_EnableUsbfs0Clock(USB_FS_CLK_SRC, USB_FS...
functions
void USB_HostTask(void *param) { while (1) { #if ((defined USB_HOST_CONFIG_KHCI) && (USB_HOST_CONFIG_KHCI)) USB_HostKhciTaskFunction(param); #endif /* USB_HOST_CONFIG_KHCI */ #if ((defined USB_HOST_CONFIG_EHCI) && (USB_HOST_CONFIG_EHCI)) USB_HostEhciTaskFunction(param); #endif /* USB_HOST_CONFIG...
functions
void USB_HostApplicationTask(void *param) { while (1) { USB_HostHidGenericTask(param); }
main
int main(void) { BOARD_InitPins(); BOARD_BootClockRUN(); BOARD_InitDebugConsole(); USB_HostApplicationInit(); if (xTaskCreate(USB_HostTask, "usb host task", 2000L / sizeof(portSTACK_TYPE), g_HostHandle, 4, NULL) != pdPASS) { usb_echo("create host task error\r\n"); }
includes
#include <openssl/evp.h>
includes
#include <openssl/dh.h>
includes
#include <openssl/bn.h>
includes
#include <stdint.h>
defines
#define S2N_MIN_DH_PRIME_SIZE_BYTES (2048 / 8)
functions
int s2n_check_p_g_dh_params(struct s2n_dh_params *dh_params) { notnull_check(dh_params); notnull_check(dh_params->dh); const BIGNUM *p = s2n_get_p_dh_param(dh_params); const BIGNUM *g = s2n_get_g_dh_param(dh_params); notnull_check(g); notnull_check(p); if (DH_size(dh_params->dh) < S2N_MIN...
functions
int s2n_check_pub_key_dh_params(struct s2n_dh_params *dh_params) { const BIGNUM *pub_key = s2n_get_Ys_dh_param(dh_params); notnull_check(pub_key); if (BN_is_zero(pub_key)) { S2N_ERROR(S2N_ERR_DH_PARAMS_CREATE); }
functions
int s2n_set_p_g_Ys_dh_params(struct s2n_dh_params *dh_params, struct s2n_blob *p, struct s2n_blob *g, struct s2n_blob *Ys) { BIGNUM *bn_p = BN_bin2bn((const unsigned char *)p->data, p->size, NULL); BIGNUM *bn_g = BN_bin2bn((const unsigned char *)g->data, g->size, NULL); BIGNUM *bn_Ys = BN_bin2bn((const unsi...
functions
int s2n_check_all_dh_params(struct s2n_dh_params *dh_params) { GUARD(s2n_check_p_g_dh_params(dh_params)); GUARD(s2n_check_pub_key_dh_params(dh_params)); return 0; }
functions
int s2n_pkcs3_to_dh_params(struct s2n_dh_params *dh_params, struct s2n_blob *pkcs3) { uint8_t *original_ptr = pkcs3->data; dh_params->dh = d2i_DHparams(NULL, (const unsigned char **)(void *)&pkcs3->data, pkcs3->size); GUARD(s2n_check_p_g_dh_params(dh_params)); if (pkcs3->data - original_ptr != pkcs3->si...
functions
int s2n_dh_p_g_Ys_to_dh_params(struct s2n_dh_params *server_dh_params, struct s2n_blob *p, struct s2n_blob *g, struct s2n_blob *Ys) { server_dh_params->dh = DH_new(); if (server_dh_params->dh == NULL) { S2N_ERROR(S2N_ERR_DH_PARAMS_CREATE); }
functions
int s2n_dh_params_to_p_g_Ys(struct s2n_dh_params *server_dh_params, struct s2n_stuffer *out, struct s2n_blob *output) { GUARD(s2n_check_all_dh_params(server_dh_params)); const BIGNUM *bn_p = s2n_get_p_dh_param(server_dh_params); const BIGNUM *bn_g = s2n_get_g_dh_param(server_dh_params); const BIGNUM *b...
functions
int s2n_dh_compute_shared_secret_as_client(struct s2n_dh_params *server_dh_params, struct s2n_stuffer *Yc_out, struct s2n_blob *shared_key) { struct s2n_dh_params client_params; uint8_t *client_pub_key; uint16_t client_pub_key_size; int shared_key_size; GUARD(s2n_dh_params_check(server_dh_params));...
functions
int s2n_dh_compute_shared_secret_as_server(struct s2n_dh_params *server_dh_params, struct s2n_stuffer *Yc_in, struct s2n_blob *shared_key) { uint16_t Yc_length; struct s2n_blob Yc; int shared_key_size; BIGNUM *pub_key; GUARD(s2n_check_all_dh_params(server_dh_params)); GUARD(s2n_stuffer_read_ui...
functions
int s2n_dh_params_check(struct s2n_dh_params *params) { int codes = 0; if (DH_check(params->dh, &codes) == 0) { S2N_ERROR(S2N_ERR_DH_PARAMETER_CHECK); }
functions
int s2n_dh_params_copy(struct s2n_dh_params *from, struct s2n_dh_params *to) { GUARD(s2n_check_p_g_dh_params(from)); to->dh = DHparams_dup(from->dh); if (to->dh == NULL) { S2N_ERROR(S2N_ERR_DH_COPYING_PARAMETERS); }
functions
int s2n_dh_generate_ephemeral_key(struct s2n_dh_params *dh_params) { GUARD(s2n_check_p_g_dh_params(dh_params)); if (DH_generate_key(dh_params->dh) == 0) { S2N_ERROR(S2N_ERR_DH_GENERATING_PARAMETERS); }
functions
int s2n_dh_params_free(struct s2n_dh_params *dh_params) { notnull_check(dh_params); DH_free(dh_params->dh); dh_params->dh = NULL; return 0; }
includes
#include <Include.h>
includes
#include <Driver_Include.h>
includes
#include <Tools_Include.h>
includes
#include <GUI_Include.h>
includes
#include <GUI_Include.h>
includes
#include <FuncTask_Include.h>
includes
#include <..\USER\Prj_CXHeftSensor\Can_Driver.c>
includes
#include <..\USER\Prj_CXHeftSensor\ADC_Driver.c>
includes
#include <..\USER\Prj_CXHeftSensor\IO_Driver.c>
functions
void Task0(void *Tags) { LED2_ON; LED1_ON; DeBug_OutSet(DeBug_USART1);//µ÷ÊÔÐÅϢͨ¹ý´®¿Ú´òÓ¡ DeBug_SetType(Infor_All);//Ö»´òÓ¡InforÀàÐ͵ÄÏûÏ¢ Printf_SysInfor(); Tos_TaskDelay(2000); while(1) { LED1_ON; Tos_TaskDelay(100); LED1_OFF; Tos_TaskDelay(900); }
functions
void Task1(void *Tags) { while(1) { LED2_ON; IO_Value=SIG_GetUint8(); Tos_TaskDelay(100); LED2_OFF; Tos_TaskDelay(300); }
functions
void SIG_Delay(uint8 D) { Tos_TaskDelay(D); LED3_OFF; Tos_TaskDelay(D); LED3_ON; }
functions
void Task2(void *Tags) { uint16 ADC_Value; uint8 Data[10]; CAN_SIG_Init(); CAN_SIG_Filter_Configs(); while(1) { BufferCoppy(&ADCBuffer[0],&Data[0],2); CAN_SIG_SendMsg(&Data[0],0x1A1);//Printf_Bytes(&Data[0],8); SIG_Delay(200); }
main
int main(void) { RCC_Configuration(); DeBug_Init(); DeviceList_Init(); DeviceMount_Usart1(); DeviceMount_Led(); DeviceMount_Flash(); DeviceMount_Control(); DeviceMount_Signel(); Device_Init(); Tos_Init(); Tos_TaskCreate(0,Task0,Null,"Tast0",3000); Tos_TaskCreate(1,Task_ADCFitel,Null,"ADC-Reade...
includes
#include <jni.h>
defines
#define ARG1 ((jbyte)10)
defines
#define RES1 ((jbyte)ARG1)
defines
#define ARG22 ((jbyte)-15)
defines
#define RES2 ((jbyte)(ARG1 + ARG22))
defines
#define ARG3_LENGTH 2
defines
#define ARG31 ((jbyte)127)
defines
#define ARG32 ((jbyte)-1)
defines
#define RES3 ((jbyte)(ARG31 + ARG32))
defines
#define ARG42_LENGTH 3
defines
#define ARG421 ((jbyte)88)
defines
#define ARG422 ((jbyte)-127)
defines
#define ARG423 ((jbyte)-11)
defines
#define RES4 ((jbyte)((ARG31 + ARG32) + (ARG421 + ARG422 + ARG423)))
defines
#define ARG5 ((jbyte)-100)
defines
#define RES5 ((jbyte)ARG5)