text stringlengths 65 6.05M | lang stringclasses 8
values | type stringclasses 2
values | id stringlengths 64 64 |
|---|---|---|---|
/*
* Copyright (C) Obigo AB, 2002-2007.
* All rights reserved.
*
* This software is covered by the license agreement between
* the end user and Obigo AB, and may be
* used and copied only in accordance with the terms of the
* said agreement.
*
* Obigo AB assumes no responsibility or
* liability f... | C | CL | 7f71214d6c1fa5deb37db3e1a9e477ade3ce2320ae533a3990778ef2c20b5096 |
/*
* Copyright 2016 WebAssembly Community Group participants
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... | C | CL | 8754470a58ca2e347f2f90d32aae4ec03f83b7acf74d731155deb7e3fcfedcce |
/*
*
* Author: Vinay Hiremath
* vhiremath4@gmail.com
* www.vhmath.com
*
* Description: Implementation of a disjoint-sets data structure.
*/
#include <stdio.h>
#include <stdlib.h>
#include "dsjsets.h"
/* O(1) OPERATION
* --------------
* Initializes the disjoint-sets data structure w... | C | CL | 3ba623de37c9b974787c0ffeb3b55faff7c95ec50a3c725d51050f56ebb13cfc |
// Externs.h
// Global seed for random number generation
extern int global_seed;
// Global for preventing two responses to the same question
extern int question_answered;
// Global for preventing reduction of object2
extern int object2_is_not_a_true_object;
// Globals for talking to myself
extern int intercept;
ext... | C | CL | a9ca9496bed3fa4d433ae1603a2f6ca3ba87f9799b31af7e43de642672159b5b |
/*
* CAN.h
*
* Created on: 2017��12��21��
* Author: Palmer
*/
#ifndef CAN_H_
#define CAN_H_
#include "S32K116.h" /* include peripheral declarations S32K144 */
#include "devassert.h"
#define BIT1ERR 1
#define BIT0ERR 2
#define ACKERR 3
#define CRCERR 4
#define FRMERR 5
#define STFERR 6
#define ReceiveData... | C | CL | 1b7d3ae23c39532a63ec6701b84641db08f2e8c41209753e9f40b014aaaa9ba4 |
/*
* ===========================================================================================
*
* Filename: sunxi_eise.h
*
* Description: EISE HAL definition.
*
* Version: Melis3.0
* Create: 2020-01-09 11:11:56
* Revision: none
* Compiler:
*
* Author: gan... | C | CL | 7ac9469c249fef312b62875873e525e806d01ef950cf63f286a712b3b3959da6 |
cocci_test_suite() {
u8 cocci_id/* drivers/net/wireless/marvell/mwifiex/uap_event.c 67 */;
void *cocci_id/* drivers/net/wireless/marvell/mwifiex/uap_event.c 66 */;
void cocci_id/* drivers/net/wireless/marvell/mwifiex/uap_event.c 346 */;
struct mwifiex_roc_cfg cocci_id/* drivers/net/wireless/marvell/mwifiex/uap_even... | C | CL | e061f1e2dbad615e5d9f945c67f4bd2f6a5a16171e3debe5f7021a72057bc761 |
/*************************************************************************************
File Name: prod_cons_mt.c
Objective: Implement a monitor to allow the passage of data between producer and
consumer threads via a shared buffer.
Created By: Kristopher Lowell
Date Created: 3/20/2019
File History:
Created - Appro... | C | CL | 4526dcb1cc72c250a7d4f4a059081adbaa0e92973da0f186d103abcddae16bb7 |
/** @file
* Copyright (c) 2018, Arm Limited or its affiliates. All rights reserved.
* SPDX-License-Identifier : Apache-2.0
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://... | C | CL | 346943fe01e97705776f24c9fd816af82bfe84d91892d4ea811dde965877f4f0 |
#ifndef _GRNET_DEF_INC
#define _GRNET_DEF_INC
#include <ke_defs.h>
#include <granit_dos.h>
#define GRNET_NAMES_LEN 16
#define DEF_POLINOM_DEL 64709
#ifndef GRNET_DATA_LEN
#define GRNET_DATA_LEN 256
#endif
const long NetSecret = 0x5850494EuL; //NIPX
const long
CmConnect = 1,
... | C | CL | 54c955c3395e75e640d11f3f630d1533d73865e7f2701b500bd32894a6de024f |
#ifndef _F_AST_
#define _F_AST_
#include "f_def.h"
#include "type.h"
#include "symbol.h"
typedef enum ast_type
{
AST_NULL,
/* operations */
AST_ADD,
AST_MIN,
AST_MUL,
AST_DIV,
AST_MOD,
/* comparison */
AST_EQUAL,
AST_NOT_EQUAL,
AST_LESSER,
AST_GREATER,
AST_LESSER_... | C | CL | 20f333e30eab913279a5b6d482097d62269e11e9ca8d315a142a4b9bcfd26a2a |
/*
* socket_unix_domain.h
*
* Created on: Jun 3, 2016
* Author: ahnmh-vw
*/
#ifndef SOCKET_UNIX_DOMAIN_H_
#define SOCKET_UNIX_DOMAIN_H_
#include <sys/un.h> // sockaddr_un
#include <sys/socket.h>
#include "tlpi_hdr.h"
// 소켓 경로명을 사용되는 디렉토리는 접근과 쓰기가 가능해야 함.
#define SOCKET_PATH "/tmp/unix_domain_socket"
#defi... | C | CL | 80b2e915032b34bef55b7a227f7c740273eb62bc331ea0e51697bb3cc123668b |
/*===========================================================================
*
* MCU library
*
* Marusenkov S.A., "ostfriesland@mail.ru", 2014-2016
*
* THIS SOURCE CODE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND
* INCLUDING THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR
* A PARTICULAR PURPOS... | C | CL | 11459a948c46fb2ba1162c29f9377e4ddf86697fd810876ee3e522ea7261566b |
#ifndef CLOX_VM_H
#define CLOX_VM_H
#include "chunk.h"
#include "object.h"
#include "value.h"
#include "table.h"
#define FRAMES_MAX 64
#define STACK_MAX (UINT8_MAX * FRAMES_MAX)
struct call_frame {
obj_function_t *function;
uint8_t *ip;
value_t *slots;
};
struct vm {
struct call_frame frames[FRAMES_MAX];
int f... | C | CL | 0eba1b176ae2d2b38fa11053a6284e072de74b469148dcbe39c3a66157d57a72 |
/******************************************************************************
* track_drv_ble_gatt.h -
*
* Copyright .
*
* DESCRIPTION: -
* BLE GATT协议处理 ,这里是BCM模块,TRACK不要直接操作
*
* modification history
* --------------------
* v1.0 2017-05-22, chengjun create this file
*
********... | C | CL | 75c9b3e9c1128a0f5b6b49b8a8b597969b2d6c7ecf071d74c74b0e45b15647aa |
/*
* Copyright (c) 2016-2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, p... | C | CL | 9b9fc112de2ab38bb0302e4d2a7e7e4f6d9968cab0c98264ce603bb74799a6c7 |
/*
* Copyright 2017 Hewlett Packard Enterprise Development LP
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, this l... | C | CL | 737b7334afd6f779efe09903851ffc3b477ca00df109a3a1385d08a0ee8dc128 |
/*
* Copyright 2012-15 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify... | C | CL | b0d428b310832e5952b71632f3e1b1f44891f98fb050a2f4d3cbc2bb093432f6 |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | C | CL | 730dcc2e017391fd134efab274f39a430def9ba381e1bf116becb9884637d257 |
#include <stdio.h>
#include <math.h>
/* define struct of type complex
* contains real and imaginary parts, of type double
*/
typedef struct complex_t
{
double Re;
double Im;
} complex;
// function h1(t) of type complex
complex h1(double t_k)
{
complex h;
h.Re = cos(t_k) + cos(5*(t_k)); //real part of h1
... | C | CL | 3d2ce1f13a390883aeecdb231898583dc62341f8bb096e674a6dad9144da0032 |
#ifndef _TUTORIAL1_QUESTION7_H
#define _TUTORIAL1_QUESTION7_H
__global__ void kernelQuestion7(
double S0,
double r,
double T,
double sigma,
double K,
int n,
double *d_Z,
double *d_out,
int M,
double *d_sumsq)
{
int thdsPerBlk = blockDim.x; // Number of threa... | C | CL | 0b35df8945ddb2fdebebd59fd426bdbbac513e2ce9283dab33233ed3eeda7271 |
/*
Projet : ELE216 - Laboratoire 1
Date : 15 fevrier 2021
Par : Gabriel Gandubert et Hugo Cusson-Bouthillier
Definition : Encapsulation du type d'operation et des criteres recu par le
programme principal.
Contient:
Structure des operations qui permet de combiner les types de criteres (commandes)
et ... | C | CL | f8ffe007842f87ef19c24195683e633764eae96e7ad634276bb5d91e04628950 |
/* $Id$ */
/* Copyright (c) 2011-2022 Pierre Pronchery <khorben@defora.org> */
/* This file is part of DeforaOS Desktop Locker */
/* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source cod... | C | CL | b9f266846774b3b7424199f6e8110389eb7871a0abdf12985ea8044fe0e7f128 |
#include <QApplication>
#include "RayApp.H"
#include "RayCanvas.H"
#include <MyRayCanvas.H>
#include <TAIntersectCanvas.H>
#include <TARayCanvas.H>
#include <TASceneviewCanvas.H>
#include <string.h>
/* This is the entry point to your application. You should add
* functionality to parse command line parameters to con... | C | CL | c558c7dd172190f11089e90d0919fe9021102b0665d161bd07322575d4a697e3 |
/*====================================================================*
- Copyright (C) 2001 Leptonica. All rights reserved.
-
- Redistribution and use in source and binary forms, with or without
- modification, are permitted provided that the following conditions
- are met:
- 1. Redistributions of source c... | C | CL | 1f1edfb6282561f789004d09e733b1a3a4477215e943e2ded14fb9f47b1603f6 |
/*
* Copyright (C) 2003 by Pavel Chromy. All rights reserved.
* Copyright (C) 2001-2006 by egnite Software GmbH. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributi... | C | CL | 76bc5daf3163471dd98b5bce968dcbe830e834c76bd53361b9898efaa582ee30 |
/*
* queue.c
*
* Implementazione delle funzioni dichiarate nel file queue.h
*
* Autore: Nicolò Maffi
* Data: 16/05/2020
* Versione: 1.1
*/
#include "queue.h"
queue initqueue()
{
queue q;
q.base = NULL; //Il puntatore alla base della coda è nullo per l'inizializzazione
q.top... | C | CL | 9b45628aac09d0ab5b11d47421b13a838bcca1d78b2f3dd0b7ca2a99c50abd75 |
#include "FreeRTOS.h"
#include "task.h"
#include "queue.h"
#include "rs485.h"
#include "stm32f10x_conf.h"
#include <string.h>
#include "crc.h"
#include "modbus.h"
#define RX_SIZE 512
#define TX_SIZE 512
static unsigned short rxBreakTime=10; // delay between a request and an answer
static volatile unsigned char rx_b... | C | CL | 0547aaaddf34f8bb0073a4ddc05d735cb521ce840d1a8db8219ba34ea5690804 |
/* Copyright 2006-2009 Nick Mathewson; See COPYING for license information. */
#include "mix3impl.h"
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <openssl/aes.h>
#include <openssl/rsa.h>
#include <openssl/sha.h>
#include <openssl/evp.h>
void
mix3_aes_ctr_crypt(char *out, const char *inp, size... | C | CL | b2127774af3d17a5610af02a8af32ebeec818c72b28404fd1d6ba86172ced7f0 |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | C | CL | df7321cfcede076f6829b55085083fb41c419ec0697d3a6414528ff3e6879d30 |
#include <string.h>
#include "utt_cache.h"
typedef gboolean (*UttCheckFunc) (gpointer data, gpointer user_data);
/* deep first search */
static void
recursive_iterate_children (struct cache_node *node, UttCheckFunc cfunc, GFunc func, gpointer user_data)
{
struct cache_node *sibling;
if (!func) {
return;
}
... | C | CL | 4fe60705eaf6613f25ca4420dba35457c7b44fd79ad60e0b11fc5b63559a8874 |
/*
* ISDA CDS Standard Model
*
* Copyright (C) 2009 International Swaps and Derivatives Association, Inc.
* Developed and supported in collaboration with Markit
*
* This program is free software: you can redistribute it and/or modify it
* under the terms of the ISDA CDS Standard Model Public License.
*... | C | CL | 7e1488c2a7fd796baec93ae98a7d16b5c6da3738722f15c7caca4749b5ce7b55 |
/*
* llib little C library
* BSD licence
* Copyright Steve Donovan, 2013
*/
#ifndef _LLIB_VALUE_H
#define _LLIB_VALUE_H
#include "obj.h"
typedef enum ValueType_ {
ValueNull = 0,
ValueRef = 0x100,
ValueString = ValueRef + 1,
ValueError= ValueRef + 2,
ValueFloat = 1,
ValueInt = 2,
ValueValu... | C | CL | ad8145e14214f5325376a24a6c85e69d12ab2205123448d0a44cd16cbc4c2d00 |
/*
SDL_ps2_main.c, fjtrujy@gmail.com
*/
#include "SDL_config.h"
#ifdef __PS2__
#include "SDL_main.h"
#include "SDL_error.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <kernel.h>
#include <sifrpc.h>
#include <iopcontrol.h>
#include <sbv_patches.h>
#include <ps2_filesystem_driver.h... | C | CL | 21e0629b62d4ec8c5f938c18269a3d79c95709a77f839114d10df8a7a9966e13 |
#ifndef _PQ_PARSE_HEADER_SEEN
#define _PQ_PARSE_HEADER_SEEN
#define COLORFUL_OUTPUT
#include "colorful_output.h"
#include "pq_records.h" // Include for all code linking pq_parse
// Constants
#define PQ_HH 1
#define PQ_HH_TEXT "HydraHarp"
#define PQ_PH 2
#define PQ_PH_TEXT "PicoHarp 300"
#define PQ_HH_V1 1
#define... | C | CL | 7a40c0be8592354d063416281e99b828095e26fbe24c003ffaed8a16593e1596 |
/**
* @file EXTI.h
* @brief EXTI.h
* @author bespoon.com
* @date 30/1/2015
*/
/*
* Copyright (C) Bespoon 2014-2015. No Part of the source code shall be
* reproduced, transmitted, distributed, used nor modified in any way without
* the express prior written authorization of Bespoon.
*/
/* Define to prevent rec... | C | CL | 9cba3d8355277ac10b984095587cf916db5d120a6cd566938918b22e531ee472 |
/*
* Automatically Generated from Mathematica.
* Thu 8 Apr 2021 07:50:09 GMT+08:00
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "H_ankle_joint_right_src.h"
#ifdef _MSC_VER
#define INLINE __forceinline /* use __forceinline (VC++ specific) */
#else
#define INLINE static __inline__ ... | C | CL | 0d47cf331731151cdb8b0cc326cced052572203cc6cf90911e2f9b2158395ab4 |
/**
* \file
* \brief Simple heap allocator.
*
* This file implements a very simple heap allocator, based on K&R malloc.
*/
/*
* Copyright (c) 2008, ETH Zurich.
* All rights reserved.
*
* This file is distributed under the terms in the attached LICENSE file.
* If you do not find this file, copies can be found... | C | CL | e12a9228adb81d59d1344f2fc66907c6e83d57b9e036663193e42094acf10a22 |
/**
* 定义目标语言中的一等对象的实现
*/
#pragma once
#include "base/hash.h"
#include "base/vector.h"
#include <stdbool.h>
#include <stdint.h>
typedef enum {
OBJECT_BOOL,
OBJECT_CHAR,
OBJECT_FUN,
OBJECT_INT,
OBJECT_MAP,
OBJECT_NIL,
OBJECT_SYMBOL,
OBJECT_VECTOR,
} OBJECT_T;
typedef enum {
FUN_N... | C | CL | 78b438d4697eb730a60bb1698a6fe59e64f514361e8d07c610362ff81554dd16 |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | C | CL | f8cc3a12202fbdf91632ddc0004e393847b8b39aa97c1db7627f3eae2e8de801 |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | C | CL | 6df7529ee68573740ee1457e3680d82c5428a708d4480b1edae5eb61615d80bb |
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class edu_wpi_first_wpilibj_hal_DigitalGlitchFilterJNI */
#ifndef _Included_edu_wpi_first_wpilibj_hal_DigitalGlitchFilterJNI
#define _Included_edu_wpi_first_wpilibj_hal_DigitalGlitchFilterJNI
#ifdef __cplusplus
extern "C" {
#endif
/*
... | C | CL | 6c6f4cbd10b88b60f7cb005e0e118b0ed33309ffb11d2768ac83a04ffca2dd2f |
/**********************************************************************************************************************
* COPYRIGHT
* -------------------------------------------------------------------------------------------------------------------
* \verbatim
*
* This software is copyright prot... | C | CL | 280456d256e39d4add30d4dab1d15e6590d3603603d3ce33edc103ef39e02b26 |
/**
* @file ci_flash_data_info.c
* @brief flash data struct
* @version
* @date
*
* @copyright Copyright (c) 2019 Chipintelli Technology Co., Ltd.
*
*/
#include <stdint.h>
#include <ci112x_system.h>
#include <string.h>
#include <stdlib.h>
#include "ci_flash_data_info.h"
#include "ci_log.h"
#include "dichot... | C | CL | 62ee708e3c5bada66729f37ac71526d998fbff40fbb0d702c20fb96cd7cfb9d1 |
/**
******************************************************************************
* @file max7312.c burn in system
* @author h&h
* @version
* @date 2018
* @brief max7312 driver
******************************************************************************
**/
#include "include.h"
#define MA... | C | CL | a75aee37a9942bed1b94e325cb6c1cf3a39330bba9f290645c12f911502c23f4 |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2019 RDK Management
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain ... | C | CL | 3037fd5328dae9fecdd7ceb75ab7e24f77322c06a56f4bfe9d934126c8d22dd1 |
#include <esp_types.h>
#include "string.h"
#include "esp_log.h"
#include "lwip/err.h"
#include "lwip/sockets.h"
#include "lwip/ip_addr.h"
#include "lwip/api.h"
#include "lwip/netdb.h"
#include "esp_system.h"
#include "platform/platform.h"
#include "tcpip_adapter.h"
#include "esp_alink.h"
#define SOMAXCONN 5
static c... | C | CL | cde8ce14d3f6dd8540532477dbdbfa6e5dde2f2e61c92e24579a086a199e9a33 |
/*************************************************************************
*
* Copyright 1993 Mentor Graphics Corporation
* All Rights Reserved.
*
* THIS WORK CONTAINS TRADE SECRET AND PROPRIETARY INFORMATION WHICH IS
* THE PROPERTY OF MENTOR GRAPHICS CORPORATION OR ITS LICENSORS AN... | C | CL | de041c287d81af3c53735681bb1c2eed5dae168d512606cb33913c29b19d3a74 |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | C | CL | 3295ca8b34a4eb0d3f7fb2aea70e4ef642cd625680a8b8662c74f75e1a3f9e9a |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_memccpy.c :+: :+: :+: ... | C | CL | 071fb3aca1c2dcd7a271274cfc70ca8819e1a1d7d5375cdf8dfb3c7253325bec |
#ifndef NODE_H
#define NODE_H
/**
* @brief Represents the type of the node stored in the stack node
*/
typedef enum DataType { TOKEN, ASTNODE } DataType;
typedef void *Element;
/**
* @brief The stack node which holds the token/ASTNode
*/
typedef struct stack_elt_t *StackNode;
typedef struct stack_elt_t
{
DataT... | C | CL | 8c9e3ef65869dca8ef3ceb4861acce4cfc30e33e201d0a7880134fe3c9274619 |
//[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[[
/**
* GAME FREAK inc.
*
* @file bct_surver.h
* @brief サーバー
* @author tomoya takahashi
* @data 2007.06.19
*
*/
//]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]]
#ifndef __BCT_SURVER_H__
#define __BCT_S... | C | CL | 54c91cb7dc5d022deff98b42e53d5885b279d4942e88e25d167d7e0607a872fd |
#ifndef MACRO_G4GEMEIC_C
#define MACRO_G4GEMEIC_C
#include <GlobalVariables.C>
#include <g4detectors/PHG4SectorSubsystem.h>
#include <g4main/PHG4Reco.h>
#include <string>
R__LOAD_LIBRARY(libg4detectors.so)
int make_GEM_station(string name, PHG4Reco *g4Reco, double zpos, double etamin, double etamax, const int N_S... | C | CL | 2a5268a87fa5515376936b7daa5cce98193dced99092c3a97e056674e66f4b12 |
/*
* Copyright (C) 2015-2018 Alibaba Group Holding Limited
*/
#ifndef __AWSS_DEV_AP_H__
#define __AWSS_DEV_AP_H__
#if defined(__cplusplus) /* If this is a C++ compiler, use C linkage */
extern "C"
{
#endif
int awss_dev_ap_stop(void);
int awss_dev_ap_start(void);
int wifimgr_process_dev_ap_switchap_request(void *c... | C | CL | eae3eaf34753832b2e23fd5268fc48d31a956cb0fef13302889f699d01cdc30c |
/* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/* lib/krb5/krb/authdata_dec.c */
/*
* Copyright 1990 by the Massachusetts Institute of Technology.
* All Rights Reserved.
*
* Export of this software from the United States of America may
* require a specific license from the United States G... | C | CL | 41289115648d4ff6993ca4ca1ccce27f164ec3a87c49fdc6158e21cbb65a87a3 |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* itoa.c :+: :+: :+: ... | C | CL | cc9cf2fba1f4ba01139af3be4d57ac0f346af06409a81536a17bd568717d76b6 |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | C | CL | ddfef63c1b69bc78069f5cf1a05b7fe2302a21124cb36cca5a73ec4d46bf9c42 |
/* server process */
#include <my_global.h>
#include <mysql.h>
#include <ctype.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <unistd.h>
#include <stdio.h>
#include <pthread.h>
#include <stdlib.h>
#include <signal.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
... | C | CL | 8e5be1dddb12ee3466cfc9e06564d04192720e50c451d8a671ab069ba3750c35 |
/**
* ========================================================================
* @file db.h
* @brief
* @author smyang
* @version 1.0
* @date 2012-07-12
* Modify $Date: 2012-08-02 18:30:56 +0800 (Thu, 02 Aug 2012) $
* Modify $Author: smyang $
* Copyright: TaoMee, Inc. ShangHai CN. All rights reserved.
* ====... | C | CL | 9e3939098c0c15cbc6c3570c18f0ef3c5c2ca0b662f918712f2116936a6697fb |
/******************************************************************************
* Copyright 2016
* Author: Ponnarasu M.
* No guarantees, warrantees, or promises, implied or otherwise.
* May be used for hobby or commercial purposes provided copyright
* notice remains intact.
*
****************************... | C | CL | ccc34127bbc5c9e82f777bbd146e47f888048a245fb69966b166f18c183a066e |
/******************************************************************************
Copyright © 1995-2003,2004,2005-2014 Freescale Semiconductor Inc.
All Rights Reserved
This is proprietary source code of Freescale Semiconductor Inc., and its use
is subject to the CodeWarrior EULA. The copyright notice above does no... | C | CL | 91f91a36a66434827b30794718a457c58ef84ef6a8fabd0b48ab87c9f4d28d18 |
cocci_test_suite() {
u32 cocci_id/* drivers/media/rc/ir-xmp-decoder.c 77 */;
u32 *cocci_id/* drivers/media/rc/ir-xmp-decoder.c 76 */;
u8 cocci_id/* drivers/media/rc/ir-xmp-decoder.c 75 */;
struct xmp_dec *cocci_id/* drivers/media/rc/ir-xmp-decoder.c 36 */;
struct ir_raw_event cocci_id/* drivers/media/rc/ir-xmp-dec... | C | CL | 2029b36c071cd7ce434749f50516b1db8e7f31ec160ec34bcc41e23e084286f1 |
/** $Id: tape.c 1182 2008-12-22 22:08:36Z dchassin $
Copyright (C) 2008 Battelle Memorial Institute
@file tape.c
@addtogroup tapes Players and recorders (tape)
@ingroup modules
Tape players and recorders are used to manage the boundary conditions
and record properties of objects during simulation. There are two... | C | CL | 79010f4fa60dbf0e3fe1be6a3befc1813e14206fe4341da1664ab4318a7809f7 |
/**TODO Tentar colocar os DTO pertecentes ao protocolo aqui.
Ex: A estrutura de dados utilizado para informar a configuração
A estrutura de dados de envio dos sensores telosb
**/
/* Abaixo structs do protocolo firmado */
/*Definição de DTOs e payload*/
//Não funcionou trafegar enum mesmo após o cast
// typedef ... | C | CL | a79b0b215290cd59fcc6d0ac0775cd736fe8d86691ca47d23ba18aa8db8deb37 |
//-----------------------------------------------------------------------------
// File: D3DUtil.h
//
// Desc: Helper functions and typing shortcuts for Direct3D programming.
//
//
// Copyright (C) 1997 Microsoft Corporation. All rights reserved
//------------------------------------------------------------------------... | C | CL | 339551a1b42481a7076144d61a761f872cef9d65cbb3aa186405199e4d45068f |
/*=======================================================================================*
* @file MyComp_ut_mocks.h
* @author Dami Pa
* @version 0.0.1
* @date 2020-03-17
* @brief Header file for MyComp_ut_mocks module
*
* This file contains function declarations for Mocks generation.
*=======... | C | CL | 494b410c053dc7def2382f24f1642d15df7fce03b9e110361a243d3fa179f28f |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | C | CL | 11a44562176e021f09e5b5c64357ce445da1cf883217be3e8857e5e7fe01f417 |
/*
* ============================================================================
*
* Authors: Prashant Pandey <ppandey@cs.stonybrook.edu>
* Rob Johnson <robj@vmware.com>
*
* ============================================================================
*/
#ifndef _GQF_FILE_H_
#define _GQ... | C | CL | d8b8b4b006e3f33aa77ecaa740e134ea61c5f779bcf772b4b4073fa203542a4c |
/*
* Copyright (c) 2003 Apple Computer, Inc. All rights reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in... | C | CL | fda5ce19bee6b928424a297200f102ee38a191df07cf909e2368eafa8cd6aa1e |
/*
Copyright (c) 1990, 1991 X Consortium
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | C | CL | eaf7656334d35b0578b172ba38a00dd9d2561bba2e99b878c9b26984459a0bcd |
#include <rescol/pot.h>
#include <rescol/viewerfunc.h>
static char help[] = "write potential curve";
int main(int argc, char **args) {
PetscErrorCode ierr;
MPI_Comm comm = MPI_COMM_SELF;
POT pot;
ViewerFunc viewer; ViewerFuncCreate(&viewer, comm);
int J = 0;
PetscReal mu = 1.0;
ierr = PetscInitialize... | C | CL | d36fde419b2b88829e54b00049762a292922749cca9ac71028dca479d57f70d0 |
/* PBMLIB_FUSION TOOL VERSION: 4.46 */
/* GENERATED: THU JAN 20 2011 */
/*=============================================================================
P B M L I B _ F U S I O N _ S V C . C
GENERAL DESCRIPTION
This is an AUTO GENERATED file that dispatches RPC requests targetting the
pbmlib_fu... | C | CL | 88bb810a11457cc1c69b19016ac7ef355d872fc3a5ef014cf21c07cda8ea64b4 |
/* Last Update on 2014-03-19 */
/* Add a factor of 1.4 in the .eps field */
/* Update on 2014-02-20 */
/* In this version, data are dumped to one single core (ThisTask = 0) that writes. */
/* In the old version, zero values are generated in random snapshots on UMASS, no clue yet. */
#include <mpi.h>
#include <stdio.h... | C | CL | f74e6617cd668883b4ae277fc42339e66ae1746fb2abf4e5d3053320dd083e18 |
/**
******************************************************************************
* @file stm8s_itc.h
* @brief This file contains all functions prototype and macros for the ITC peripheral.
* @author STMicroelectronics - MCD Application Team
* @version V1.1.1
* @date 06/05/2009
********************... | C | CL | 28f07ada226f723918f5da2c43e70b15a8948e16774906543e7bf2cdd453e38c |
#include "board.h"
#include "io.h"
#include "lcd.h"
#define MAIN3
int cpt=0;
volatile int pushed=0;
//****************************************************************************
// functions prototypes
//****************************************************************************
extern void irq_enable();
extern vo... | C | CL | a0f78bc0354d5ab5a86e22e144d4b1604fb2d9cac2219aded488c8f56e191a33 |
/*
* File: RF_uart.h
* Author: Tankin
*
* Created on 2 juillet 2018, 15:05
*/
/******************************************************************************/
/************ Declaration de la trame RF ***************************/
/******************************************************************************/
/*... | C | CL | 4866cd0437f739f6a99452e5318f7b34db422203cf8a099d90d1da0032c4aedb |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | C | CL | 7d1b0c4b9d95acc5f0c2170d4f98b531e3e8794cd8348d9879f9bb08c0f0e793 |
/* -----------------------------------------------------------------------
* examine.c nfsc SAS
*
* $Locker: $
*
* $Id: examine.c,v 1.5 92/10/07 15:14:12 bj Exp $
*
* $Revision: 1.5 $
*
* $Header: Hog:Other/inet/src/c/nfsc/RCS/examine.c,v 1.5 92/10/07 15:14:12 bj Exp $
*
*---------------------------------... | C | CL | e24f8c15bf7f38f3583bd91a7dbb05a9aadbbba18b249da644f1083517843cc4 |
/* d9lgic.f -- translated by f2c (version 20041007).
You must link the resulting object file with libf2c:
on Microsoft Windows system, link with libf2c.lib;
on Linux or Unix systems, link with .../path/to/libf2c.a -lm
or, if you install libf2c.a in a standard place, with -lf2c -lm
-- ... | C | CL | 1bf00f6d5ce61d7b7cdf359759533151c83c039ec9aec0b0c402bc817046cfc4 |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | C | CL | 73ca9b9344a33185f72d97871f26ea33e775abc0267234fa3954cc2154ce5954 |
/*
* CANopen Object Dictionary storage object (blank example).
*
* @file CO_storageBlank.c
* @author Janez Paternoster
* @copyright 2021 Janez Paternoster
*
* This file is part of CANopenNode, an opensource CANopen Stack.
* Project home page is <https://github.com/CANopenNode/CANopenNode>.... | C | CL | 6cce7b9cab170a9194e19c0d9bc2f9969a17423dd0a344f9cf640dc1757489a1 |
/* XACC.C - Routinen zur Behandlung des XACC-Protokolls
nach der Spezifikation vom 28. November 1992,
erweitert um Mag!X 2.0
(c) 1993 Harald Sommerfeldt @ KI im Maus-Netz
E-Mail: Harald_Sommerfeldt@ki.maus.de */
/* Geschichte:
22.03.93: erste Version
03.08.93: luft auch unter Spei... | C | CL | b88b39edaa148348315096321a5d3b15ca33a59552d5a121079be518e1c63d3c |
#include <std.h>
inherit OBJECT;
void create(){
::create();
set_name("plate");
set_id(({"plate","dinner plate","magical plate","china plate","plate of cleanliness"}));
set_short("%^RESET%^%^MAGENTA%^China Plate of C%^CYAN%^l%^MAGENTA%^eanl%^BOLD%^i%^RESET%^%^MAGENTA%^ness%^RESET%^ +1");
set_obvious_shor... | C | CL | c75ab1e1e8df0ce81daf8f677aeaac7fc8bae9dd369cc031d9a029a71c97edfd |
#include "usart.h"
#include "config.h"
#include "stdio.h"
#include "struct_all.h"
#include "protocol.h"
#define BYTE0(dwTemp) (*(char *)(&dwTemp))
#define BYTE1(dwTemp) (*((char *)(&dwTemp) + 1))
#define BYTE2(dwTemp) (*((char *)(&dwTemp) + 2))
#define BYTE3(dwTemp) (*((char *)(&dwTemp) + 3))
/... | C | CL | b37a4bc3df388f6449b0613d7d5f5d038223327b1864f6368f325102e6598e7b |
/******************************************************************************
* Copyright (c) 2002 Linux UPnP Internet Gateway Device Project *
* All rights reserved. *
* ... | C | CL | ed8675028e4b64f737e55a47a533d3ef4ff13f5ff2fa16575d026ad80057f17b |
#ifndef OBJ_VYLE2_H
#define OBJ_VYLE2_H
#include "obj.h"
typedef enum Vyle2State
{
VYLE2_STATE_INIT,
// Introduction states.
VYLE2_STATE_LYLE_WALK_ANGRY,
VYLE2_STATE_CAMERA_PAN_TO_MACHINE,
VYLE2_STATE_KEDDUMS_MEOW,
VYLE2_STATE_CAMERA_PAN_TO_LYLE,
VYLE2_STATE_LYLE_APPROACH_MACHINE,
VYLE2_STATE_VYLE_ACTIVATE_MA... | C | CL | 0b144a098a14bc9fb060cd19f84f53dcbe3ed64a03606c8b7be07f7cae886be7 |
/*
Author: Debbie Nuttall <debbie@cromulence.co>
Copyright (c) 2015 Cromulence LLC
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to... | C | CL | bd63310bddd8b5f2821f78a03a56a9af0bc28d3e42216d248173f8636f4f91f8 |
#include "pcm.h"
static volatile uint32_t * pcmMap = 0;
static bool pcmInitialized;
static bool pcmRunning;
static uint32_t * buffer;
static int32_t syncWait;
static VirtToBusPages bufferPages;
//static DMAControlBlock * rxCtrlBlk;
//static DMAControlBlock * txCtrlBlk;
//static unsigned * rxtxRAMptr;
// TODO
stat... | C | CL | 535f0d3911042ef37005357dfcbed9f2574fc4fcdaca8b11bd41e8f8ddbb2433 |
//{{NO_DEPENDENCIES}}
// Microsoft Developer Studio generated include file.
// Used by Aggreg.rc
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is only intended as a supplement to the
// Microsoft Classes Reference and related electronic
// documentation provided with the libra... | C | CL | 15cc9708afb333cab983ae62259581b479ff907d4915340bdc1a0f1e121ef62f |
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* raycast_utils.c :+: :+: :+: ... | C | CL | c9bdba6651362976077b549cdb4d95e466e799feec5a9db1dc19e225655e6ef3 |
/*
TITLE : Analog Output using PWM
DATE : 2019/11/12
AUTHOR : e-Yantra Team
AIM: To decrease the brightness of Led and simultaneously increase the brightness of Led,
and repeat this cyclically, for this program a led needs to connected to PB3.
*/
#define F_CPU 16000000UL // Define Crystal Frequency of Uno Board
#... | C | CL | dafc5860d14bb5a84ce45a6775b143e68a24b14110f730cf55ba21cfb482fd81 |
#ifndef _PLUGIN_MAIN_H_
#define _PLUGIN_MAIN_H_
#ifdef __cplusplus
#define C_LINKAGE "C"
#else
#define C_LINKAGE
#endif /* __cplusplus */
/** The prototype for the application's Plugin_main() function */
extern C_LINKAGE int Plugin_main(Plugin* plugin);
#endif /* _PLUGIN_MAIN_H_ */ | C | CL | b83cf51e4fd61324ad44934854f0646b323621f4025b0bb33cdfca3e5f85ada1 |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | C | CL | 9ce814f06b84a1ee31dd7010c84e9ee57ad972f855f0aa5632663f17c6d75a8c |
#include "stinger.h"
#include "stinger-shared.h"
#include "stinger-physmap-new.h"
#include "csv.h"
#include "xmalloc.h"
#include "timer.h"
/* BC */
#include "main.h"
#include "bcTreeDS.h"
#include "bcAlgorithms.h"
#include "dsUtils.h"
#include "dsAccum.h"
#include "timing_util.h"
/* GTRI-2 */
#include "clustering.h"
... | C | CL | 891fbebd123e7d46f8ddd0f83ab93366cdb82b6a7316788ca69fb579989d5063 |
typedef struct point { int x, y; } point;
/* Global variables */
char char_global = 'A';
int int_global = 1;
float flt_global = 1.0F;
double dbl_global = 1.0;
point struct_global = { 1, 3 };
int tab_global[10] = { 0, 1, 1, 2, 3, 5 };
int int_funct(int param) { return param+3; }
/* char_funct:
* -... | C | CL | 31fe5161ae553b1390ba0479f16d792ea381c29b70b12062a31f947ce1981961 |
#include <types.h>
#include <yaos/init.h>
#include <yaos/time.h>
#include <yaos/printk.h>
#include <yaos/smp.h>
#include <yaos/cpupm.h>
#include <yaos/tasklet.h>
#include <yaos/sched.h>
#include <asm/current.h>
extern __thread ulong msec_count;
static void test_nsec (u64 nownsec,void *param)
{
pthread p = current;
... | C | CL | ba3f4342c13fe3d7a4c4e6e928490b23984d29605d13a39360c0eddb91468156 |
#define NULL ((void*)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t; typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1
/* Forward d... | C | CL | 4d389b7e80019ffd79f7a3935da4af311b143099c917851b29dbfc54673b664f |
/*
vblo.c = rutinas de bloqueo para codigo complejo
de acceso a disco en ambiente multi-usuario.
Sintaxis dentro de VPG:
Ba; * activar sistema de bloque en multi-usuario *
Bc; * cerrar o desactivar sistema de bloqueo *
Bb; * bloquear o preparar para codigo complejo *
Bu; * desbloquear o liber... | C | CL | 27e032acf87cc107d92ff7379fe59e7403425942395072c3538979f19eb502af |
/**
* Copyright (C) 2013-2015
*
* @author jxfengzi@gmail.com
* @date 2013-11-19
*
* @file XcpwsClient.c
*
* @remark
*
*/
#include <tiny_log.h>
#include <channel/SocketChannel.h>
#include <channel/ChannelIdleStateHandler.h>
#include <channel/stream/StreamClientChannel.h>
#include <codec-http/HttpMessageCo... | C | CL | 9ca8cd6ee9960851a2278c94b3fa263df80f9584f84f9977b282f317b91f87dc |
#include <proc.h>
#include <error.h>
#include <assert.h>
#include "vc4_drv.h"
#include "vc4_drm.h"
#include "vc4_regs.h"
static void submit_cl(struct device *dev, uint32_t thread, uint32_t start,
uint32_t end)
{
/* Set the current and end address of the control list.
* Writing the end register is what star... | C | CL | cc310b6f4163bfa797cceaa716f424aab66837a5c72f67a23b28691cbeb6324b |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.