text
stringlengths
3.08k
10.5k
/* *Copyright (C) 1994-2000 The XFree86 Project, 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 Software without restriction, including *without limitation the rights ...
#include "z3D/z3D.h" #include "lake_hylia_objects.h" #include "objects.h" #define BgSpot06Objects_Update_addr 0x3833F8 #define BgSpot06Objects_Update ((ActorFunc)BgSpot06Objects_Update_addr) #define BgSpot06Objects_Destroy_addr 0x2AD1E4 #define BgSpot06Objects_Destroy ((ActorFunc)BgSpot06Objects_Destroy_addr) static...
#include "helper.h" #include "pbase/io/stl.h" #define TYPE vec4 #define CLASS Vec4Arr #define FN_NAME vec4arr #include "pbase/rhc/dynarray.h" // // private // pError parse_ascii(pCloud *out_points, Str_s data) { if(!str_begins_with(data, strc("solid"))) { return p_error_set("Not an ascii STL file"); ...
/* license: MIT license * Copyright (C) 2021 <NAME> <<EMAIL>> */ #include <stdio.h> #include <stdlib.h> #include <errno.h> #include <time.h> #include <libpq-fe.h> #include <libdeflate.h> #include "xmalloc.h" #include "util.h" #include "sllist.h" #include "rbtree.h" #include "json.h" #include "jwt.h" #include "auth.h...
/* src/common/xlconfig.h.in. Generated from configure.ac by autoheader. */ /* Define to 1 if you have the <crtdbg.h> header file. */ #undef HAVE_CRTDBG_H /* Define to 1 if you have the <crt_externs.h> header file. */ #undef HAVE_CRT_EXTERNS_H /* Define to 1 if you have the <ctype.h> header file. */ #undef HAVE_CTY...
// // Created by Vashon on 2020/8/3. // #include "homework_036.h" struct ListNode *sortList_1(struct ListNode *head) { if (!head || !head->next) return head; // 寻找中间节点 struct ListNode *slow = head, *fast = head->next; while (fast && fast->next) { slow = slow->next; fast = fast->next->n...
/* * Copyright 2013-2017 <NAME> * * See LICENCE for the full copyright terms. */ #include <assert.h> #include <string.h> #include <stdlib.h> #include <stdio.h> #include <ctype.h> #include <errno.h> #include "debug.h" #include "lex.h" #define WHITE " \t\v\f\n" static enum lex_type lex_push(const char **p, const ...
/* * Copyright 2014-2017 <NAME> * * See LICENCE for the full copyright terms. */ /* * Lukas Lueg Railroad DSL. * See https://github.com/lukaslueg/railroad_dsl * and the library it uses for rendering: https://github.com/lukaslueg/railroad */ #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <...
// required for getaddrinfo and others #define _POSIX_C_SOURCE 200112L #include "../database.h" #include "webserver.h" #include "../../../common/memory/numa_alloc.h" #include <fcntl.h> #include <netdb.h> #include <netinet/in.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <string.h> #include ...
/* * Copyright (C) 2011-2012 Free Software Foundation, Inc. * * Author: <NAME> * * This file is part of GnuTLS. * * GnuTLS 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 Licen...
#include <stdlib.h> #include <string.h> #include "serializer.h" #include "uniform_reliable_broadcast.h" #define INIT_TABLE_SIZE 8192 struct PAM *pam_table[MAX_PROCESSES]; // TODO: Find another way to pass in order static uint pam_table_size[MAX_PROCESSES] = {0}; static uint pam_table_n[MAX_PROCESSES] = {0}; static s...
// Copyright 2009 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file contains the implementation of Go's map type. // // The map is just a hash table. The data is arranged // into an array of buckets. Each bucket c...
/*====================================================================* - Copyright (C) 2001 Leptonica. All rights reserved. - - Redistribution and use in source and binary forms, with or without - modification, are permitted provided that the following conditions - are met: - 1. Redistributions of source c...
/* $FreeBSD: src/sys/dev/iwi/if_iwivar.h,v 1.10 2006/03/12 18:54:40 damien Exp $ */ /*- * Copyright (c) 2004-2006 * <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: *...
/* * Copyright (c) 2015 Endless Mobile, Inc. * Author: <NAME> <<EMAIL>> * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU General Public License, * version 2, as published by the Free Software Foundation. * * This program is distributed in th...
/*************************************************************************** Copyright (c) 2014, The OpenBLAS Project 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...
#include <stdio.h> #include <stdlib.h> #include <math.h> #include "../levmar-2.6/levmar.h" #include "../stack.h" double low = -2; double hgh = 2; double step = 0.1; int len = -1; int sF1[] = {2,0,2,1,25,23,22,2,2,25,26,23,23,22}; int sF1_len = 14; int sF1_c0[] = {3,1}; // ConstantF ~ 1 int sF1_c0_len = 2; int s...
// Examples.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include <stdio.h> #include <stdint.h> #include <assert.h> #include <string.h> #include <stdlib.h> #include <ctype.h> uint32_t BitshiftLeft(uint32_t nr, uint8_t pos); // Beispiele für strukturen, funktionen und verw...
void DrawArrowSprite(byte x, byte y) { const byte colors[] = { 15, 14, 5, 4, 4, 5, 14, 15, }; byte colorIndex = (JIFFY & 0b00001110) >> 1; //if(JIFFY & 0b00000001) color = 15; //else color = 4; // First sprite WRTVRM(SPRATT, y - 1); WRTVRM(SPRATT + 1, x); ...
/* Copyright (C) 2019 by <NAME> * * Permission to use, copy, modify, and distribute this * software and its documentation for any purpose and without * fee is hereby granted, provided that the above copyright * notice appear in all copies and that both that copyright * notice and this permission notice appear in ...
/* * MPU6050.c * * Created: 2021-01-09 오전 8:13:28 * Author: phn15 */ #define F_CPU 16000000UL #include <avr/io.h> #include <util/delay.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <util/delay.h> #include "MPU6050.h" #include "twi.h" #include "uart.h" uint8_t buffe...
#define AG0 2 #define AG1 (AG0+6) #define AG2 (AG1+6) #define AG3 (AG2+6) ANIMATION _animations[] = { { 1, 0, NULL , NULL , 0 , 0 ,0 }, //0 { AG0, 2, &init_animation_startup , &loop_animation_startup , 100, 36...
/* * Copyright (C), 2000-2004 by the monit project group. * All Rights Reserved. * * 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) a...
#include <stdio.h> #include <stdbool.h> #include <stdint.h> #include <time.h> #include "../../../../../../c-deps/libplsql/include/utils/numeric.h" typedef uint32_t uint32; typedef uint32 Oid; typedef int64_t int64; #define DATE 0 #define TIME 1 #define TIMESTAMP 2 #define TIMESTAMPTZ 3 typedef struct { unsigned ...
/* Copyright (c) 2021 International Business Machines Corporation Prepared by: <NAME> <<EMAIL>> Code functionality shared by all tokenizers. This obviously avoids code duplication and associated maintenance problems. */ #include "token_common.h" // Program globals: char *filename = "stdin"; // current file...
/* * transmitter.c * * Created on: 07.08.2018 * Author: baeumker */ #include "transmitter.h" #include "sx1276regs-lora.h" #include "sx1276.h" #include "custom.h" static radio_events_t radio_events; //---------- Functions for reaction of different events -------------- // Should be later be put in othe...
#include "pam_async_ext.h" #include "config.h" #include <pthread.h> #include <stdlib.h> #include <stdio.h> #include <syslog.h> #include <linux/uinput.h> #include <fcntl.h> #include <string.h> #include <unistd.h> typedef struct { pam_handle_t *pamh; pthread_t thread; int item; const char *prompt; co...
#include <common.h> #include <entities/weapons/entity_weapon_bomb_sprite.h> USING_MODULE(entity_weapon_bomb_sprite, PAGE_D); static void on_spawn(Entity *entity) { uint8_t idx = entity->spawn_idx; // Entity *wolfi = &state.entities[0]; sprites[idx].enabled = true; sprites[idx].patternBlackRequired = true...
// Copyright (c) 2018 Flyingsand // // 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, publis...
/* MIT License Copyright (c) 2017 <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, copy, modify, merge, ...
/*Non-Canonical Input Processing*/ #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <termios.h> #include <stdio.h> #include <unistd.h> #include <stdlib.h> #include <string.h> #define BAUDRATE B38400 #define _POSIX_SOURCE 1 /* POSIX compliant source */ #define FALSE 0 #define TRUE 1 volatile ...
/* floatseries.c: basic series, based on floatnum. */ /* Copyright (C) 2007 <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 o...
/* * BSD LICENSE * * Copyright(c) 2007-2017 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...
#include "nvme_driver.h" #include "nvme_internal.h" #include <linux/bio.h> #include <linux/blk-mq.h> #include <linux/blk_types.h> #include <linux/blkdev.h> #include <linux/completion.h> #include <linux/fs.h> #include <linux/genhd.h> #include <linux/init.h> #include <linux/kernel.h> #include <linux/module.h> #include <...
#include "interp.h" #include <assert.h> #include <math.h> static double mem[MAXVAR]; static void stmt(struct astnode *ast); static void readstmt(struct astnode *ast); static void writestmt(struct astnode *ast); static void assignstmt(struct astnode *ast); static void forstmt(struct astnode *ast); static vo...
/* * Modified for Hawkboard - <NAME> <<EMAIL>> * * Copyright (C) 2008 <NAME>, Texas Instruments, Inc. <<EMAIL>> * Copyright (C) 2007 <NAME> <<EMAIL>> * Copyright (C) 2004 Texas Instruments. * * ---------------------------------------------------------------------------- * This program is free software; you can...
/* * iEmu * * Written by cmw * * This code is licenced under the GPL. */ #include <stdio.h> #include "expat.h" #include <sys/types.h> #include <dirent.h> #include "hw/boards.h" #include "iemu.h" const static int BUFFER_SIZE = 512; typedef struct dev_config { char *devname; char *skinfile; char *bootname; ...
#include <stdio.h> #include <stdlib.h> #include <locale.h> #include <string.h> #include "Interfaces/Mapa.h" #include "Interfaces/Ranking.h" #include "Interfaces/ContainerPalavras.h" #define NOME_PROGRAMA "Ranking de Palavras" #define CRIADOR_PROGRAMA "<NAME>" Ranking *ranking; char nome_arquivo[256+1]; int ler_arqui...
/* curses.h */ /* Author: * <NAME> * 16820 SW Tallac Way * Beaverton, OR 97006 * <EMAIL>, or ...uunet!tektronix!psueea!jove!kirkenda */ /* This is the header file for a small, fast, fake curses package */ /* termcap stuff */ extern char *tgoto(); extern char *tgetstr(); /* faddch() is a function. a pointer t...
/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #include "view_tests.h" static view_btree_value_t *test_view_btree_value_decoding(const char *value_bin, size_t len) { view_btree_value_t *v = NULL; assert(decode_view_btre...
/** * \file * * \brief SAM Frequency Meter (FREQM) Driver * * Copyright (c) 2015-2018 Microchip Technology Inc. and its subsidiaries. * * \asf_license_start * * \page License * * Subject to your compliance with these terms, you may use Microchip * software and any derivatives exclusively with Microchip prod...
/* Algoritmo: \Eliminacao de gauss por eliminacao parcial */ #include<stdio.h> /* variaveis para determinar o tamanho das matrizes do sistema a funcao contar_linhas ira encontrar o tamanho da matriz no txt e alterar estas variaveis de acordo com o que tiver no txt */ int lin=0; int col=0; //imprimit ...
/* by <NAME> 3D 7-point jacobi Written to be used as an input program to mint translator See the alloc2D function, which allocates contiguous memory space to the array. */ //#include "common.h" #include <stdio.h> #include <math.h> //#include <omp.h> #include <stdlib.h> #include <assert.h> #i...
#include <stdio.h> #include <stdlib.h> #include "regress.h" /* Equation: u'' = Pe*u' */ /* Create the element matrix for the specified values of Pe and h */ matrix* CreateElementMatrix(double Pe, double h) { matrix *elem; elem = CreateMatrix(2, 2); setval(elem, 1/h-Pe/2, 0, 0); setval(elem, -1/h+Pe/2...
#include <stdbool.h> #include <stdio.h> #include <string.h> #include "common.h" #include "scanner.h" bool test2() { bool passed = true; int err_value; token_type rec_types[80]; char *rec_values[82]; int rec_lines[80]; token_type exp_types[] = {TOKEN_KEYWORD, TOKEN_STRING, TOKEN_KEYWORD, TOKEN...
/**************************************************************** Copyright (C) 2015 <NAME>. All rights reserved. > File Name: < timer.c > > Author: < <NAME> > > Mail: < <EMAIL> > > Created Time: < 2015/10/29 > > Last Changed: > Description: S3C6410 - Timer - 裸机程序 ...
/* * Copyright (c) 2012 The Native Client 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 <string.h> #include <unistd.h> #include "native_client/src/include/elf_auxv.h" #include "native_client/src/include/elf32.h" #inc...
#include <stdio.h> #include <inttypes.h> #include <errno.h> #include <stdlib.h> #include <time.h> #include <pthread.h> #include <unistd.h> #include <string.h> #include <semaphore.h> #include <getopt.h> #include "urandom.h" #include "queue.h" #include "car.h" //#define DEBUG #define DEBUG_NUM_CARS 7 struct CarQueue* ...
/* All state is updated at a single time. Speed differences are controlled by frequency dividers. */ #include "common.h" #define WINDOW_WIDTH 600 #define RECTS_PER_WINDOW (4) #define RECT_WIDTH (WINDOW_WIDTH / RECTS_PER_WINDOW) #define FASTEST_TICK_PERIOD_S (1.0 / 16.0) #define NORMAL_FREQUENCY_DIVIDER 2 #define FAS...
/************************************************************************** * * Copyright (C) 2016 <NAME> <<EMAIL>> * Copyright (c) 2020 <NAME> <<EMAIL>> * * All Rights Reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation file...
#include "_getline.h" #define OLD_SIZE (current_file->old_size) #define NEW_SIZE (readed + OLD_SIZE) #define CLEAN_CUR_O (free(current_file->output), current_file->output = NULL) static streamf *file, *current_file; /** * _getline - Gets a line from an input * @fd: file descriptor number * * Return: pointer to the ...
#include <signal.h> #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <sys/types.h> #include <string.h> #include <sys/socket.h> #include <arpa/inet.h> #include <netinet/in.h> #include <errno.h> #include <sys/syscall.h> #include <pthread.h> #define bprintf(fp, format, ...) \ if (fp == N...
/* * Copyright (C) 2015-2019 Alibaba Group Holding Limited */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "uagent_config.h" #include "uagent_inner_api.h" #include "aos/kernel.h" #include "aos/errno.h" #include "core_mqtt.h" static char mqtt_topic_up[UAGENT_TOPIC_MAX_LEN]; static char mqtt_t...
/* * Copyright (c) 2013-2019, Huawei Technologies Co., Ltd. All rights reserved. * Copyright (c) 2020, Huawei Device Co., Ltd. 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. Redistrib...
#include <pthread.h> #include <sys/time.h> #include <stdlib.h> #include <stdio.h> #include "sem.h" #include "mailbox.h" #include "cbuffer.h" #include <stddef.h> #include <stdbool.h> #define UMAX(a, b) ((a) > (b) ? (a) : (b)) /* El buzón en sí se crea mediante una llamada a mbox_new, que realiza el programa pri...
/* * * Interrupts * */ #include "interrupt.h" #include "klibc.h" #include "drivers/timer.h" // there are 32 kinds of interrupts on the VIC // this structure may need to be expanded if the secondary controller is incorporated static interrupt_handler_t *handlers[MAX_NUM_INTERRUPTS]; static int initialized; // h...
#include <assert.h> #include <string.h> #include "uvwasi.h" static void check(uvwasi_errno_t err, const char* str) { assert(0 == strcmp(uvwasi_embedder_err_code_to_string(err), str)); } int main(void) { check(UVWASI_E2BIG, "UVWASI_E2BIG"); check(UVWASI_EACCES, "UVWASI_EACCES"); check(UVWASI_EADDRINUSE, "UVWAS...
#include "mex.h" /* Computes the initial guess for the line search. * THIS ROUTINE IS ONLY CALLED THROUGH CALCINITIAL.M! * DO NOT CALL SEPARATELY! * * GeomCG Tensor Completion. Copyright 2013 by * <NAME> * Questions and contact: <EMAIL> * BSD 2-clause license, see LICENSE.txt * */ /* HELPER FUNCTIONS FOR LIN...
// Copyright 2021, The cjson authors. // 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 cond...
/* Copyright (c) 2010 <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, copy, modify, merge, publish, distri...
#include "stdio.h" #include "stdlib.h" #include "slurm/slurm_errno.h" #include "src/common/slurm_topology.h" // useful for testing purposes to make linking trivial // #ifndef info // #define info(...) printf(__VA_ARGS__); printf("\n") // #endif // #ifndef verbose // #define verbose(...) info(__VA_ARGS__) // #end...
/* See LICENSE file for license details. */ #define _XOPEN_SOURCE 500 #if HAVE_SHADOW_H #include <shadow.h> #endif #include <ctype.h> #include <pwd.h> #include <stdarg.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include <sys/types.h> #include <sys/ioctl.h> #include <linux/vt.h> #...
// By RiverLuo #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<stdlib.h> #define OK 1 #define ERROR 0 #define MAX_SIZE 100 typedef char TElemType; //二叉树的二叉链表的结点结构定义代码 typedef struct BTNode { TElemType data; struct BTNode* lchild, * rchild; }BTNode, * BTree; BTree createBinTree_S...
/** \file * * Board supply & test routines for unknown board * * */ #include "shell.h" #include "virtual.h" #include "driver.h" #ifdef CONFIG_SCACHE_INSN #define CACHE_SIZE 0x1000 #else #define CACHE_SIZE 0x2000 #endif #define DCACHE_PHYS_ADDR (1 << CONFIG_CACHE_PHYSICAL_ADDRESS_BIT) #define ICACHE...
#include <stdio.h> #include <stdlib.h> #include <getopt.h> char *invoc_name = NULL; char *version_number = "1.0"; struct option longopts[] = { { "date", required_argument, NULL, 'd' }, { "bonus", no_argument, NULL, 'b' }, { "version", no_argument, NULL, 'v' }, { "help", no_argument, NULL, 'h' }, {...
#include <malloc.h> #include <sys/msg.h> #include <sys/socket.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <strings.h> #include <pthread.h> #include <unistd.h> #include <errno.h> #include "room.h" #include "packet.h" enum State {INIT, WAIT, GAME, GAMEOVER, FIN, EXIT}; void *room_fsm(void *a...
/* vim: set filetype=c : */ /* vim: set noet tw=80 ts=8 sw=8 cinoptions=+4,(0,t0: */ /* * Copyright 2017, <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 th...
#include <stdio.h> #include <stdlib.h> #include <errno.h> #include <string.h> #include "util.h" typedef struct pallocroot pallocroot; typedef struct pallocnode pallocnode; // _dbg: 0 -- print nothing // 1 -- print block allocation // 2 -- print all allocations struct pallocroot { size_t _bs; ...
/* m2shll.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 M2SHLL ( Shell sort an array of Meta/2 syntaxs ) */ /* Subroutine */ int m2s...
/* * ssk_kernel_utf8.c * * Created on: 2018/06/18 * Author: mitsuiyosuke */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #define IDX(o, p, q, width, height) ((o) * ((width) * (height)) + (p) * (height) + (q)) typedef struct { char *seq[1024]; int sizes[1024]; int seq_len; ...
/* Copyright <2017> <Scaleable and Concurrent Systems Lab; Thayer School of Engineering at Dartmouth College> 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 restr...
#define INF 1.0/0.0 #define ATOL 1E-13 #define RTOL 1E-9 #define MTX2D(r, c, cols) ((c) + (r) * (cols)) #define MAX(a, b) (a > b ? a : b) #define MIN(a, b) (a < b ? a : b) #define DTOL(a, b, rtol, atol) (MAX(rtol * MAX(fabs(a), fabs(b)), atol)) #define CLOSE(a, b, rtol, atol) (fabs(a - b) <= DTOL(a, b, rtol, atol) ? ...
#import "UIView+YPNavTabBar.h" #import <Foundation/Foundation.h> #import <UIKit/UIKit.h> #if DEBUG #define YPLog(FORMAT, ...) fprintf(stderr, "[%s:%d行] %s\n", [[[NSString stringWithUTF8String:__FILE__] lastPathComponent] UTF8String], __LINE__, [[NSString stringWithFormat:FORMAT, ##__VA_ARGS__] UTF8String]); #else #...
/* Copyright (c) 2022, <NAME> * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "classifier.h" #include "nfp_log.h" static odp_cos_t build_cos_w_queue(const char *name, odp_schedule_group_t group_cls); static odp_pmr_t build_udp_prm(odp_cos_t cos_src, odp_cos_t cos_dst); void in...
/* Copyright (c) 2013 <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 condition...
/* * Copyright (c) 2022 Maygli (<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, including without limitation the * rights to use, copy, modify, merge, pu...
#include <stdio.h> #include <limits.h> #include <string.h> /* Parse and dump from BAA (Twilight Princess Audio Archive). * This file contains a subfiles which contain audio metadata. * * I only have one .baa for reference so this may well be wrong, but * it seems to be very simple. Simple enough that there isn't a...
/************************************************************ Very Advanced Snake on Very Small Display A game by <NAME> and <NAME>, developed in the KTH course IS1200 during spring 2021. ~~~~~~~~~~~~~~~~~~~~~~~~ snake.h ~~~~~~~~~~~~~~~~~~~~~~~~ snake.h is a header file containing reference to variables a...
/* * Copyright (c) 2019, Strifus * All rights reserved. */ /* * This file is licensed according to the BSD 3-clause license as follows: * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * Redistributions of sourc...
#include <math.h> void generated_function(double* A0, const double x3D, const double y3D, const double P11_1, const double P11_2, const double P11_3, const double P11_4, const double P12_1, const double P12_2, const double P12_3, const double P12_4, const double P13_1, const double P13_2, const double P13_3, const dou...
#include "../controllerboard/onewire.h" #include <canix/canix.h> #include <canix/led.h> #include <canix/tools.h> #include <canix/rtc.h> #include <hcan.h> #include <avr/io.h> #include <avr/interrupt.h> #include <avr/eeprom.h> #include <avr/wdt.h> #define W1_PIN ow_pin #if defined(__AVR_ATmega328P__) #define W1_IN...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <mpi.h> #include "common_c.h" #include "FCMangle.h" //commu_int.f #define commu_int FortranCInterface_GLOBAL_(commu_int, COMMU_INT) void commu_int(int* global, int* ilwork, int* n, char* code); #define gen_ncorp FortranCInterfa...
/** * `ETH Address Registry` layer2 contract * * This contract introduces two-ways mappings between `eth_address` and * `gw_script_hash`. * * - `eth_address` is the address of an Ethereum EOA (externally owned account * ) or a Polyjuice contract account. * * - Godwoken account script hash(a.k.a. `gw_sc...
#pragma ident "$Id: mem.c,v 1.11 2009/11/13 00:28:55 dechavez Exp $" /*====================================================================== * * C1_MEM support. Application should call qdpSaveMem each time it * receives a C1_MEM packet. qdpSaveMem will return TRUE once all * expected segments have been received...
#include <parson.h> #include <c89stringutils_string_extras.h> #include <google_cloud_c/client/cloud_auth.h> #include <google_cloud_c/pubsub/topic.h> /* Gets the configuration of a topic. * GET https://pubsub.googleapis.com/v1/{topic} * https://cloud.google.com/pubsub/docs/reference/rest/v1/projects.topics/get * *...
#include <stdio.h> #include <string.h> #include <stdlib.h> //------------------------------------------------------------------------ /* * function to create a matrix */ int **TABLE_new(int rows, int cols){ int **table = (int **) calloc(rows, sizeof(int *)); for (int i = 0; i < rows; i++) table[i] ...
#include <stdio.h> #include "permissions.h" /* IMMUT: * immut permissions means this variable is 'stable' * it cannot be mutated while you hold this * * STORE: * a store permission means you are allowed to store it * in a way that escapes the lifetime of your function call * * WRITE: * write means you may wr...
/* * Copyright (c) 2017 Intel Corporation * * 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 ...
/* See LICENSE file for copyright and license details. */ #include <stdlib.h> #include <string.h> #include <unistd.h> #include <limits.h> #include <errno.h> #include <sys/stat.h> #include <fcntl.h> #include <pwd.h> #include <grp.h> #include "conf.h" #include "util.h" static const char *field_names[] = { "domain", ...
/* Copyright 2020 <NAME>, <NAME> <EMAIL> <EMAIL> 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 applicab...
/** * @copyright Copyright 2021 zerodrive wangchongwei * @license: Apache-2.0 License * @brief: Provide waveform printing, simulation time interface * @details: * @changelog: * date author notes * 2021.10.08 wangchongwei first version **/ #include "base_obj.h" // 对图像的管理 //#i...
/** * \file * \brief Creates mapping based on the MMU type * * If the MMU supports translations, then anonymous type is used * (more efficient) else non contiguous memory is used. */ /* * Copyright (c) 2010, 2011, ETH Zurich. * All rights reserved. * * This file is distributed under the terms in the attached...
/* * we test to read js scripts and measure memory footprint * parameters: js file, main js function to execute */ /* processlines.c */ #include <stdio.h> #include <string.h> #include <malloc.h> #include <stdlib.h> #include <string.h> #include "duktape.h" //required to use js modules #include "duk_module_duktape....
#include "buddy.h" #include "kmem.h" #include "video.h" #include "types.h" /* TODO: *remove kmalloc from syscalls, call int 80. *New library for buddy print? *Chunks for kmalloc? *Implement kfree. */ void * buddy_pool; static node_t *buddy_head; /* * Attempt to allocate of pool of size 'size' * and i...
/* * Stress test for GMR-to-screen blits with dynamic GMR mapping. * * This test uses GMRs in a rather extreme way- it repeatedly repaints * the screen in page-sized (32*32*4 = 4096) chunks, using GMRs which * are redefined for each DMA operation. Each in-flight DMA has a * separate GMR allocated to it. * * The...
/* * Vortex OpenSplice * * This software and documentation are Copyright 2006 to TO_YEAR ADLINK * Technology Limited, its affiliated companies and licensors. All rights * reserved. * * Licensed under the ADLINK Software License Agreement Rev 2.7 2nd October * 2014 (the "License...
/* Copyright (c) 2002-2003 krzYszcz and others. * For information on usage and redistribution, and for a DISCLAIMER OF ALL * WARRANTIES, see the file, "LICENSE.txt," in this distribution. */ #include "m_pd.h" #include "gui.h" typedef struct _MouseState { t_object x_ob; int x_ispolling; int ...
/********************************************************************** * CLIENTE liga ao servidor (definido em argv[1]) no porto especificado * (em argv[2]), escrevendo a palavra predefinida (em argv[3]). * USO: >cliente <enderecoServidor> <porto> <Palavra> *******************************************************...
#include <assert.h> #include <stdio.h> #include <string.h> #include <stdlib.h> #include <stdarg.h> #include "core.h" #include "query.h" struct Iterator query(struct Database_Handle dbh, struct Query query) { struct Iterator it = { .row = 0, .query_status = QUERYSTATUS_INVALID_QUERY, .table_type = ITERATOR_TABL...
/*===-------------------------------------------------------------------------- * ROCm Device Libraries * * This file is distributed under the University of Illinois Open Source * License. See LICENSE.TXT for details. *===------------------------------------------------------------------------*/ ...