text
stringlengths
65
6.05M
lang
stringclasses
8 values
type
stringclasses
2 values
id
stringlengths
64
64
#include <linux/build-salt.h> #include <linux/module.h> #include <linux/vermagic.h> #include <linux/compiler.h> BUILD_SALT; MODULE_INFO(vermagic, VERMAGIC_STRING); MODULE_INFO(name, KBUILD_MODNAME); __visible struct module __this_module __section(.gnu.linkonce.this_module) = { .name = KBUILD_MODNAME, .init = init_...
C
CL
c1dd05a75549e7f49de7bdd6e0d6cb813cc2281e18aa8b6493c7612d658bdb87
#include "Common.h" #include <time.h> #include <sys/types.h> #include <sys/timeb.h> int printTime(char *ampm) { char buff[128];//, ampm[] = "AM"; __time64_t lgtime; struct __timeb64 timstruct; struct tm *today, *thegmt, xmas = { 0, 0, 12, 25, 11, 90 }; /* set time zone from TZ environment variable....
C
CL
dbb045c8c28ffd1048d26f4cd938add73cb11e7c7c38ade81f574f24aca03d90
#include "malloc_internal.h" #include <stdio.h> #include <stdlib.h> #include <sys/mman.h> #include <unistd.h> // TODO Do not use printf/dprintf for errors printing /* * This file handles pages allocation and freeing. * * The process asks the kernel for pages using `mmap` * and frees them using `munmap`. * * Th...
C
CL
e3f577ce20c24a1ab168eeb2c973f48040162fc9c17a27b269147b364b8ad472
/* * this file will handle the ipc message queue operations * author <ngocgia73@gmail.com> */ #include <linux/kernel.h> #include <linux/module.h> #include <linux/slab.h> #include <linux/dma-mapping.h> #include <drv_ipc_msgque.h> #include <ipc-common.h> static IPC_MSQINFO *g_msqinfo = NULL; static DEFINE_SPINLOCK(l...
C
CL
b0b4d3af3c77f8030974f65e30291866572587f61e9eca95c1c4feb285a7522b
#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
f0a34c2e5896f4342b1f12a9b4126456d3059534f880af604203c0ae36476f07
/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/nvram/import/nvram-format.C $ */ /* ...
C
CL
4aa0ed0aa6b69dc4116f87c87fae9985d374e4315abba6734218663af342030e
#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
5aefd9b587c08fdbf3219ff5228921473c6c77556391b94b673eb6434761127b
#include <assert.h> #include <signal.h> #include <stddef.h> #include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <unistd.h> #include "context.h" #include "preempt.h" #include "queue.h" #include "uthread.h" #define MAXTID 65535 enum State{ RUNNING, READY, BLOCKED, EXITED }; t...
C
CL
27868f04fab096469a2c0554cef9c04a9c5840830090a986f2157ce91cc2a80c
/* Copyright (C) 1991 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at...
C
CL
8b537aa20148e4750a1a1b61e9394d1cb924536b7f9960c8c5212101e4c82306
#ifndef GUI_STATE_H_ #define GUI_STATE_H_ #include <SDL.h> // General flag for marking an error in one of the GUI states. extern int isError; // All the state IDs. typedef enum { MAIN_MENU, CAT_CHOOSE, CAT_CHOOSE_SKILL, MOUSE_CHOOSE, MOUSE_CHOOSE_SKILL, GAME_PLAY, LOAD_GAME, GAME_EDITOR, EDIT_GAME, SAVE_G...
C
CL
7f6dbff8e90e88152f6f23140b5a9dddcadd02577c87d9aba91c6f6f2545fb2c
/* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % % % % % ...
C
CL
6a3e3c7ed9fdcf4a2830f8737af7809c9b0fbcf60017ad76c4de923e311c1f6b
/** * \file appl_generic_power_level_client.c * * \brief This file defines the Mesh Generic Power Level Model Application Interface * - includes Data Structures and Methods for Client. */ /* * Copyright (C) 2018. Mindtree Ltd. * All rights reserved. */ /* --------------------------------------------- Header...
C
CL
2b19b788914c31d53ecd01da1af27d9eb5cbb449e9fbe02e373d08bdce399791
/*** headerID = "dirs.h 1.0 (c) 1988 S. Savitzky ***/ /*********************************************************************\ ** ** Dirs -- Header file for Directory trees ** ** 880111 SS create from DD/data ** 880419 SS rename from data to dirs ** 880619 SS remove dirs.files ** \*************************************...
C
CL
2fd3428f41cd5f53d8c0a1c8b68149155c3c4da699eb503d1a308ca546c24bf4
#include "minifyjpeg_clnt.c" #include "minifyjpeg_xdr.c" #include <stdio.h> #include <stdlib.h> CLIENT* get_minify_client(char *server){ CLIENT *cl; /* Your code goes here */ cl = clnt_create(server, JPEG_PROG, JPEG_VER, "tcp"); if (cl == NULL) { clnt_pcreateerror(server); } else { ...
C
CL
d3889b40d3cf223ac98b1197a3c0b15cc37cd490d7a9bc0bfd8ce5e9118b2203
#ifndef CACHEGRAND_STORAGE_DB_H #define CACHEGRAND_STORAGE_DB_H #ifdef __cplusplus extern "C" { #endif #include "storage/channel/storage_buffered_channel.h" //#define STORAGE_DB_SHARD_VERSION 1 //#define STORAGE_DB_SHARD_MAGIC_NUMBER_HIGH 0x4341434845475241 //#define STORAGE_DB_SHARD_MAGIC_NUMBER_LOW 0x524100000000...
C
CL
53b0df7e9ec44957e30405b99dffe13bf0bf857e0f9aeed38f9dcfed4394ce3c
#ifndef clox_vm_h #define clox_vm_h #include "object.h" #include "table.h" #include "value.h" #define FRAMES_MAX 64 #define STACK_MAX (FRAMES_MAX * UINT8_COUNT) typedef struct { ObjClosure* closure; uint8_t* ip; Value* slots; } CallFrame; typedef struct { CallFrame frames[FRAMES_MAX]; ...
C
CL
13cf40a058de036b0ec30267d7160ea44c8471bc462e5964a0119d630f811cf8
#include <ctype.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <time.h> #include "lizard.h" #include "order.h" #include "lizgame.h" #include "lizhex.h" #include "lizmisc.h" /* ---------------------------------------------------------------------- -- -- Prototypes -- --------------------------...
C
CL
16c0b51ed2abd0195a8fef8c4545d0cbb05b7465f2056f09430f15e6c7118970
#include "Dahua.h" #include "BleMaster.h" #include "chip.h" #include "delay.h" #include "wt588d.h" #include "network.h" #include "led.h" #include <string.h> static unsigned char DahuaFrameBuf[DAHUA_FRAME_MAX_LEN] = {0X00}; static DahuaFrame_t DahuaFrame; DahuaRet_t DahuaInit(void) { unsigned char *pos = DahuaFra...
C
CL
cd6125c7cc5a1d2fdd899b0fb57368bd992ff4d3731a0bef80d382ec28b055e8
// C:\diabpsx\PSXSRC\PRIMPOOL.H #include "types.h" // address: 0x801335C0 // line start: 65 // line end: 71 void PRIM_GetPrim__FPP8POLY_FT4(struct POLY_FT4 **Prim) { } // address: 0x801575FC // line start: 65 // line end: 71 void PRIM_GetPrim__FPP7LINE_F2(struct LINE_F2 **Prim) { } // address: 0x800836AC // l...
C
CL
d9ed654fd068a7c6c7d6081931c9ef7c3952ff3888714a260e7e4b09cb14d079
#include <stdio.h> #include <memory.h> #include <fcntl.h> #include <unistd.h> #include <stdlib.h> #include <wait.h> //defines #define INPUT_SIZE 1000 #define JOBS_NUM 1000 #define HOME "HOME" #define SUCCESS 1 #define FAIL -1 #define TRUE 1 #define FALSE 0 #define ERROR "Error in system call" //declarations int callE...
C
CL
24ae13cdeffa2d09a53e56889f1a1a1770e505585f9cced1c4dbc6dbc15e2bb1
//////////////////////////////////////////////////////////////////////////////// // _______ ____________________________________ // // \\ . \ _________/ . . . . . . . . . . . . . . . . / // // \\ . \ ___/ . . . . . ______________________________/ ...
C
CL
2957bb050465be8691a162edab58473d5bbbf46f0080ec24f06bf6c1d1cda3d0
/* * Copyright 2020 Makani Technologies LLC * * 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 applicable law ...
C
CL
5304ba205a1af3ae79951ac04dd3405fbcd38135d6d67f91a6a3c261e5e83a8d
#include <stdio.h> #include <stdlib.h> #include <math.h> #include <time.h> #include <sys/time.h> #include "thingmodule.h" #define max(a,b) (((a) (b)) ? (a) : (b)) #define min(a,b) (((a) < (b)) ? (a) : (b)) /* Subtract the ‘struct timeval’ values X and Y, * storing the result in RESULT. * Return 1 if the di...
C
CL
f71c54a359606d29ad4f5edc93864f86645ec0f64f1d91924353df3bfcd600ac
/* KallistiOS ##version## getaddrinfo.c Copyright (C) 2014 Lawrence Sebald Originally: lwip/dns.c Copyright (C) 2004 Dan Potter */ /* The actual code for querying the DNS was taken from the old kos-ports lwIP port, and was originally written by Dan. This has been modified/extended a bit. The ol...
C
CL
97c8e4e0c09c095bcaf457e3b17c87b47d8957b497b2aa55fdbb9e1d9caea486
/* * Copyright (c) 2014-2020 Pavel Kalvoda <me@pavelkalvoda.com> * * libcbor is free software; you can redistribute it and/or modify * it under the terms of the MIT license. See LICENSE for details. */ // cbor_serialize_alloc #pragma clang diagnostic ignored "-Wdeprecated-declarations" #pragma GCC diagnostic igno...
C
CL
c79e19f87547db9772bde4b1d076f85cefc90405dd51091494bc16ee80d2c21c
/* Advanced Computing Center for Research and Education Proprietary License Version 1.0 (April 2006) Copyright (c) 2006, Advanced Computing Center for Research and Education, Vanderbilt University, All rights reserved. This Work is the sole and exclusive property of the Advanced Computing Center for Research and Edu...
C
CL
e96540a064862179d1feccdc326c9a69f65bd074b4ca74b711ddfe3116e33c6d
/* * THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABIL...
C
CL
4cd709e961fba35922e97e5e4bc4a5314bf125460a347ca1f45a54091980edc7
static char *rcsid = "$Id: UiPageSettings.c,v 1.1 1992/03/26 18:13:50 kny Exp kny $"; #include "UiIncludes.h" static void uibindpsvariables(void); static void uiupdatepsvariables(void); static Widget uicreatepsformdialog(); static Widget uicreatepslabel(Widget parent); static Widget uicreatepsmargin(Widget parent, ...
C
CL
8e8ceff5c162dd25ca7f9e9af4e8af4b90d051ba2fc70ff30c47a57e3f26f049
#pragma GCC diagnostic ignored "-Wunknown-pragmas" #pragma region HEAD #pragma region DESCRIPTION /* using light SDL2 template: https://github.com/Acry/SDL2-C-KDev_App_Template_light * DeCasteljau Subdivision * cubic bezier curves * http://www.cubic.org/docs/bezier.htm */ /* DEFINED PROGRESS GOALS * connect 4 po...
C
CL
23315803290cfb3b4892f0e126324637582d2e1f4af49e5945b3981adec1110d
/* * Dynamic Data exchange library [libdy] * Copyright (C) 2015 Taeyeon Mori * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option)...
C
CL
a5ab58f1a92834ef5ab5ed540e6f653292dd55c88dff013c2a8dab27065f9c5d
#ifndef SS_RENDER_PASS_I #define SS_RENDER_PASS_I #include <gs/gs.h> #define _base(base_type) base_type _base // Abstract interface for all render passes passes typedef struct render_pass_i { void (* pass)(gs_command_buffer_t* cb, struct render_pass_i* pass, void* paramters); } render_pass_i; #endif
C
CL
11f001499f194a075ebd4773f842ec6f1c9cba21f75807d651a9c350e85127e4
/* ** EPITECH PROJECT, 2021 ** zappy_linked ** File description: ** internal functions */ #include <time.h> #include <stdio.h> #include "zappy_server_structs.h" /** * update the timer by increasing last "checkpoint" by delta time * @param timer struct containing every needed information: * last_checkpoint.sec last...
C
CL
4ca4bff9ba324b97a79dca0261dcd5a1bf2dfd4dbd73e0051af57cdf12fce8f6
// // shoes/http/winhttp.c // the central download routine // (isolated so it can be reused in platform/msw/stub.c) // #include "shoes/app.h" #include "shoes/ruby.h" #include "shoes/internal.h" #include "shoes/config.h" #include "shoes/version.h" #include "shoes/http/common.h" #include "shoes/http/winhttp.h" void shoe...
C
CL
3ec2a7a0af048e1695eb75141028f17ea77adf08a342c1211a8c8fd017011d1a
#include <petsc/private/vecimpl.h> #define DEFAULT_STASH_SIZE 100 /* VecStashCreate_Private - Creates a stash,currently used for all the parallel matrix implementations. The stash is where elements of a matrix destined to be stored on other processors are kept until matrix assembly is done. This is a simple...
C
CL
e5ef91a529a84962d7ed023a9f3234467b0e3b296d5a898c61a01de62af84eeb
/**************************************************************** * aoctree.c: ****************************************************************/ /****** Copyright (C) 1995 by Klaus Ehrenfried. Permission to use, copy, modify, and distribute this software is hereby granted, provided that the above copyright n...
C
CL
cb442707b1446258aacbc57a54f28cdc8f540400c267fdc75a0e4b76f19a3880
#ifndef _IAM_CONFIG_H_ #define _IAM_CONFIG_H_ #include <nn/vector.h> struct nn_log; struct iam_config { struct nn_vector roles; struct nn_vector policies; }; void iam_config_init(struct iam_config* iamConfig); void iam_config_deinit(struct iam_config* iamConfig); bool load_iam_config(struct iam_config* iam...
C
CL
396ae0cfc801fa87d632a5fa640172cc7b3724b7f20a1782caadbc5ef54de192
#ifdef _MS_F_ #define dvmh_line_ dvmh_line #define dvmh_init2_ dvmh_init2 #define dvmh_init_lib_ dvmh_init_lib #define dvmh_exit_ dvmh_exit #define dvmh_array_create_ dvmh_array_create #define dvmh_template_create_ dvmh_template_create #define dvmh_distribute_ dvmh_distribute #define dvmh_redistribute2_ dvmh_redist...
C
CL
1da61fc7894aa8f4d6758572db873b63c9a4e813325511fc11f808f2afc562d8
#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
0b0b5168ad34e1eac6ce4b6a41e794d9ef487a53a575b039377e987a26e4ace8
/** * \file handlerrunners.c * \author Christian Kruse, <cjk@wwwtech.de> * \brief server communication functions * * This file contains functions to communicate with the forum server */ /* {{{ Initial comments */ /* * $LastChangedDate$ * $LastChangedRevision$ * $LastChangedBy$ * */ /* }}} */ /* {{{ Include...
C
CL
41bc012372452d89db825e82c6a3f5bef85535599f6c3f4757d8323bbd5aafd1
#ifndef ROTARY_ENCODER_C_H #define ROTARY_ENCODER_C_H #include "../core/core.h" typedef struct { /* Configuration Variables */ GPIO_TypeDef* SignalAGPIOX; GPIO_TypeDef* SignalBGPIOX; GPIO_TypeDef* ButtonGPIOX; uint SignalBPin; uint SignalAPin; uint ButtonPin; void (*OnRotaryEncoderAdjust...
C
CL
f859d1c0400dd6469ab1f4aff77f8f7f60b5c2d71421af763428b8349520ea6d
#include <jni.h> #include <sys/types.h> #include "iostream.h" #include "ansi.h" #include "LiaisonBody.h" #include "LiaisonBody_e.h" EXTERN int vt_initialize(void); /*definie dans vt_body.c */ EXTERN int vt_iterate(void); /*definie dans vt_body.c */ JNIEnv *env_appel_vt; jobject obj_appel_vt; jclass cls; jmethodID ...
C
CL
726283d89121ef11c3ac30915450f33ed403c2012a55d14e547b5c227e697a13
/* * Routines dealing with the "position" table. * This is a table which tells the position (in the input file) of the * first char on each currently displayed line. * * {{ The position table is scrolled by moving all the entries. * Would be better to have a circular table * and just change a couple of po...
C
CL
e0faba7c819b5b322c0f0f9425e8dc4e3b143e111339f8e03d5605f5e519fb34
#ifndef __MAIN_H #define __MAIN_H #include "ucos_ii.h" #include "qxwz_rtcm.h" #include "usart.h" #include "bluetooth.h" #include "wt5883.h" #include "key_pow.h" #include "ad.h" #include "spi.h" #include "fm25v01.h" #include "sim7600.h" #include "ef_qx.h" #include "led.h" #include "delay.h" #include "includes.h" #in...
C
CL
b8e84d3558062859d88c186a412eeed18ef6bb33ea7d22cd873407a7a5b7c514
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* set_label_op_params.c :+: :+: :+: ...
C
CL
f5c9b869f536ac7b8d3ec2191a2a5907b0eee2df226e14ec377b0cc34576a5e7
/************************************************************************** Copyright:novigo Author:fangzhenmu@novigo.com.cn Date:2016-03-18 Description: **************************************************************************/ #include "cp_filter.h" cp_filter_t *cp_filter_create(); /*模块创建接口,表示创建一个模块*/ cp_int...
C
CL
ed637e222f1c3e710de4544e850ca91f4b3c2b713c5b40ea7d186d0186cea112
#include <assert.h> #include <getopt.h> /* getopt_long() */ #include <unistd.h> #include <malloc.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/time.h> #include <asm/types.h> /* for videodev2.h */ #include <pthread.h> #include <A20V4l2.h> #define CAMERA_PORTING_DEBUG #i...
C
CL
0589df94e8eec16d75fc6c034bd58a1c09107cbbb4cc6714545b4ea5c498ccca
/******************************************************************************* * File Name: Green.h * Version 1.90 * * Description: * This file containts Control Register function prototypes and register defines * * Note: * ******************************************************************************** ...
C
CL
e8b68adb611323923aca9fec6804eaac4b4737ecc8ae42af63ef40dab01b7fa0
// TO-DO: // * hook up with RL -- needs ANN for Q // * the calculation of "error" in back-prop is unclear // TO-DO: (Cantonese task) // * need vector representation for individual words // TODO (yky#1#): There is a convergence problem -- it almost always converges and really quickly #include <stdio.h> #include <stdl...
C
CL
6c2e208d644b759f312a64e7bafff5e91e9a533deb3ebdc7005497c0d9182cb7
/* * Write a program to check a C program for rudimentary syntax errors like * unmatched parentheses, brackets and braces. Don't forget about quotes, both * single and double, escape sequences, and comments. (This program is hard if * you do it in full generality.) */ #include <stdio.h> main() {
C
CL
00408efe8d9d2850de44d79dce3bb06a65330c312213ce519e2d40a0f5f2d040
typedef struct _DOUBLE_LIKE_NODE { int data; struct _DOUBLE_LIKE_NODE *prev; struct _DOUBLE_LIKE_NODE *next; } DOUBLE_LIKE_NODE; typedef int STATUS; // 0 fail , 1 success DOUBLE_LIKE_NODE* create_double_link_node(int value); STATUS insert_data_into_double_link(DOUBLE_LIKE_NODE **ppDLinkNode, int data); STATUS swit...
C
CL
30ddd4eb037224d636a1e7ce3ba272316df9a144b12747a00097c05acc00935e
/* Data value and formatted write programs Copyright (c) 2016, 2017. Francis G. McCabe 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...
C
CL
a9f04e3fd1659368f4e7a43891620b481e74f67231382809183b3acb30b51288
/* Copyright 2020 The Chromium OS Authors. All rights reserved. * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "chipset.h" #include "console.h" #include "peci.h" #include "peci_customization.h" #include "timer.h" #include "util.h" /* Console output...
C
CL
2fb2fa509ee860185990fcf1f1b7c58885991f309f01747afa2dbf5623f52713
#ifndef PET_SKIP_H #define PET_SKIP_H #include <pet.h> #include "context.h" #include "state.h" #if defined(__cplusplus) extern "C" { #endif enum pet_skip_type { pet_skip_if, pet_skip_if_else, pet_skip_seq }; /* Structure that handles the construction of skip conditions. * * scop_then and scop_else represent t...
C
CL
4ce21dcc8289d6c21efb225139fd29f5a5ada993cc8aefb87f6f21be0ca55138
/** * @file src/app/peripheral_mod/vin/sensor/mn34222_a12/sensor_mn34222_a12.c * * Implementation of SONY MN34222 related settings. * * History: * 2015/06/02 - [cichen] created file * * Copyright (C) 2013, Ambarella, Inc. * * All rights reserved. No Part of this file may be reproduced, stored ...
C
CL
b29b1801d6798d9e269337e2131f8b4a72307257add80351aef623c2f3459522
/* * lcd_driver.h * * Created on: Apr 25, 2019 * Author: deepe * * https://mil.ufl.edu/3744/docs/lcdmanual/commands.html */ #ifndef INC_LCD_DRIVER_H_ #define INC_LCD_DRIVER_H_ #include "stdint.h" #include "tasks_driver.h" #include "driverlib/gpio.h" #include "inc/hw_memmap.h" #include "driverlib/pin_map....
C
CL
f7e6939b6acdb9c95a279ca882696ea60a060b01332bb99b4f0baffc3968ba90
#ifndef _GAMEDB_H #define _GAMEDB_H #include "core/db/asyndb.h" #include "../avatar.h" int32_t init_gamedb_module(); int32_t gamedb_request(player_t,db_request_t request); #endif
C
CL
6d92ef0a272243a814eb5f089dd871ff85fb166f8348aba37fecd33e6b7e36f7
/* * Predmet: Formalne jazyky a prekladace (IFJ) - FIT VUT v Brne * Hlavickovy subor error kniznice pre projekt IFJ2020 * Vytvoril: Martin Novotny - xnovot1r * * Datum: 10/2020 */ #ifndef IFJ2020_ERROR_H #define IFJ2020_ERROR_H #include "tokenList.h" #define ERR_LEX 1 #define ERR_SYN 2 #define ERR_SEM_UNDEF 3 #de...
C
CL
018f684ebc5314aa4f89f9ccc07dd0ebdbf473bc5a9bbdaa6e3f3bcaf1292d5b
//说明:FSK载波 过零发送模式 //从 plcfsk_rx_v12z_hd.c 修改而来 #include <hic.h> #include "type.h" #include "system.h" #include "timer8n.h" #include "soc_25xx.h" #include "tool.h" #include "debug.h" #include "config.h" #ifdef CONFIG_400BPS_PLC #define CCPMODE 0x02 #define COMPMODE 0x01 #define RH_Time 0X05 #define RL_Time 0X33 #...
C
CL
ef27f4aeeca36153e00fc277e2300cce32fd897eacd98af232c5abfa7c53fb35
/* * Copyright 2007-2015 National ICT Australia (NICTA), Australia * * 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 us...
C
CL
bec785d27f7c5ebdc325dac6d618218048cf013b38cdd69e88bdd76044f74836
//////////////////////////////////////////////////////////////////////////////// // // // Copyright (C) 2003-2008, Coolsand Technologies, Inc. // // All Rights Reserved ...
C
CL
fccfc117c4524f324f39192e4cd58862f7b98577c942b2d277f03f6b1466f630
/* A simple obj 3D file format mesh loader library Copyright (c) 2015 Md Imam Hossain This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. Permission is granted t...
C
CL
93beb597cb00b6c619cbcab17dd5e54ef24b693b83290385beb71f04cd36d1f6
#include "SPI_Slave.h" #include "CRC16.h" #include "main.h" #include <string.h> #define SPI1_MOSI_PIN GPIO_Pin_7 #define SPI1_MISO_PIN GPIO_Pin_6 #define SPI1_SCLK_PIN GPIO_Pin_5 #define SPI1_NSS_PIN GPIO_Pin_4 #define SPI1_GPIO GPIOA #define SPI1_GPIO_PeriphClock RCC_APB2Perip...
C
CL
a351b9521cb9b7e572f0a7ba2230144991ba7a1081bb63e7021052dc13a82d0f
/* File: lab-mar-22.c simple implementation of a binary search tree keys are strings partial solution to lab Mar 22/24 CS1023 Winter 2011 */ #include "strlib.h" //for StringCompare function typedef struct nodeT { string key; struct nodeT *left, *right; } nodeT, *treeT; /*function prototypes*/ ...
C
CL
e4cab1452178da67e28fcd23f56d99b4fa2f44966d94e7027de37bef3faeb7e3
/** * @file * kernel login. * * VxWorks compatibility layer in SylixOS. * * Copyright (c) 2001-2014 SylixOS Group. * All rights reserved. * * Author: Han.hui <sylixos@gmail.com> */ #define __SYLIXOS_KERNEL #include "vxWorksCommon.h" /* * return the WIND kernel revision string */ char *...
C
CL
5c438de5a3f512a935e188acf599740aae105f65778dc1bf9505a777bb434116
../../../../../../GoogleProtobuf/src/google/protobuf/io/printer.h
C
CL
b107ee3abbabfbcdf4714ccc091b8fc179bbc53bec5c0478dfa746a2955657b1
#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
d3753b4d509ce19285455195ed2ab95ddd3f59e51a4dccd9cbffef3fcf63b396
/* * Coefficients for vector log2f * * Copyright (c) 2022-2023, Arm Limited. * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception */ #include "math_config.h" /* See tools/v_log2f.sollya for the algorithm used to generate these coefficients. */ const struct v_log2f_data __v_log2f_data = {.poly =...
C
CL
0f15517b25efd9dfd732b175a29c8573a28670cfc8d65d2d4908fb7319f03c9d
#include <err.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "ElementArray.h" #include "Error.h" #include "ErrorLL.h" #include "Type.h" #include "Hash.h" #include "PreDef.h" #include "SymbolAll.h" /*For error reporting*/ extern int yylineno; extern int colno; static char *errMsg; struct Error ...
C
CL
c5acec729de0197e5f16238d46adfef67b44f5db671ad62c6eaa21605d7fd24d
/* ================================================================================= T O P L E V E L M O D E M U X (TLMM) H A R D W A R E A B S T R A C T I O N L A Y E R FILE: HALtlmmModem.c DESCRIPTION: This module contains Modem processor-specific ...
C
CL
c7fb1709835e3dac45d8d48c3ee8b6e346c853e2637b2224a2dd877ba0f6f3c3
/* DO NOT EDIT THIS FILE - it is machine generated */ #include <jni.h> /* Header for class zime_media_ZIMEVideoClientJNI */ #ifndef _Included_zime_media_ZIMEVideoClientJNI #define _Included_zime_media_ZIMEVideoClientJNI #ifdef __cplusplus extern "C" { #endif /* * Class: zime_media_ZIMEVideoClientJNI * Method: ...
C
CL
7af21c6650e5dd5a395737cfe15daca36b1d538111c8338d1389be2071fc737c
/* // Dao Graphics Engine // http://www.daovm.net // // Copyright (c) 2013, Limin Fu // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, // are permitted provided that the following conditions are met: // // * Redistributions of source code must retain the abov...
C
CL
eb7146242b14dc47fafdd7b1365dacc238fa9dade62781a7a9005e1552f04c14
// Fimbulwinter // John Shedletsky // // For up to date Fimbulwinter info, see: // http://www.stanford.edu/~jjshed/chess #define BUILD_DATE "November 29, 2002" #define VERSION "5.00" #define INI_FILENAME "fimbulwinter_5_00.ini" #include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h> #include <s...
C
CL
52dddc9527ecd62d2c246e679a1942a227ad55da441fa9b624f0bd9afe39f632
#include <stdlib.h> #include <stdio.h> #include <pthread.h> #include <math.h> #include <time.h> // mutex and the global that it protects pthread_mutex_t mut = PTHREAD_MUTEX_INITIALIZER; double pi_approx = 0; // calculates the nth term in the gregory leibniz series (outlined below) double get_term(double n) { double ...
C
CL
b633f7f2387a2a9dd4f28332d915244b947aab8fea1d6028e2119e32ce282343
/*===---- shaintrin.h - SHA intrinsics -------------------------------------=== * * Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. * See https://llvm.org/LICENSE.txt for license information. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception * *===----------------------------...
C
CL
29dc687117c543bc40f843702b60c3e71d581a567235f645a542740d4cc182fc
#ifdef HAVE_CONFIG_H #include "../../../ext_config.h" #endif #include <php.h> #include "../../../php_ext.h" #include "../../../ext.h" #include <Zend/zend_operators.h> #include <Zend/zend_exceptions.h> #include <Zend/zend_interfaces.h> #include "kernel/main.h" #include "kernel/memory.h" #include "kernel/object.h" #i...
C
CL
b6fbe633bd8cd9633f4c1cd3337c1f0ab0ae7fcf93197cffd71d8712f6efc1b7
#include <assert.h> #include "tsvector.h" // Not threadsafe void TSVectorNew(ts_vector *v, int elemSize, VectorFreeFunction freefn, int initialAllocation) { assert(v != NULL); // Create mutex pthread_mutexattr_t reentrantAttr; pthread_mutexattr_init(&reentrantAttr); pthread_mutexattr_settype(&reentrantAttr,...
C
CL
c4e8ba23210993e24a9e7855293c1fb2ddb48fa3e687181e6f9d0426be3439de
#ifndef _wem_suboff_h_ #define _wem_suboff_h_ void wem_suboff(float **uz, float **mpp, float **wav, int nt, float ot, float dt, int nmx,float omx, float dmx, int nhx,float ohx, float dhx, float sx, int nz, float oz, float dz, float gz, float sz, float **velp, int nref, float fmin, float fmax, int ...
C
CL
563d56ac7469560cc5a15ba1fd02bca6f0c9fd5ab8919167f89a1fa2970c852d
/* Copyright Statement: * * This software/firmware and related documentation ("MediaTek Software") are * protected under relevant copyright laws. The information contained herein * is confidential and proprietary to MediaTek Inc. and/or its licensors. * Without the prior written permission of MediaTek inc. and/or ...
C
CL
fbd2f6fcdab38243bde5dd1c237795eb2da8b7f7362304b73a5c9585d0587285
#ifndef HW5_COMMON #define HW5_COMMON // Wait and signal operations, given to semop. #define WAIT -1 #define SIGNAL 1 // The shared memory information. #define SHMDATA struct shmdata SHMDATA { int shmid; int semkey; int mutex; int o; int h; int b; }; // The shared memory buffer type. #define...
C
CL
3426eddc07fc66ca9a1f07cabd7a7e5c916e8847cffd6283458e6e597cec1e13
#ifndef XSWAP_H_ #define XSWAP_H_ /** \file \brief Меняет местами два массива. */ /** Меняет местами массивы из элементов типа float \param[in] n Размер массива \param[in] x Ссылка на первый элемент первого массива \param[in] incx Расстояние между элементами первого массива ...
C
CL
f469a2c2f2ebbf29b8a4bd91ba7e8228d97acf03805668664643397d3fc609e5
#include "stdafx.h" #include "resource.h" LRESULT CALLBACKAbout(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); HBITMAP WINAPIcopyScreenToBitmap(LPRECT lpRect); BOOL WINAPIsaveBitmapToFile(HBITMAP hBitmap, LPSTR lpFileName); int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR...
C
CL
964eae7077e9ef1b47f43213eab64d8787176b22b2cf80f0f8f12c6fd637d309
#define PREFIX "ACPI: " #define ACPI_BATTERY_VALUE_UNKNOWN 0xFFFFFFFF #define ACPI_BATTERY_CLASS "battery" #define ACPI_BATTERY_DEVICE_NAME "Battery" #define ACPI_BATTERY_NOTIFY_STATUS 0x80 #define ACPI_BATTERY_NOTIFY_INFO 0x81 #define ACPI_BATTERY_NOTIFY_THRESHOLD 0x82 #define _COMPONENT ACPI_BATTERY_COMPONENT ACP...
C
CL
05af829d413e0ea93e6406d80417281c72abf242fda5fe979491f2ba3d133bc7
#ifndef _SDMMC_SDCARD_H #define _SDMMC_SDCARD_H #include <rtthread.h> #include <board.h> #include "stm32f4xx.h" #include "stm32f4xx_hal_sd.h" #include <rtdevice.h> #if defined(BSP_SDIO_SDCARD) #define SD_TIMEOUT ((uint32_t)100000000) #define SD_DMA_MODE 1 //0:轮询模式 1:DMA模式 extern SD_HandleTypeD...
C
CL
f0e71f364faf823a08b299f9a421d660e5f1f552522fe35298aa69e8d0b7b45a
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <unistd.h> #include <signal.h> /* =================================================================== ===============================MACROS============================== =================================================================== */ #define B...
C
CL
68613754854e39dfc4a8cb97f1d2833dffb3507db65f286332fe55376dc1d37a
#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
f6a1d48ccca804b7f59370051851de337c62ed5e6d8b0d76985d432fda76c170
/* * Copyright (c) 2017-2018 Thomas Roell. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal with the Software without restriction, including without limitation the * rights to us...
C
CL
9840f5258630ce171745b89640686a0a1ff4c496d392c0b1eca207a30db1a702
#include <timeout_queue.h> #include <check.h> /** Test Cases for TMQ Insert */ /** NULL struct tmq * */ START_TEST(test_tmq_bump_null_elem) { int ret, key = 1; struct tmq *tmq = tmq_create (); struct tmq_element *elem = tmq_element_create (&key, sizeof(key)); tmq_insert (tmq, elem); ret = tmq_...
C
CL
14b9580ae119e09af7c808006817a1b695289e77e571843bbc7068b19bd320ce
/* -*- Mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- ** ** Copyright (C) 2000-2008 Opera Software AS. All rights reserved. ** ** This file is part of the Opera web browser. It may not be distributed ** under any circumstances. ** ** Yngve Pettersen ** */ #ifndef SSLSTAT_ENUM_H #define SSLSTAT...
C
CL
fcba80acc2eb16206a0aeae627fb3390b893cd654293de407279993584b07621
#include <stdio.h> #include <string.h> #include <time.h> #include <unistd.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <fcntl.h> #include <pthread.h> #include <arpa/inet.h> #include <stdlib.h> #include <sys/time.h> #include <netdb.h> #include <malloc.h> #include <getopt.h> #include...
C
CL
d8dd62fd01e10c58902d17ffc868f21214b14c196bc90c452072e3e73936b6ae
/** @file Register names for TCSS USB devices <b>Conventions</b>: - Prefixes: Definitions beginning with "R_" are registers Definitions beginning with "B_" are bits within registers - Definitions beginning with "V_" are meaningful values of bits within the registers Definitions beginning with "S...
C
CL
fa77e97616ae52ecd24184de318580b9864357b8f5dc95ea5ae82de7a0189d57
/* * Author: Brian Pak <brian.pak@kapricasecurity.com> * * Copyright (c) 2014 Kaprica Security, 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 wi...
C
CL
cce6ad2c23eb806ea4a2d85b1b247f882cf88160893c3e78dbae9625e1714409
#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
bed542775870fcdec82cb5e0b73e9ef6c91a0dba2e2e1b42f05ef9ce60021d50
/* * airkiss_cloud.h * * Created on: 2016年3月31日 * Author: itmaktub */ #ifndef APP_USER_AIRKISS_CLOUD_H_ #define APP_USER_AIRKISS_CLOUD_H_ #if defined(GLOBAL_DEBUG) #define AIRKISS_CLOUD_DEBUG(format, ...) log_printf("AIRKISS_CLOUD: ", format, ##__VA_ARGS__) #else #define AIRKISS_CLOUD_DEBUG(format, ...) ...
C
CL
1d5370aeeacf6125a50e79f7214a8a966b89e30221510407abdd2de62cf31efb
/** * @file rsi_commands.h * @brief Header for rsi_commands.c * @author Keith Broerman * @version 0.1 * @date 2014-05-22 */ #ifndef RSI_COMMANDS_H_ #define RSI_COMMANDS_H_ #include "commonTypes.h" sInt32_t processPollRsd(uInt8_t * rsiResponseFrame); sInt32_t processPollApm(uInt8_t * rsiResponseFrame); sInt32_t...
C
CL
44edd6e90b8264dfe0fc20cc1f3b0387cb3d947d61bc52856006743852c14bb0
// // This file is AUTOMATICALLY GENERATED, and should not be edited unless you are certain // that it will not be re-generated anytime in the future. As generated code, the // copyright owner(s) of the generating program do NOT claim any copyright on the code // generated. // // Run Length Encoded (RLE) bitmaps...
C
CL
18ae49f8c54d3c1329fd2b46e9bd227f96e83c164167760fafb34123b9c7a529
/* binary tree */ #include "include/vr_bitree.h" #include "include/vr_stack.h" vr_bitree_nd* vr_bitree_nd_new(); void vr_bitree_nd_des(vr_bitree_nd* nd,vr_kv_des_func des); void vr_bitree_nd_set(vr_bitree_nd* nd,void* key,void* val); void vr_bitree_nd_get(vr_bitree_nd* nd,void** key,void** val); void vr_bitree_get_tgl...
C
CL
9171f2cbbc69cdc45d14c48710a0cd3cb1a954bbc0696d376131c68446e0a0ac
#include "json.h" /* */ unsigned int json_decode_array(json_t *parent, char *p) { char *f = p + 1; json_t *j = connect(parent); j->type = ARRAY; while(*f != ']') { f += skip_whitespace(f); switch((char)*f) { case '[': f += json_decode_array(j, f); break; case '{': /* Object */ f += jso...
C
CL
9fd198439959e536707e739a85ffdfaa7000f872489b8aee6e0fe326659ad4e4
#pragma once // ---------------------------------------------------------------- // ---------------------------------------------------------------- // ---------------------------------------------------------------- // -------- タッチ処理 // タッチ識別ID列挙型 enum engineCtrlTouchId{ ENGINECTRLTOUCHID_NONE, ENGINECTRLTOUCHID_T...
C
CL
ebdbe57c845fb10c6e7c5937ea2c8c09cbda5f92beb597acb1f5afda81cd86c5
#include "async.h" #include "tame.h" #pragma once extern int dsdc_heartbeat_interval; extern int dsdcs_getstate_interval; extern int dsdc_missed_beats_to_death; extern int dsdc_port; extern int dsdc_proxy_port; extern int dsdc_slave_port; extern int dsdc_retry_wait_time; extern u_int dsdc_rpc_timeout; extern u_int...
C
CL
f2d7076fba42b6ad60923f5ca22b1e9333f6bd3456d5bbeb44d0c9b577844c97
/* * Copyright (c) 2014-2016, dennis wang * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of source code must retain the above copyright * notice, this list o...
C
CL
55fc6d5de4a152c3f30229e712677435890d966d6d5432fc360c86a56d192938