text
stringlengths
3.12k
18.7k
/* Copyright (c) 2013-2014, The Linux Foundation. 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 ...
/* * User Space library to access the Security hardware * Copyright 2005-2009, 2011 Freescale Semiconductor, Inc. All Rights Reserved. * * This library is free software; you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as * published by the Free Software Foundati...
// // Created by svalov, kryvashek on 05.07.16. // #define _GNU_SOURCE #include <funcResults.h> #include <moarInterface.h> #include <string.h> #include <moarInterfaceLoraPrivate.h> #include <moarInterfaceCommand.h> #include "moarLayerEntryPoint.h" #include <settings.h> #include <loraInterface.h> #include <signal.h> #in...
/* * camconditionalaccess.c - CAM (EN50221) Conditional Access Resource * Copyright (C) 2007 <NAME> * * Authors: * <NAME> <<EMAIL>> * * This 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 Found...
/* libdescrip - Vertical grid descriptor library for FORTRAN programming * Copyright (C) 2016 Direction du developpement des previsions nationales * Centre meteorologique canadien * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser Ge...
#include <stdlib.h> /* ANSI C standard library */ #include <stdio.h> /* ANSI C standard input/output library */ #include <stdarg.h> /* ANSI C standard arguments library */ #include "vpi_user.h" /* IEEE 1364 PLI VPI routine library */ #define CMD_FPU_ADD 1 #define CMD_FPU_MUL 2 #define CMD_FPU_DIV 3 /* prototypes ...
#pragma once //#include <commctrl.h> #include <mmc.h> #include <tchar.h> #include <iostream> #include <sstream> #ifndef STRINGS_ONLY enum UPDATE_VIEWS_HINT {UPDATE_SCOPEITEM = 1000, DELETE_SCOPEITEM, UPDATE_RESULTITEM, DELETE_RESULTITEM}; enum ITEM_TYPE {SCOPE = 10, RESULT}; #define IDM_BUTTON1 ...
// general headers #include <stdio.h> #include <stdlib.h> #include <errno.h> // multiprocessing includes #include <unistd.h> #include <sys/wait.h> // shared memory #include <sys/ipc.h> #include <sys/shm.h> #include <semaphore.h> // signal #include <signal.h> // Time included for testing execution time #include <tim...
/* * cli.c - part of CWDebug, a source-level debugger for the AmigaOS * This files contains the routines for the CLI on AmigaOS. * * Copyright(C) 2018-2021 <NAME> */ #include <exec/types.h> #include <proto/dos.h> #include <proto/exec.h> #include <stdio.h> #include <string.h> #include "cli.h" #include "d...
/* Copyright (C) 2004 <NAME> <mmj at mmj.dk> * * $Id$ * * 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, mod...
//////////////////////////////////////////////////////////////////////////////////////// //Header Files. #include<stdio.h> #include<stdlib.h> #include<math.h> #include<stdint.h> #ifdef __GNUC__ #include <x86intrin.h> #endif #ifdef _MSC_VER #include <intrin.h> #endif #pragma intrinsic(__rdtsc) //Repea...
/****************************************************************************/ /* */ /* PC-DCL - DCL command line interpreter for Windows. */ /* Copyright (C) 1991-2007 by <NAME> */ /* ...
/*=============================================================================================== Real-time stitching example Copyright (c), Firelight Technologies Pty, Ltd 2004-2011. This example shows how you can create your own multi-subsound stream, then in realtime replace each the subsound as it plays them. ...
/** * * OpenSSL ECDSA * */ #include "vnecdsa_org.h" #include "vncrypt_bn.h" #include <openssl/ec.h> #include <openssl/ecdsa.h> #include <openssl/objects.h> #include <openssl/err.h> #include <openssl/ecdh.h> #include <assert.h> #include <string.h> typedef struct tagVNEcdsa_ORG_Ctx { VNAsymCryptCtx_t mCtx; EC_...
#include "flow-graph.h" #define _LJIT_LABEL_FG_INIT(size) \ _ljit_label_fg_node(1, 0, size, NULL, NULL) #define _LJIT_LABEL_FG_FREE() \ _ljit_label_fg_node(0, 1, 0, NULL, NULL) #define _LJIT_LABEL_FG_GET(label, fun) \ _ljit_label_fg_node(0,...
/* * Copyright (c) 2013-2016, Xerox Corporation (Xerox) and Palo Alto Research Center, Inc (PARC) * 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 r...
/* * Copyright (c) 2010, <NAME> * 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 code must retain the above copyright notice, * this list of cond...
#include<stdio.h> #include<stdlib.h> #include<string.h> #define HI_4(x) ((x >> 4) & 0x0F) #define LO_4(x) (x & 0x0F) #define HI_5(x) ((x >> 5) & 0x1F) #define LO_5(x) (x & 0x1F) #define KEYMASK 0x03FF /* Simp-DES S-boxes */ const unsigned char S0[4][4] = { {1,0,3,2}, {3,2,1,0}, {0,2,1,3}, {3,1,3,2} }; const unsi...
// Copyright (C) 2016, <NAME> <<EMAIL>> #include <stdlib.h> #include <stdbool.h> #include <string.h> #include <assert.h> #include <math.h> #include <stdio.h> #include "gaussian_conv_vyv.h" #include "fba.h" #include "consistent_registration.h" void Dual_TVL1_optic_flow_multiscale( float *I0, // source imag...
#include "drally.h" extern byte ___1a1138h__VESA101h_DefaultScreenBufferB[]; extern byte ___1a112ch__VESA101_ACTIVESCREEN_PTR[]; extern byte ___1a10dch[]; extern byte ___1a1ef8h[]; extern byte ___1a0e28h[]; extern byte ___1a01e0h[]; extern byte ___196a94h[]; extern byte ___185c7ah[]; extern byte ___1a10b8h[];...
#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...
#include <ncurses.h> #define NUMBER_OF_SHIPS 31 struct plancoords { int y, x; }; struct player { char *name; int ship_position[14][44]; char history[14][44]; }; struct gameLogic { struct player players[2]; int isFinished; int turnOfPlayer; int isSettingShips; }; struct plancoords cursor; struct gameLogic g...
#include <stdio.h> #include <stdlib.h> #include <stddef.h> #include <mars/base.h> #include <mars/error.h> #include <mars/mutex.h> #include <mars/workload_queue.h> #include "callback_internal_types.h" #include "kernel_internal_types.h" #include "workload_internal_types.h" #include "context_internal.h" static inline ...
/* Adapted 2014 by <NAME> from OpenSSL091c crypto/hmac/hmac.c * Copyright (c) 2004 The OpenSSL Project. All rights reserved * according to the OpenSSL license. * Specializes openssl's file to use the hash function sha256, avoiding * use of "object-oriented" programming style (engines etc) used in * recent versio...
/*- * Copyright (c) 2020 <NAME>. 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 code must retain the above copyright * notice, this list of conditions and...
#include <pcap.h> #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <netinet/if_ether.h> #include <netinet/tcp.h> #include <netinet/ip.h> #include <netinet/ip_icmp.h> #include <net/ethernet.h> #include <netinet/ether.h> #include ...
/* * Generated by asn1c-0.9.22 (http://lionet.info/asn1c) * From ASN.1 module "ULP-Components" * found in "../supl-common.asn" */ #include "FQDN.h" static int permitted_alphabet_table_1[256] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, /* */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ...
/* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ /* * * Copyright (C) 2017-21 Corellium LLC * All rights reserved. * */ #define _POSIX_C_SOURCE 200809L #include <stdio.h> #include <stdint.h> #include <stdlib.h> #include <string.h> #include <ctype.h> #include "iphone-macho.h" enum itype { UNKNOWN, ...
#include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <3ds.h> #include <3ds/services/fs.h> #include "util.h" #include "../ui/section/task/task.h" extern void cleanup(); static int util_get_line_length(PrintConsole* console, const char* str) { int lineLength = 0; while(*str ...
/* * (C) Copyright 2002,2003, Motorola Inc. * <NAME>, (<EMAIL>) * * (C) Copyright 2002 <NAME> <<EMAIL>> * * See file CREDITS for list of people who contributed to this * project. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as ...
/*- * SPDX-License-Identifier: BSD-2-Clause * * Copyright (c) 2022 <NAME> <<EMAIL>> * * 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 * not...
/* jbigtopnm - JBIG to PNM converter This program was derived from jbgtopbm.c in <NAME>'s JBIG-KIT package by <NAME> on 2000.05.11 The main difference is that this version uses the Netpbm libraries. */ #include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <jbig.h> #include "pnm.h" ...
/**************************************************************************//** * @file main.c * @version V3.00 * @brief Demonstrate the usage of clock fail detector and * clock frequency range detector function. * * SPDX-License-Identifier: Apache-2.0 * @copyright (C) 2018 Nuvoton Technology C...
/* * Copyright (c) 2020, 2021, <NAME> <<EMAIL>> * 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 lis...
// WJF 6/17/16 Win-18 #include "4DPlugin.h" #include "utilities.h" #define _SECOND ((ULONGLONG) 10000000) #define _MINUTE (60 * _SECOND) #define _HOUR (60 * _MINUTE) #define _DAY (24 * _HOUR) HANDLE hLogFile = NULL; BOOL bLogIsOpen = FALSE; CHAR logFilePath[MAX_PATH]; CHAR szLogsPath[MAX_PATH]; // WJF 7/11/16 W...
/* -*- linux-c -*- */ /* fewbody_classify.c Copyright (C) 2002-2004 <NAME> 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 2 of the License, or (at your option) any ...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include "psh.h" #include "parser.h" #include "parse.tab.h" #include "scan.yy.h" token_list *new_token_list() { token_list *tl = malloc(sizeof(token_list)); tl->tokens = malloc(sizeof(void) * TOKEN_LIST_SIZE); tl->tokens[0] = NULL; return tl; } void ...
#include <stdlib.h> #include "game.h" #include <stdio.h> #include "myLib.h" #include "gameBack.h" #include "startScreen.h" #include "pauseScreen.h" #include "gameOver.h" #include "winScreen.h" #include "spriteSheet.h" #include "collisionMap.h" #include "sound.h" #include "Slap-SoundMaster13-49669815.h" #include "MarioP...
/*- * Copyright (c) 2012-2015 <NAME> * * 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 list of conditions and the following...
/* -*- Mode: C; c-basic-offset:4 ; -*- */ /* * * Copyright (C) 1997 University of Chicago. * See COPYRIGHT notice in top-level directory. */ #include "mpioimpl.h" #ifdef HAVE_WEAK_SYMBOLS #if defined(HAVE_PRAGMA_WEAK) #pragma weak MPI_File_open = PMPI_File_open #elif defined(HAVE_PRAGMA_HP_SEC_DEF) #pragma...
char card[] = {0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xdd,0xd1,0x11,0x11,0x1d,0xd1,0x11,0x11,0x1d,0xd1,0x11,0x11,0x1d,0xd1,0x11,0x11,0x1d,0xd1,0x11,0x11,0x1d,0xd1,0x11,0x11,0x1d,0xd1,0x11,0x11,0x1d,0xd1,0x11,0x11,0x1d,0xd1,0x11,0x11,0x1d,0xd1,0x11,0x11,0x1d,0xd1,0x11,0x11,0x1d,0xd1,0x11,0x11,0x1d,0xdd,0xdd,0xdd,0xdd,0xdd,...
/* * Copyright (c) 2014-2020 JL1TTD <NAME> * * File: gps_weeks.c * Author: JL1TTD <NAME> * * Created on September 1, 2020, 0:28 */ #include "gps_weeks.h" typedef struct { uint16_t gps_week; uint16_t year; uint8_t month; // 1 origin uint8_t day; } gps_week_t; #define DAYSMONTH_SIZE 1...
// // Created by fox on 2017/10/10. // Skip Lists: A Probabilistic Alternative to Balanced Trees // indexable skip list // duplicated score and node #include <stdlib.h> #include <stdio.h> #include <limits.h> #include <string.h> #include "skiplist.h" #include <time.h> // from 0 to n #define SKIPLIST_MAX_LEVEL 15 #defi...
#include "copyright.h" /*============================================================================*/ /*! \file dump_binary.c * \brief Function to write an unformatted dump of the field variables. * * PURPOSE: Function to write an unformatted dump of the field variables that * can be read, e.g., by IDL scripts...
/* ********************************************************************************************* */ /* * C Template for Kernel Execution * */ /* * Author: <NAME> * */ /* ********************************...
/* * Copyright (c) 2013-2014 Intel, Inc. All rights reserved * * $COPYRIGHT$ * * Additional copyrights may follow * * $HEADER$ */ #include "ompi_config.h" #include "ompi/mca/pml/pml.h" #include "ompi/communicator/communicator.h" #include "opal/datatype/opal_convertor.h" #include "ompi/mca/mtl/base/base.h" #in...
#include "os.h" #include <libsec.h> static void load128(uint8_t b[16], uint32_t W[4]) { W[0] = (uint32_t)b[15] | (uint32_t)b[14]<<8 | (uint32_t)b[13]<<16 | (uint32_t)b[12]<<24; W[1] = (uint32_t)b[11] | (uint32_t)b[10]<<8 | (uint32_t)b[ 9]<<16 | (uint32_t)b[ 8]<<24; W[2] = (uint32_t)b[ 7] | (uint32_t)b[ 6]<<8 | (uin...
/****************************************************************************** * * Copyright (C) 2006-2017 by * The Salk Institute for Biological Studies and * Pittsburgh Supercomputing Center, Carnegie Mellon University * * Use of this source code is governed by an MIT-style * license that can be found in the ...
/***************************************************************************** cpp.c c/c++ preprocessor Copyright (c) 2021, 2022 <NAME> See LICENSE file for more details. **************...
/* @author <NAME> Run by clang 560mainSpot.c -lglfw -framework OpenGL; ./a.out */ #include <stdio.h> #include <stdlib.h> #include <math.h> #include <stdarg.h> #include <GLFW/glfw3.h> #include "500shader.c" #include "530vector.c" #include "510mesh.c" #include "520matrix.c" #include "520camera.c" #include "540text...
// // Created by lzf on 2021/2/20. // #include "boot.h" #include "logger.h" #include "service.h" #include "direct_forward.h" #include "server_forward.h" #include <stdio.h> #include <stdlib.h> #include <string.h> #include <confuse.h> #include <signal.h> struct fs_ctx_s { struct event_base* event_base; service_c...
#include "openocf.h" #include "discovery.h" /* #include <limits.h> */ /* #include <pthread.h> */ /* #if INTERFACE */ /* #include <cdk_test.h> */ /* #include <sys/stat.h> /\* symbolic permission bits (linux) *\/ */ /* #include <fcntl.h> /\* For O_* constants *\/ */ /* #include <sys/stat.h> /\* For mo...
/* ************************************************************************ * Copyright 2013 Advanced Micro Devices, Inc. * * 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...
#include <math.h> #include <stdio.h> #include <stdlib.h> #include <lib/object.h> #include "torus.h" #include <render/pipeline.h> #include <render/buffer.h> #include <lib/linmath.h> #include <models/triangle.frag.h> #include <models/torus.vert.h> #include <models/triangle.frag.spv.h> #include <models/torus.vert.spv.h>...
/* * Greybus Simulator: BOOTROM CPort protocol * * Copyright 2015 Google Inc. * Copyright 2015 Linaro Ltd. * * Provided under the three clause BSD license found in the LICENSE file. */ #include <fcntl.h> #include <pthread.h> #include <linux/fs.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #incl...
/* Copyright (C) 1990, 1992 Aladdin Enterprises. All rights reserved. Distributed by Free Software Foundation, Inc. This file is part of Ghostscript. Ghostscript is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY. No author or distributor accepts responsibility to anyone for the conseque...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <limits.h> #include <time.h> #define EMPTY INT_MIN int **_A; // "alunos" with scrambled rows (see description of "alunos" below) int _nps; // número de parâmetros no critério atual (see next line) int *_cri; // critério atual (...
/* * MikroSDK - MikroE Software Development Kit * Copyright© 2020 MikroElektronika d.o.o. * * 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...
// runFb.c - a command-line interface to Friendbook // !!! DO NOT MODIFY THIS FILE !!! #include <ctype.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "Fb.h" #include "List.h" #define MAX 8192 static void processOptions(int argc, char *argv[]); static void showUsage(char...
/** ***************************************************************************** ** ** File : main.c ** ** Abstract : main function. ** ** Functions : main ** ** Environment : Atollic TrueSTUDIO(R) ** STMicroelectronics STM32F4xx Standard Peripherals Library ** ** Distributi...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include "votParse.h" typedef struct colum { char name[100]; char ucd[1000]; } col_t; int pseudocode1(char *fname) { handle_t vot, res, data, tab, field, tr, td, fits, stream, td...
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <errno.h> #include <sys/ioctl.h> #include <string.h> #include <syslog.h> #include <atm.h> #include <linux/atmdev.h> #include <linux/atmbr2684.h> /* Written by <NAME> <<EMAIL>> to make use of the */ /* ioctls defined in the br2684... kernel patch */ /*...
#include <stdint.h> #include <stdio.h> #include <math.h> #include <assert.h> #include <stdlib.h> #include <string.h> #include <math.h> #include "hsv.h" static float table[17][17][3]; // [hue][sat][channel] static void init_table(void) { for ( int h=0; h<17; ++h ) { const float hue = h / 16.001f; for ( int s=0...
/** * Copyright (c) 2018 - 2019, Nordic Semiconductor ASA * * 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 code must retain the above copyright no...
/* * Copyright (c) 2017, NVIDIA CORPORATION. All rights reserved. * * NVIDIA CORPORATION and its licensors retain all intellectual property * and proprietary rights in and to this software, related documentation * and any modifications thereto. Any use, reproduction, disclosure or * distribution of this so...
/* tok.c Larn is copyrighted 1986 by <NAME>. */ /* $FreeBSD: src/games/larn/tok.c,v 1.5 1999/11/16 02:57:25 billf Exp $ */ #include <sys/types.h> #include <sys/ioctl.h> #include <sys/wait.h> #include "header.h" /* Keystrokes (roughly) between checkpoints */ #define CHECKPOINT_INTERVAL 400 static char lastok = 0; int...
/*- * Copyright (c) 1985, 1987, 1988, 1993 * The Regents of the University of California. 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 code must retain th...
/* PG embedded graphic library Copyright (c) 2009 jkmnt 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, ...
/* * OSS-7 - An opensource implementation of the DASH7 Alliance Protocol for ultra * lowpower wireless sensor communication * * Copyright 2015 University of Antwerp * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obt...
#include "hx_drv_tflm.h" #include "synopsys_wei_delay.h" #include "synopsys_wei_gpio.h" #define accel_scale 10 #define accel_scale1 100 void GPIO_INIT(void); void UART_T(float x,float y,float z); void UART_R(void); hx_drv_gpio_config_t hal_gpio_0; hx_drv_gpio_config_t hal_gpio_1; hx_drv_gpio_config_t hal_led_r; hx_drv...
/*- * BSD LICENSE * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * 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 cod...
/* * Copyright 2010, <NAME> and <NAME>. * * 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 list of conditions and the fo...
// SPDX-License-Identifier: GPL-2.0-only /* * Copyright (C) 2017 <NAME> <<EMAIL>> * Parts of this file were based on sources as follows: * * Copyright (C) 2006-2008 Intel Corporation * Copyright (C) 2007 <NAME> <<EMAIL>> * Copyright (C) 2007 <NAME> <<EMAIL>> * Copyright (C) 2011 Texas Instruments * Copyright (C...
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <assert.h> #include "pose.h" #include "pref.h" #include "pref_global.h" #include "utils.h" #include "axis.h" #include "pathconfig.h" typedef enum {UNSET, YES, NO} bool_val_t; void ltr_int_close_prefs() { ltr_int_free_prefs(); } char *ltr_int_get_...
/* * Copyright (c) 2018-2019 ARM Limited. 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://www.apache.org/licenses/LICENSE...
/* * Copyright (c) 2016, Intel Corporation * 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 code must retain the above copyright notice, * this list of c...
/* RetroArch - A frontend for libretro. * Copyright (C) 2011-2017 - <NAME> * * RetroArch 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 Found- * ation, either version 3 of the License, or (at your option) any lat...
#include "rtc.h" #include "rtc_timestamp.h" #include <stm32f4xx.h> #include <stm32f4xx_hal_rtc.h> #include <stm32f4xx_hal_rtc_ex.h> static struct { uint32_t serverTs; uint32_t localOffset; }sysTs; static bool g_time_already = false; RTC_HandleTypeDef RTC_Handler; HAL_StatusTypeDef RTC_Set_Time(uint8_t hour...
/* ***** BEGIN LICENSE BLOCK ***** * Version: RCSL 1.0/RPSL 1.0 * * Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved. * * The contents of this file, and the files included with this file, are * subject to the current version of the RealNetworks Public Source License * Version ...
/* wmget - A background download manager as a Window Maker dock app Copyright (c) 2001-2003 <NAME> <<EMAIL>> 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...
#include <assert.h> #include <stdlib.h> #include <string.h> #include <stdio.h> #include <time.h> #include "cpu.h" #include "chip8.h" const size_t C8_INS_LEN = 2; static void decrement_timers(struct chip8 *c8); static void push(struct c8_cpu *cpu, uint16_t value); static uint16_t pop(struct c8_cpu *cpu); void cpu_in...
/* * LC-3b bytecode utility functions * * Copyright (C) 2003-2007 <NAME> * * 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...
// flcliapi class - Freelance Pattern agent class // Implements the Freelance Protocol at http://rfc.zeromq.org/spec:10 #include "flcliapi.h" // If no server replies within this time, abandon request #define GLOBAL_TIMEOUT 3000 // msecs // PING interval for servers we think are alive #define PING_INTERVAL ...
#include <ngx_config.h> #include <ngx_core.h> #include <ngx_http.h> #include <nginx.h> #define CORS_HEADER_ORIGIN "origin" static ngx_int_t ngx_http_cors_filter_init(ngx_conf_t *cf); static void *ngx_http_cors_create_loc_conf(ngx_conf_t *cf); static ngx_int_t ngx_http_cors_header_filter(ngx_http_request_t *r); stat...
#include "valid.h" #include <sys/system_properties.h> // 查看签名信息:gradlew sR // 签名信息 const char *app_sha1[] = {"9E08CE4C3F5D243197AFA53DD9E2255C825CAD3E", "81BA0CF9134C6415F34C3BCC854913A53C71415E"}; const char hexcode[] = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', ...
/*- * BSD LICENSE * * Copyright(c) 2017 Intel Corporation. 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 copyrig...
/** * browsers.c -- functions for dealing with browsers * ______ ___ * / ____/___ / | _____________ __________ * / / __/ __ \/ /| |/ ___/ ___/ _ \/ ___/ ___/ * / /_/ / /_/ / ___ / /__/ /__/ __(__ |__ ) * \____/\____/_/ |_\___/\___/\___/____/____/ * * The MIT License (MIT) * Copyright (c) 200...
/* This code is part of the tng compression routines. * * Written by <NAME> and <NAME> * Copyright (c) 2010, 2013-2014 The GROMACS development team. * * * This program is free software; you can redistribute it and/or * modify it under the terms of the Revised BSD License. */ #include <stdio.h> #include <stdli...
/* sydupi.f -- translated by f2c (version 19980913). You must link the resulting object file with the libraries: -lf2c -lm (in that order) */ #include "f2c.h" /* Table of constant values */ static integer c__1 = 1; /* $Procedure SYDUPI ( Create a duplicate of a symbol ) */ /* Subroutine */ int sydupi_(ch...
#include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include "read_hit_heap.h" static inline int compare_scores(read_hit_heap_e * a, read_hit_heap_e * b) { if (a->score<b->score || (a->score==b->score && a->isize_score>b->isize_score)) { return 1; } else if (a->score==b->score && a->is...
#include "main.h" #include <stdio.h> #include "string.h" #include "stm32f1xx_hal.h" #include <stm32_hal_ms5611.h> #define CHECKPOINT_1 300.0f //adjust the checkpoint #define EJECTION_OFFSET 20.0f //eject EJECTION_OFFSET meters below the apogee point /* Private variables ------------------------------------------------...
/* * Copyright (C) 2021 Southern Storm Software, Pty Ltd. * * 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, ...
#include <stdio.h> #include <stdlib.h> #include <3ds.h> #include "friend.h" #include "fs.h" #include "keyboard.h" #include "menu_friendlist.h" #include "utils.h" typedef enum { PLATFORM_WII, PLATFORM_DSI, PLATFORM_3DS, PLATFORM_WIIU, PLATFORM_UNKNOWN } AppPlatform; typedef struct { u32 magic; u16 versi...
/* This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means. In jurisdictions that recognize copy...
/* $NetBSD: rccide.c,v 1.7 2004/01/03 22:56:53 thorpej Exp $ */ /* * Copyright (c) 2003 By Noon Software, Inc. 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 sourc...
/* MIT License * * Copyright (c) 2022 ma-lwa-re * * 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...
/* Copyright (c) 2005 Agorics; see MIT_License in this directory or http://www.opensource.org/licenses/mit-license.html */ #include <string.h> #include "sysdefs.h" #include "kktypes.h" #include "keyh.h" #include "jpageh.h" #include "cpujumph.h" #include "gateh.h" #include "geteh.h" #include "locksh.h" #include "cpumem...
/// @file rainbow.c /// @brief The standard implementations for functions in rainbow.h /// #include "blas.h" #include "parallel_matrix_op.h" #include "rainbow.h" #include "rainbow_blas.h" #include "rainbow_config.h" #include "rainbow_keypair.h" #include "utils_hash.h" #include "utils_prng.h" #include <stdint.h> #inclu...
/*************************************************************************** video.c Functions to emulate the video hardware of the machine. ***************************************************************************/ #include "driver.h" #include "video/resnet.h" #include "includes/mario.h" static const res_n...
/* Play music from Bluetooth device This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include...