text stringlengths 3.12k 18.7k |
|---|
#include "uart.h"
#include "debug_leds.h"
#define DATA_WAIT_TICKS (2U)
DMA_HandleTypeDef hdma_usart1_tx;
DMA_HandleTypeDef hdma_usart1_rx;
void Error_Handler();
volatile uint8_t uart_receive_not_ok = 0;
static void init_gpio();
static void init_periph();
static void init_dma();
static uint8_t ack_cmd[2] = { MSG_AC... |
#include <string.h>
#include "uv.h"
#include "uvwasi.h"
#include "uvwasi_alloc.h"
#include "uv_mapping.h"
#include "path_resolver.h"
#define UVWASI__MAX_SYMLINK_FOLLOWS 32
#ifndef _WIN32
# define IS_SLASH(c) ((c) == '/')
#else
# define IS_SLASH(c) ((c) == '/' || (c) == '\\')
#endif /* _WIN32 */
static int uvwasi__... |
#include <stdbool.h>
#include <stdint.h>
#include <stddef.h>
#include <string.h>
#include <fritter/wm.h>
#include "sys/rtc.h"
#include "gui.h"
#include "cli.h"
#include "sys/vesa.h"
#include "sys/mouse.h"
void render_gui();
void draw_cursor();
unsigned char cursor_sprite_buf[CURSOR_WIDTH * CURSOR_HEIGHT * CURSOR_BYT... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* or http://www.opensolar... |
#include "snakeModule.h"
#include "videoModule.h"
#include "stdlib.h"
#include "timeModule.h"
#include "soundModule.h"
#include "stddef.h"
static int xResolution;
static int yResolution;
static int stepV;
static int stepH;
static Color white = {255, 255, 255};
static Color black = {0, 0, 0};
void startSnake(){... |
#pragma config(Sensor, in1, leftLine, sensorLineFollower)
#pragma config(Sensor, in2, midLine, sensorLineFollower)
#pragma config(Sensor, in3, rightLine, sensorLineFollower)
#pragma config(Sensor, dgtl1, pbtn, sensorTouch)
#pragma config(Motor, port2, leftMotor, ... |
#include "taplib.h"
#include "tickit.h"
#include <stdio.h>
#include <string.h>
#define RECT(t, l, li, co) \
(TickitRect) { .top = t, .left = l, .lines = li, .cols = co }
void output(TickitTerm *tt, const char *bytes, size_t len, void *user) {
char *buffer = user;
strncat(buffer, bytes, len);
}
int main(... |
//
// General-purpose Photovoltaic Device Model gpvdm.com - a drift diffusion
// base/Shockley-Read-Hall model for 1st, 2nd and 3rd generation solarcells.
// The model can simulate OLEDs, Perovskite cells, and OFETs.
//
// Copyright 2008-2022 <NAME> https://www.gpvdm.com
// r.c.i.mackenzie at googlemail.com
//
// Per... |
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/ioctl.h>
#include <linux/joystick.h>
#include <X11/Xlib.h>
#include <X11/keysym.h>
#include <X11/extensions/XTest.h>
Display *DISPLAY;
typedef struct {
unsigned int key;
unsigned int mod;
} Key;
t... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <3ds.h>
#define ERR_ALREADY_EXISTS (Result)0xC82044BE
// Inner FAT file/dir names are ascii and can only go up to 16 characters anyway, so this should fit the name + a null byte
#define NAME_UTF8_BUF_SIZE 17
Result r(char *name, Result res) {
if (R_... |
/***************************************************************************************
*** ***
*** Copyright (c) 2019, <NAME>, Inc. ***
*** ... |
#include "fasttransforms.h"
#include "ftinternal.h"
static inline ft_triangular_banded * sph_sine_multiplication(const int n, const int m) {
ft_triangular_banded * T = ft_calloc_triangular_banded(n+1-m, 2);
double num, den, cst;
for (int l = 0; l < n+1-m; l++) {
num = (l+2*m-1)*(l+2*m);
den... |
/*
* Copyright 2021 MTG AG
*
* 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 or agreed to in writi... |
/*
Copyright 2018-2021 Picovoice Inc.
You may not use this file except in compliance with the license. A copy of the license is located in the "LICENSE"
file accompanying this source.
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on
... |
/*
* Copyright 2012 <NAME>
*/
/* Nginx Includes */
#include <ngx_config.h>
#include <ngx_core.h>
#include <ngx_http.h>
/* GD Includes */
#include <gd.h>
#include <qrencode.h>
/**
* Types
*/
/* Main Configuration */
typedef struct {
} ngx_http_qrencode_main_conf_t;
/* Location Configuration */
typedef struct {
... |
/* objectmap.c - Foundation library - Public Domain - 2013 <NAME> / Rampant Pixels
*
* This library provides a cross-platform foundation library in C11 providing basic support
* data types and functions to write applications and games in a platform-independent fashion.
* The latest source code is always avail... |
#include "mpu_malloc.h"
#include "mpu_ops.h"
#include "assert.h"
#include <string.h>
#include <stdlib.h>
#include <stdio.h>
typedef enum {
MallocSize_32 = 0,
MallocSize_64,
MallocSize_128,
MallocSize_256,
MallocSize_512,
MallocSize_1024,
MallocSize_2048,
MallocSize_4096,
... |
/**
* \file
*
* \brief Application to generate sample driver to AVRs TWI module
*
* Copyright (C) 2014-2015 Atmel Corporation. All rights reserved.
*
* \asf_license_start
*
* \page License
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provid... |
// Generated by HLC 4.2.1 (HL v4)
#define HLC_BOOT
#include <hlc.h>
#include <h3d/scene/LightSystem.h>
extern hl_type t$h3d_Vector;
void h3d_Vector_new(h3d__Vector,double*,double*,double*,double*);
#include <hxsl/Globals.h>
#include <h3d/col/Sphere.h>
#include <h3d/Matrix.h>
#include <h3d/col/Frustum.h>
#include <h3d/... |
/** @file */
/*****************************************************************************
* Copyright (c) 2016-2017, Cisco Systems, 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. Red... |
/*
* main.c
*
* Created on: 18 de Junho de 2020
* Author: <NAME>
*/
#include <string.h>
#include <string.h>
#include "stm32f4xx_hal.h"
#include "main.h"
void GPIO_Init(void);
void Error_handler(void);
void TIMER6_Init(void);
void UART2_Init(void);
void SystemClock_Config_HSE(uint8_t clock_f... |
/*************************************************************************
* Copyright (C) 2006 <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, in... |
/*
UTAustinX Lab 10
<NAME>
3 inputs: 2 car sensors, 1 pedestrian
8 outputs: 3 west, 3 south, 2 pedestrian
pedestrian sensor is push and hold - presense sense
car sensors are also push and hold - presense sense
west & south lights must both be red before walk light can be green
walk light should be red while... |
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <ctype.h>
#include <string.h>
#include <unistd.h>
#include "picosat.h"
typedef struct Clause { int cid, * lits; struct Clause * next; } Clause;
typedef struct MCS { int mid, * clauses; struct MCS * next; } MCS;
static int nvars;
... |
/* Copyright (C) 2001-2021 Artifex Software, Inc.
All Rights Reserved.
This software is provided AS-IS with no warranty, either express or
implied.
This software is distributed under license and may not be copied,
modified or distributed except as expressly authorized under the terms
of the license ... |
#include <stdio.h>
#include <errno.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdint.h>
#include <byteswap.h>
#include <sys/stat.h>
#include <wiringPi.h>
#include <wiringPiSPI.h>
#define CLK 12000000 //12
#define CHNL 0
#define INT 7
#define READ_SZ 0x200
#define BLOCK_SZ 0x2000
#define... |
/**
* BSD calendar reimplementation
*
* The calendar utility reads events from plain text files and outputs today's
* events. The files look something like this::
*
* #include <holiday>
* #include <birthday>
*
* 06/15 June 15
* Thu Every Thursday.
* 15 15th of every month.
*
* 05/Su... |
#include <stdbool.h>
#include <stdio.h>
#include "project.h"
#include "usbkeycodes.h"
enum
{
ENDPOINT_KEYBOARD_IN = 4,
ENDPOINT_KEYBOARD_OUT = 5
};
enum
{
MODIFIER_SHIFT = 1<<0,
MODIFIER_CONTROL = 1<<1,
MODIFIER_SPECIAL = 1<<2,
MODIFIER_ALT = 1<<3
};
static const uint8_t ke... |
/*
* Copyright 2011, 2012, 2013 <NAME>
*
* 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 or a... |
/*
* linux/sound/soc/codecs/tlv320aic325x.h
*
*
* Copyright (C) 2011 Texas Instruments, Inc.
*
*
*
* This package is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* THIS PACKAGE IS PROVI... |
/*
* File: ip-header.h
* Description: IPv6 packet header definitions.
* Author(s): <NAME>, <EMAIL>
*
* Copyright 2013 Silicon Laboratories, Inc. *80*
*/
// IPv6 header (40 bytes)
//
// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
// |Version| Traffic Class ... |
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
// Structure for node in heap.
// Attributes:
// idx: int, id of element.
// dist: int*, pointer for distance.
// heap_idx: int*, pointer for index of node in heap.
typedef struct {
int idx;
int* dist;
int* heap_idx;
} HeapNode;
// Str... |
/*
* Copyright © 2011 Red Hat, Inc.
*
* Permission to use, copy, modify, distribute, and sell this software
* and its documentation for any purpose is hereby granted without
* fee, provided that the above copyright notice appear in all copies
* and that both that copyright notice and this permission notice
* app... |
/*
* Copyright (c) 2008, Carnegie Mellon University
* This software is distributed under the terms of the
* Simplified BSD License (see ipc/LICENSE.TXT)
*/
#include "ipc.h"
/* JSM Added for Windows 98 */
#include "libc.h"
#ifdef _WINSOCK_
#undef BOOLEAN /* Need int_32 sized booleans instead of char size... |
/* Network round-trip time measurement core for probe.py - SOCKS version.
*
* This program is a subroutine of probe.py, written in C to eliminate
* interpreter overhead. It is not intended to be run directly. It
* takes two command line arguments, the IP address and TCP port
* respectively of a SOCKSv5 proxy, vi... |
/*
* SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Unlicense OR CC0-1.0
*/
#include "freertos/FreeRTOS.h"
#include "freertos/queue.h"
#include "esp_heap_caps.h"
#include "esp_log.h"
#include "esp_check.h"
#include "app_led.h"
#include "app_sr.h"
#include "file_m... |
#include <stdio.h>
#include <string.h>
#include <proto/intuition.h>
#include <proto/exec.h>
#include <clib/alib_protos.h>
#include <proto/window.h>
#include <proto/layout.h>
#include <proto/button.h>
#include <proto/listbrowser.h>
#include <proto/string.h>
#include <intuition/classes.h>
#include <reaction/reaction.h... |
/**
* Weather API test program.
*
* ESP_Weather.c
*
* MCU: STM32F103C8T6
* IDE: Keil uVision V5.29.0.0 & STM32CubeMX 5.6.0
* HCLK : 40 MHz
*
* Wifi Module : ESP8266-01
* AT version: 1.3.0.0
* SDK version: 2.0.0
*
* Copyright 2020 Gachon University, TAKE OUT, Development Group, electric engineering,... |
/*******************************************************************************
* Programm: main.c
* Filename: .c
*
* Autor: <NAME>
* Version: 1.0
* Datum: 25.05.2021
*
********************************************************************************
* Datum Vers. Kommentar / Änderungsgr... |
/*
* A threaded server
* by <NAME> (www.martinbroadhurst.com)
* Compile with -pthread
*/
#include <stdio.h>
#include <string.h> /* memset() */
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <netdb.h>
#include <pthread.h>
#include <fcntl.h>
#include <getopt.h>... |
/* map.c
<NAME> (<EMAIL>), 14 Nov 2020
FreeBSD-style copyright and disclaimer apply
*/
#include "render/ui.h"
#include "render/core.h"
#include "game/world.h"
#include "utils/color.h"
#include "utils/hset.h"
// -----------------------------------------------------------------------------
// struct
// ---------... |
#include <stdio.h>
#include <fcntl.h>
#include <wchar.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <curses.h>
#include <cpu.h>
int16_t prog[] = {
0, 0, 0,
12, 0, 6,
0, 0x101, 9,
0x100, 0x100, 6,
'C'
};
uint16_t entrypoint = 0;
uint16_t mem_size = 0x1000;
/*
* c: dire... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the program and library */
/* SCIP --- Solving Constraint Integer Programs */
... |
/* $OpenBSD: sxiahci.c,v 1.8 2015/01/22 14:33:01 krw Exp $ */
/*
* Copyright (c) 2013 <NAME> <<EMAIL>>
* Copyright (c) 2013,2014 <NAME>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this per... |
/******************************************************************************
* $Id$
*
* Project: MapServer
* Purpose: Implement hashTableObj class.
* Author: <NAME>, <EMAIL>
*
******************************************************************************
* Copyright (c) 1996-2005 Regents of the Universit... |
#define _GNU_SOURCE
#include <glib.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <memory.h>
#include <sys/types.h>
#include <unistd.h>
#include "netutils.h"
#include "fritz.h"
#include "logging.h"
#include <errno.h>
#include <time.h>
#define FRITZ_BUFFER_SIZE 1024
enum CIFritzServerState... |
/*********************************************************************
* Program: psimci.c
* Author: <NAME> <<EMAIL>>
* Created: Sun Feb 12 19:28:43 EST 2017
* Updated: Tue May 30 18:11:50 EDT 2017
* Purpose: Stata plugin to simulate a CI under H0: b = 0 for a
* treatment effect given a regression speci... |
/// MIT License
///
/// Copyright (c) 2022 <NAME>
///
/// 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, cop... |
/*
* procedures that set type, scan converting troff output primitives
*/
#include "ext.h"
#define FACEDIR "/sys/lib/troff/contour"
#define LINEWID .007 /* in inches, actually half-width */
#define ERR .5 /* in pixels, maximum deviation of approximating polygons */
Typeface *face[MAXFONTS+1];
Rgba color={255,255,25... |
// programa usado para testes da libc e do console.
// rtl
#include <stddef.h>
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
int i, j, life, maxrand;
int c;
// String do número digitado.
char number[16];
//
// ========================================... |
/*
* Copyright (c) 2008-2012 the MansOS team. 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 of con... |
/*-
* SPDX-License-Identifier: BSD-2-Clause
*
* Copyright (c) 2018 <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 copyrig... |
/*
*************************************************************************************************
*
* Emulation of the Intel LXT971a Ethernet PHY
*
* State:
* Registers readable but not yet writable
*
* Copyright 2004 2013 <NAME>. All rights reserved.
*
* Redistribution and use in source and binary forms... |
/**
* Adaptation de Processing à la programmation en C
* <NAME>, 13 aout 2019
*
* avec l'aide de
* https://zestedesavoir.com/tutoriels/1014/utiliser-la-sdl-en-langage-c/
*/
#include "SDL.h"
#include "SDL_ttf.h"
#include <stdbool.h>
#include <string.h>
#include "defs.h"
// TODO : variable for default font pat... |
#include <stdio.h>
#include <stdlib.h>
#include "tetris.h"
#include <termios.h>
#include <signal.h>
#include <time.h>
#include <fcntl.h>
#define TETRIS_PIECES (sizeof(blocks)/sizeof(struct tetris_block))
#define GAME_LEVELS (sizeof(levels)/sizeof(struct game_level))
struct game_level
{
int score;
int nsec;
};
... |
/* Description: testcase for netlink sockets migration.
* e.g.
* ip rule show
* ip rule add
* ip rule show
* ip rule del
* in a loop
*/
#include <asm/types.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <linux/netlink.h>
#include <stri... |
/* =========================================================================
* The Synopsys DWC ETHER QOS Software Driver and documentation (hereinafter
* "Software") is an unsupported proprietary work of Synopsys, Inc. unless
* otherwise expressly agreed to in writing between Synopsys and you.
*
* The Software IS... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <unistd.h>
#include <sys/socket.h>
#include <netdb.h>
#include <event.h>
#include "buffered_socket.h"
#ifdef DEBUG
#define _DEBUG(...) fprintf(stdout, __VA_ARGS__)
#else
#define _DEBUG(...) do {;} while (0)
#endif
static void buffe... |
/*
* Copyright (c) 2012, 2014-2016 by Farsight Security, 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
/* $OpenBSD: login_yubikey.c,v 1.14 2016/04/24 18:52:52 benno Exp $ */
/*
* Copyright (c) 2010 <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 ... |
/***************************************************************************
Copyright (c) 2006-2007, <NAME>, <NAME> University.
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... |
/**
* Copyright 2021 <NAME>
*
* 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 or agreed to in w... |
/**
* This source code ("the Software") is provided by Bridgetek Pte Ltd
* ("Bridgetek") subject to the licence terms set out
* http://brtchip.com/BRTSourceCodeLicenseAgreement/ ("the Licence Terms").
* You must read the Licence Terms before downloading or using the Software.
* By installing or using the Software you... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include "rituel.h"
#include "utils.h"
/* private function prototype */
void createNomDeRituel(char** name);
List createObjetValeurImportant(List l);
List createObjets(List l);
List createInstructions(List l);
/* Getter and Print Avec Templa... |
/*
* 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 disclaimer.
*
* 2. Redistrib... |
#include "pldm.h"
#include "base.h"
#include <errno.h>
#include <stdlib.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/un.h>
#include <unistd.h>
const uint8_t MCTP_MSG_TYPE_PLDM = 1;
pldm_requester_rc_t pldm_open()
{
int fd = -1;
int rc = -1;
fd = socket(AF_UNIX, SOCK_SEQPACKET, 0);
if (-1 == f... |
/* See LICENSE file for copyright and license details.
*
* econf
*
* Automated deployment of configuration.
*
*/
#include <ctype.h>
#include <sys/wait.h>
#include <dirent.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/stat.h>
#include <wordexp.h>
#include <stdarg.... |
#include "core.h"
#include "text.h"
#include "resources.h"
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <libdragon.h>
static bool textInitted = false;
static const s32 SPRITE_SIZE = 16;
/**
* Initialises text subsystem by loading sprites etc.
* @return ... |
/*
* $Id: binobj.c,v 1.1 2005-09-18 22:03:50 dhmunro Exp $
* Implement functions for generic blocks of data.
*/
/* Copyright (c) 2005, The Regents of the University of California.
* All rights reserved.
* This file is part of yorick (http://yorick.sourceforge.net).
* Read the accompanying LICENSE file for details... |
#include <libguile.h>
#include <wlc/wlc.h>
#include <xkbcommon/xkbcommon.h>
#include "keysym.h"
bool gram_swallow = false;
static SCM
gram_keysym_equalp (SCM a, SCM b)
{
struct gram_keysym *k_a = (struct gram_keysym *) SCM_SMOB_DATA (a);
struct gram_keysym *k_b = (struct gram_keysym *) SCM_SMOB_DATA (b);
/* l... |
/*
* FreeSWITCH Modular Media Switching Software Library / Soft-Switch Application
* Copyright (C) 2005-2014, <NAME> <<EMAIL>>
*
* Version: MPL 1.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Lic... |
/*
** mouse:~ppr/src/pprdrv/pprdrv_progress.c
** Copyright 1995--2005, Trinity College Computing Center.
** Written by <NAME>.
**
** 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 m... |
#include "uart.h"
#include "systick.h"
#include "spi.h"
// Uart_Send
// Public function that sends a series of bytes
// via the serial FIFO queue.
// Inputs: pointer to a series of 8 bit values
// number of 8 bit values to be read from data pointer
// Ouputs: none
void UartSend(volatile void* data, int length)... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... |
/* ITU-T G.729 Software Package Release 2 (November 2006) */
/*
ITU-T G.729A Speech Coder ANSI-C Source Code
Version 1.1 Last modified: September 1996
Copyright (c) 1996,
AT&T, France Telecom, NTT, Universite de Sherbrooke, Lucent Technologies
All rights reserved.
*/
#include "typedef.h... |
#ifndef _DEBUG
#include "mgtype.h"
#include "bootx86.h"
#else
#include "mgtype.h"
#define BEGIN_CODE32
#define END_CODE32
#endif
#include "pgdef.h"
#include "startup_context.h"
#define LIMIT_TO_512G
#define PAGE2M 0x200000 /* 2M */
#define PAGE4K 0x1000
#define MAX_RECORDS 512 /* max table entryes */
#define RECOR... |
/******************************************************************************
Copyright (C) 2013 by <NAME> <<EMAIL>>
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... |
/*
(c) Copyright 2008 <NAME>
All rights reserved.
This file is subject to the terms and conditions of the MIT License:
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 ... |
/* Copyright (c) 2018 The Johns Hopkins University/Applied Physics Laboratory
* All Rights Reserved.
*
* This file is dual licensed under the terms of the Apache 2.0 License and
* the BSD 3-Clause License. See the LICENSE file in the root of this
* repository for more information.
*/
#include <openssl/err.h>
#in... |
/*
* Copyright (C) the libgit2 contributors. All rights reserved.
*
* This file is part of libgit2, distributed under the GNU GPL v2 with
* a Linking Exception. For full terms see the included COPYING file.
*/
#include "netops.h"
#include <ctype.h>
#include "git2/errors.h"
#include "posix.h"
#include "buffer.h"... |
/*
* preferences stored in a file
*/
#include "tetris.h"
#include <ctype.h> /* isdigit */
#define OPTIONS_FILE "config.ini"
static GtkWidget * settings_dialog;
static GtkWidget * spin_level;
static GtkWidget * spin_noise_level;
static GtkWidget * spin_noise_height;
static GtkWidget * show_block_chk;
static GtkWidg... |
#define _GNU_SOURCE // for strndup()
#include "queuereader.h"
#ifdef DEBUG
#define _DEBUG(...) fprintf(stdout, __VA_ARGS__)
#else
#define _DEBUG(...) do {;} while (0)
#endif
#define MAX_BACKOFF_COUNTER 8
void queuereader_termination_handler(int signum);
void queuereader_trigger_source_request(int seconds, int micros... |
/* CalculiX - A 3-dimensional finite element program */
/* Copyright (C) 1998-2020 <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... |
/* 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 its l... |
/* $NetBSD: assorted.c,v 1.15 2003/08/07 09:37:41 agc Exp $ */
/*
* Copyright (c) 1983, 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:
... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/*-
* Copyright (c) 2015 <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:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of co... |
// SPDX-License-Identifier: MIT
/* Check available memory and swap in a loop and start killing
* processes if they get too low */
#include <dirent.h>
#include <errno.h>
#include <getopt.h>
#include <regex.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include... |
/*
This file is part of MAMBO, a low-overhead dynamic binary modification tool:
https://github.com/beehive-lab/mambo
Copyright 2013-2016 <NAME> <cosmin at linux-geek dot org>
Copyright 2015-2017 <NAME> <guillermocallaghan at hotmail dot com>
Copyright 2017-2020 The University of Manchester
Licensed un... |
/**
* @file printAnnotation.cpp
* @brief Prints annotation strings for each element
* @author <NAME>
*
* <!--------------------------------------------------------------------------
* This sample program is distributed under a different license than the rest
* of libSBML. This program uses the open-source... |
/**
Copyright 2017 Google Inc. All Rights Reserved.
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 or agreed to in... |
/******************************************************************************
*
* Copyright (C) 2018 Xilinx, Inc. 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
* in the So... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2014-2018 Broadcom
* All rights reserved.
*/
#include <inttypes.h>
#include <rte_memzone.h>
#include <rte_malloc.h>
#include "bnxt.h"
#include "bnxt_vnic.h"
#include "hsi_struct_def_dpdk.h"
/*
* VNIC Functions
*/
void prandom_bytes(void *dest_ptr, size_t... |
// #################################################################################################
// # << NEORV32: neorv32_neoled.c - Smart LED Interface (NEOLED) HW Driver >> #
// # ********************************************************************************************* #
// # BSD 3-Clause... |
/*
* Copyright 2000 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Copyright (c) 1983 Regents of the University of California.
* All rights reserved. The Berkeley software License Agreement
* specifies the terms and conditions for redistribution.
*/
#pragma ident "%Z%%M... |
/*
* $Id: _deHTMLxs.c,v 1.5 2006/02/16 19:16:00 rsoderberg Exp $
*/
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "deHTMLxs.h"
/* Read-only structure, so it's thread-safe */
typedef struct {
char *name;
char chr;
} CM_PREPROC_html_tags_t;
CM_PREPROC_html_tags_t CM_PREPROC_html_tags[... |
/* nv2merc.f -- translated by f2c (version 19990503).
You must link the resulting object file with the libraries:
-lf2c -lm (in that order)
*/
#include "f2c.h"
/* Common Block Declarations */
struct {
real xrow, xcol, xlat1, xspace, xqlon, xblat, xblon;
integer itype, iwest, leftlon;
} mercommercnv2_;
... |
/* SPI Slave Halfduplex example
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 <st... |
#include <stdlib.h>
#include <stdio.h>
#define TRUE 1
#define FALSE 0
/* Estructuras y tipos */
typedef struct _nodo {
int dato;
struct _nodo *derecho;
struct _nodo *izquierdo;
} tipoNodo;
typedef tipoNodo *pNodo;
typedef tipoNodo *Arbol;
/* Funciones con árboles: */
/* Insertar en árbol ordenado: */
void ... |
/* -*- Mode: C; c-basic-offset:4 ; -*- */
/*
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
* University Research and Technology
* Corporation. All rights reserved.
* Copyright (c) 2004-2017 The University of Tennessee and The University
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.