repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
bukinr/mdepx | arch/arm/arm/machdep.c | <filename>arch/arm/arm/machdep.c
/*-
* Copyright (c) 2018-2019 <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 c... |
bukinr/mdepx | arch/riscv/microsemi/core_uart.c | /*-
* Copyright (c) 2018 <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... |
bukinr/mdepx | arch/arm/stm/stm32f4_fmc.h | /*-
* Copyright (c) 2018 <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... |
bukinr/mdepx | dev/uart/uart_16550.c | <reponame>bukinr/mdepx<gh_stars>0
/*-
* Copyright (c) 2019 <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 copyr... |
bukinr/mdepx | lib/bluetooth/l2cap.c | <gh_stars>0
/*
* 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,
* thi... |
bukinr/mdepx | arch/arm/stm/stm32l4_adc.h | /*-
* Copyright (c) 2018 <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... |
bukinr/mdepx | kernel/net/netinet/if_ether.c | <reponame>bukinr/mdepx<gh_stars>10-100
/*-
* Copyright (c) 2018 <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 ... |
bukinr/mdepx | dev/otm8009a/otm8009a.c | <reponame>bukinr/mdepx
/*-
* Copyright (c) 2018 <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
* ... |
bukinr/mdepx | lib/bluetooth/bluetooth/buf.h | /*
* 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 co... |
bukinr/mdepx | lib/bluetooth/gatt.c | /*
* 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 co... |
bukinr/mdepx | lib/libFLAC/include/config.h | #include <sys/types.h>
#define HAVE_BSWAP32 0
#define FLAC__HAS_X86INTRIN 0
#define HAVE_INTTYPES_H 0
#define CPU_IS_BIG_ENDIAN 0
#define ENABLE_64_BIT_WORDS 0
#define WORDS_BIGENDIAN 0
#define HAVE_STDINT_H 0
#define FLAC__INTEGER_ONLY_LIBRARY 1
#define HAVE_LROUND 1
#define FLAC__INTEGER_ONLY_LIBRARY 1... |
bukinr/mdepx | arch/arm/stm/stm32f4_dsi.c | <filename>arch/arm/stm/stm32f4_dsi.c
/*-
* Copyright (c) 2018 <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 co... |
bukinr/mdepx | kernel/systm/mdx_ringbuf.c | <gh_stars>10-100
/*-
* Copyright (c) 2019 <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... |
bukinr/mdepx | lib/bluetooth/att.h | <filename>lib/bluetooth/att.h
/*
* 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 copyri... |
bukinr/mdepx | arch/arm/maxim/max32625_ioman.h | /*-
* Copyright (c) 2018 <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... |
bukinr/mdepx | arch/riscv/sifive/e300g_aon.h | /*-
* Copyright (c) 2017 <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... |
bukinr/mdepx | arch/arm/nordicsemi/nrf9160_timer.h | <gh_stars>0
/*-
* Copyright (c) 2018 <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, thi... |
bukinr/mdepx | arch/arm/arm/nvic.h | /*-
* Copyright (c) 2018 <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... |
linhyee/toy-language | c/debug.h | #ifndef clox_debug_h
#define clox_debug_h
#include <stdint.h>
#define DEBUG_TRACE_EXECUTION
#include "chunk.h"
void disassembleChunk(Chunk* chunk, const char* name);
int disassembleInstruction(Chunk* chunk, int offset);
#undef DEBUG_TRACE_EXECUTION
#endif
|
linhyee/toy-language | c/compiler.c | #include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "common.h"
#include "compiler.h"
#include "memory.h"
#include "scanner.h"
#include "utf8.h"
#ifdef DEBUG_PRINT_CODE
#include "debug.h"
#endif
typedef struct {
Token current;
Token previous;
bool hadError;
bool panicMode;
} Parser;
// preced... |
linhyee/toy-language | c/utf8_test.c | #include <stdio.h>
#include <string.h>
#include "utf8.h"
void *allocate_from_buffer(void *user_data, size_t n) { return user_data; }
int main(void) {
char *s = "yes,我是中国人";
char *p = s;
printf("%d %s\n", utf8size(s),s);
utf8_int32_t ch;
p = utf8codepoint(p, &ch);
printf("%s\n", (char*)(&ch));
p = utf8... |
linhyee/toy-language | c/common.h | #ifndef clox_common_h
#define clox_common_h
#include <stdbool.h> // c99 bool type
#include <stddef.h> // size_t, NULL
#include <stdint.h> // uint8_t
#define NAN_BOXING
#define DEBUG_PRINT_CODE
#define DEBUG_STRESS_GC
#define DEBUG_LOG_GC
#define UINT8_COUNT (UINT8_MAX + 1)
#define MAX_BREAKS_PER_SCOPE 256
#undef ... |
linhyee/toy-language | c/table_test.c | #include <stdio.h>
#include "table.h"
#include "value.h"
#include "object.h"
#ifdef clox_table_test
int main() {
Table tb;
initTable(&tb);
Value v = OBJ_VAL(copyString("test string", 11));
bool ok;
ObjString* a = copyString("a", 1);
ok = tableSet(&tb, a, v);
printf("%d %d\n", ok, a->hash);
ObjStrin... |
Halo9Pan/experiment | opencl/precision/main.c | /*
* main.c
*
* Created on: Apr 7, 2015
* Author: Halo9Pan
*/
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <unistd.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <CL/opencl.h>
extern int
ocl_plus_1d ();
int
main (int ... |
Halo9Pan/experiment | opencl/precision/ocl_plus.c | #include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <unistd.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <CL/opencl.h>
extern int
c_plus_example ();
char*
read_file (char* file_name);
// Use a static data size for simplicity
#define D... |
Halo9Pan/experiment | opencl/precision/devices.c | <gh_stars>0
/*
* devices.c
*
* Created on: Apr 14, 2015
* Author: Halo9Pan
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <CL/opencl.h>
#define MAX_PLATFORM_NUMBER 4
#define MAX_DEVICE_NUMBER 4
#define CL_CHECK(s, err) if (err != CL_SUCCESS)\
{\
printf ("%s ... |
Halo9Pan/experiment | opencl/precision/c_plus.c | <gh_stars>0
/*
============================================================================
Name : samples-c-hello-cdt.c
Author : Halo9Pan
Version :
Copyright : CopyLeft
Description : Hello World in C, Ansi-style
============================================================================
*/
... |
Halo9Pan/experiment | opencl/precision/read_cl.c | <filename>opencl/precision/read_cl.c
/*
* read_cl.c
*
* Created on: Apr 3, 2015
* Author: panhao
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char*
read_file (char *file_name)
{
FILE *fp;
char *p;
fp = fopen (file_name, "r"); // read mode
if (fp == NULL)
{
perror ("Error whil... |
skytelan3/arkime | capture/plugins/tcphealthcheck.c | <reponame>skytelan3/arkime
/* tcphealthcheck.c -- TCP Health Check plugin
Listens on a TCP socket and immediately closes it to confirm that the capture service is running.
*/
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <c... |
skytelan3/arkime | capture/plugins/lua/session.c | /* session.c -- lua interface to session stuff
*
* Copyright 2012-2017 AOL Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this Software except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org... |
skytelan3/arkime | capture/plugins/daq/reader-daq.c | <filename>capture/plugins/daq/reader-daq.c
/* reader-daq.c -- daq instead of libpcap
*
* Copyright 2012-2017 AOL Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this Software except in compliance with the License.
* You may obtain a copy of the Lice... |
skytelan3/arkime | capture/parsers/icmp.c | /* icmp.c
*
* Copyright 2019 AOL Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this Software 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... |
skytelan3/arkime | capture/parsers/ciscometadata.c | /* Copyright 2019 AOL Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this Software 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 applicabl... |
skytelan3/arkime | capture/parsers/gtp.c | <reponame>skytelan3/arkime
/* Copyright 2019 AOL Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this Software except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... |
skytelan3/arkime | capture/parsers/geneve.c | /* Copyright 2019 AOL Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this Software 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 applicabl... |
skytelan3/arkime | capture/parsers/lldp.c | <reponame>skytelan3/arkime<gh_stars>1000+
/* Copyright 2019 AOL Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this Software except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICE... |
skytelan3/arkime | capture/parsers/mpls.c | <filename>capture/parsers/mpls.c<gh_stars>1000+
/* Copyright 2019 AOL Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this Software except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/license... |
skytelan3/arkime | capture/parsers/udp.c | <filename>capture/parsers/udp.c
/* udp.c
*
* Copyright 2019 AOL Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this Software except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LI... |
skytelan3/arkime | capture/parsers/vxlan.c | <reponame>skytelan3/arkime
/* Copyright 2019 AOL Inc. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this Software except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* U... |
krisouljz/LvModuleManager | Example/LvModuleManager/LVSecondTestModule.h | //
// LVSecondTestModule.h
// LvModuleManager_Example
//
// Created by 吕佳珍 on 2020/3/30.
// Copyright © 2020 krisouljz. All rights reserved.
//
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface LVSecondTestModule : NSObject
@end
NS_ASSUME_NONNULL_END
|
krisouljz/LvModuleManager | Example/LvModuleManager/LVViewController.h | //
// LVViewController.h
// LvModuleManager
//
// Created by krisouljz on 03/30/2020.
// Copyright (c) 2020 krisouljz. All rights reserved.
//
@import UIKit;
@interface LVViewController : UIViewController
@end
|
krisouljz/LvModuleManager | LvModuleManager/Classes/LVModuleManager.h | <filename>LvModuleManager/Classes/LVModuleManager.h
//
// LVModuleManager.h
// LvModuleManager
//
// Created by 吕佳珍 on 2020/3/30.
//
@import Foundation;
@import UIKit;
@import UserNotifications;
@protocol LVModule <UIApplicationDelegate,UNUserNotificationCenterDelegate>
@end
NS_ASSUME_NONNULL_BEGIN
@interface L... |
krisouljz/LvModuleManager | Example/LvModuleManager/LVAppDelegate.h | //
// LVAppDelegate.h
// LvModuleManager
//
// Created by krisouljz on 03/30/2020.
// Copyright (c) 2020 krisouljz. All rights reserved.
//
@import UIKit;
@interface LVAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
|
jzhang7272/instagram | instagram/Views/PostCell.h | <gh_stars>0
//
// PostCell.h
// instagram
//
// Created by <NAME> on 7/6/21.
//
#import <UIKit/UIKit.h>
#import "Post.h"
#import <Parse/Parse.h>
NS_ASSUME_NONNULL_BEGIN
@interface PostCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UILabel *usernameLabel;
@property (weak, nonatomic) IBOutlet UIImageVi... |
jzhang7272/instagram | instagram/View Controller/ComposePostViewController.h | <reponame>jzhang7272/instagram<filename>instagram/View Controller/ComposePostViewController.h
//
// PostViewController.h
// instagram
//
// Created by <NAME> on 7/6/21.
//
#import <UIKit/UIKit.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
const int resize;
@interface ComposePostViewController : UIViewContro... |
jzhang7272/instagram | instagram/User.h | <reponame>jzhang7272/instagram<gh_stars>0
//
// User.h
// instagram
//
// Created by <NAME> on 7/7/21.
//
#import "Parse/Parse.h"
#import <Foundation/Foundation.h>
NS_ASSUME_NONNULL_BEGIN
@interface User : PFUser
@property (nonatomic, strong) NSString *username;
@property (nonatomic, strong) NSString *bio;
@prop... |
jzhang7272/instagram | instagram/Views/ProfilePostCell.h | <filename>instagram/Views/ProfilePostCell.h
//
// ProfilePostCell.h
// instagram
//
// Created by <NAME> on 7/7/21.
//
#import <UIKit/UIKit.h>
#import "Post.h"
NS_ASSUME_NONNULL_BEGIN
@interface ProfilePostCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIImageView *photoView;
@property (strong,... |
jzhang7272/instagram | instagram/View Controller/EditProfileViewController.h | //
// EditProfileViewController.h
// instagram
//
// Created by <NAME> on 7/8/21.
//
#import <UIKit/UIKit.h>
#import "User.h"
NS_ASSUME_NONNULL_BEGIN
@protocol EditProfileViewControllerDelegate
- (void)didUpdate:(User *)user :(UIImageView *)image;
@end
@interface EditProfileViewController : UIViewController
@... |
jzhang7272/instagram | instagram/View Controller/ProfileHeaderView.h | <reponame>jzhang7272/instagram
//
// ProfileHeaderView.h
// instagram
//
// Created by <NAME> on 7/8/21.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface ProfileHeaderView : UICollectionReusableView
@property (weak, nonatomic) IBOutlet UIImageView *profilePictureView;
@property (weak, nonatomic) IBO... |
jzhang7272/instagram | instagram/View Controller/ProfileViewController.h | //
// ProfileViewController.h
// instagram
//
// Created by <NAME> on 7/7/21.
//
#import <UIKit/UIKit.h>
#import "Post.h"
NS_ASSUME_NONNULL_BEGIN
@interface ProfileViewController : UIViewController
@property (strong, nonatomic) Post *post;
@end
NS_ASSUME_NONNULL_END
|
jzhang7272/instagram | instagram/Views/PostDetailsCell.h | <reponame>jzhang7272/instagram
//
// PostDetailsCell.h
// instagram
//
// Created by <NAME> on 7/7/21.
//
#import <UIKit/UIKit.h>
#import "Post.h"
#import <Parse/Parse.h>
NS_ASSUME_NONNULL_BEGIN
//@protocol PostDetailsDelegate;
@interface PostDetailsCell : UITableViewCell
@property (weak, nonatomic) IBOutlet UI... |
raxcat/IdentifyUSBMassStorage | Example/Pods/Target Support Files/IdentifyUSBMassStorage/IdentifyUSBMassStorage-umbrella.h | <filename>Example/Pods/Target Support Files/IdentifyUSBMassStorage/IdentifyUSBMassStorage-umbrella.h<gh_stars>1-10
#import <Cocoa/Cocoa.h>
#import "IdentifyUSBMassStorage.h"
FOUNDATION_EXPORT double IdentifyUSBMassStorageVersionNumber;
FOUNDATION_EXPORT const unsigned char IdentifyUSBMassStorageVersionString[];
|
raxcat/IdentifyUSBMassStorage | IdentifyUSBMassStorage/Classes/IdentifyUSBMassStorage.h | <gh_stars>1-10
//
// IdentifyUSBMassStorage.h
// Pods
//
// Created by brianliu on 2016/9/8.
//
//
#import <Foundation/Foundation.h>
//VendorID should be an NSNumber object
extern const NSString * __nonnull const kDiskDevicePropertyVendorID;
//ProductID should be an NSNumber object
extern const NSString * __nonnul... |
raxcat/IdentifyUSBMassStorage | Example/IdentifyUSBMassStorage_Example/AppDelegate.h | //
// AppDelegate.h
// IdentifyUSBMassStorage_Example
//
// Created by brianliu on 2016/9/8.
// Copyright © 2016年 raxcat liu. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface AppDelegate : NSObject <NSApplicationDelegate>
@end
|
raxcat/IdentifyUSBMassStorage | Example/IdentifyUSBMassStorage_Example/ViewController.h | <reponame>raxcat/IdentifyUSBMassStorage
//
// ViewController.h
// IdentifyUSBMassStorage_Example
//
// Created by brianliu on 2016/9/8.
// Copyright © 2016年 raxcat liu. All rights reserved.
//
#import <Cocoa/Cocoa.h>
@interface ViewController : NSViewController
@end
|
raxcat/IdentifyUSBMassStorage | Example/Pods/Target Support Files/Pods-IdentifyUSBMassStorage_Tests/Pods-IdentifyUSBMassStorage_Tests-umbrella.h | <gh_stars>1-10
#import <Cocoa/Cocoa.h>
FOUNDATION_EXPORT double Pods_IdentifyUSBMassStorage_TestsVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_IdentifyUSBMassStorage_TestsVersionString[];
|
raxcat/IdentifyUSBMassStorage | Example/Pods/Target Support Files/Pods-IdentifyUSBMassStorage_Example/Pods-IdentifyUSBMassStorage_Example-umbrella.h | #import <Cocoa/Cocoa.h>
FOUNDATION_EXPORT double Pods_IdentifyUSBMassStorage_ExampleVersionNumber;
FOUNDATION_EXPORT const unsigned char Pods_IdentifyUSBMassStorage_ExampleVersionString[];
|
guden/android-ndk | teapots/textured-teapot/src/main/cpp/TexturedTeapotRender.h | /*
* Copyright 2018 The Android Open Source Project
*
* 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 applica... |
MulleFoundation/mulle-bunchobjects | src/mulle-bunchobjects.h | // HOWTO:
//
//
// #define USE_BUNCH_OBJECTS
// #include "mulle-bunchobjects.h"
//
// @implementation YourClass
//
// static struct mulle_bunchinfo bunchinfo;
//
// + (void) initialize
// {
// if( ! mulle_bunchinfo_is_initialized( &bunchinfo))
// mulle_bunchinfo_initialize( &bunchinfo);
// }
//
//
// + (void... |
PrivacyDragon/TransliteratorCE | src/oghamfont.c | <reponame>PrivacyDragon/TransliteratorCE
#include "oghamfont.h"
/* This contains the raw data for the font. */
static const unsigned char ogham_font_data[] = {
#include "oghamfont.inc"
};
/* However, C89 does not allow us to typecast a byte array into a
fontlib_font_t pointer directly, so we have to use a second s... |
PrivacyDragon/TransliteratorCE | src/main.c | #include <tice.h>
#include <stdlib.h>
#include <stddef.h>
#include <graphx.h>
#include <keypadc.h>
#include <fontlibc.h>
#include <string.h>
fontlib_font_t *futhark;
fontlib_font_t *nyctograph;
fontlib_font_t *ogham;
fontlib_font_t *phoenician;
fontlib_font_t *protoSinaitic;
char *input(fontlib_font_t *font){
const ... |
PrivacyDragon/TransliteratorCE | src/oghamfont.h | #ifndef OGHAMFONT_H
#define OGHAMFONT_H
#include <fontlibc.h>
extern const fontlib_font_t *ogham_font;
#endif
|
byronwongdev/learningcandcpp | practicingc/printfff.c | #include <stdio.h>
#include <stdlib.h>
int main()
{
int favNum = 900;
char myChar = 'i';
printf("My faveourite %s is %d \n" , "number" , favNum);
printf("My faveourite %s is %f \n", "number" , 500.8540);
printf("My faveourite %c is %f \n", myChar , 500.8540);
return 0;
} |
byronwongdev/learningcandcpp | practicingc/constants.c | #include <stdio.h>
#include <stdlib.h>
int main()
{
const int num = 5;
printf("%d\n", num);
/* num = 0; */
printf("%d\n", num);
printf("Hello");
return 0;
} |
byronwongdev/learningcandcpp | practicingc/getuserinput.c | #include <stdio.h>
#include <stdlib.h>
int main()
{
int age;
printf("Enter your age: ");
scanf("%d", &age);
printf("You are %d years old", age);
double gpa;
printf("\n" "Enter your gpa :");
scanf("%lf", &gpa);
printf("Your GPA is %f", gpa);
char grade;
printf("\n" "Enter your... |
byronwongdev/learningcandcpp | practicingc/variable.c | <reponame>byronwongdev/learningcandcpp
#include <stdio.h>
#include <stdlib.h>
int main()
{
char characterName[] = "John";
int characterAge = 67;
printf("There once was a man named %s\n", characterName);
printf("He was %d years old.\n", characterAge);
characterAge = 30;
printf("He really l... |
byronwongdev/learningcandcpp | practicingc/numberr.c | <filename>practicingc/numberr.c
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
int main()
{
printf("%f", pow(4, 3));
printf("%f", sqrt(36.356));
printf("%f", ceil(36.656));
printf("%f", floor(36.656));
return 0;
} |
vorsitzende/liblog | src/log.c | <gh_stars>0
/* LOG.C - Implementation of various C functions.
* <NAME>, 2019
*/
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
static FILE* log_file = 0;
static char* log_path = 0;
static const char* get_timestamp (void) {
time_t rawtime;
struct tm* timeinfo;
... |
vorsitzende/liblog | include/liblog.h | /* LIBLOG.H - Master header file for LibLog.
* <NAME>, 2019
*/
#ifndef _LIBLOG_H_
#define _LIBLOG_H_
#ifdef __cplusplus
#include <cstdint> // intptr_t
#include <string> // std::string
namespace liblog {
extern "C" {
#else
#include <stdint.h> // intptr_t
#endif /* __cplusplus */
/* Initialize logger syste... |
QiMiaoer/QMWonderful | Wonderful/Wonderful/MeiShengCollectionViewCell.h | //
// MeiShengCollectionViewCell.h
// Wonderful
//
// Created by laouhn on 15/12/18.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MeiShengCollectionViewCell : UICollectionViewCell
@property (nonatomic , retain) UIImageView *cover;
@property (nonatomic , retain) UILabel... |
QiMiaoer/QMWonderful | Wonderful/Wonderful/StartViewController.h | <filename>Wonderful/Wonderful/StartViewController.h
//
// StartViewController.h
// Wonderful
//
// Created by laouhn on 15/12/26.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface StartViewController : UIViewController
@end
|
QiMiaoer/QMWonderful | Wonderful/Wonderful/DCPathButton/DCSubButton.h | <filename>Wonderful/Wonderful/DCPathButton/DCSubButton.h
//
// DCSubButton.h
// DCPathButton
//
// Created by Paul on 4/19/13.
// Copyright (c) 2013 Paul. All rights reserved.
//
#import <UIKit/UIKit.h>
@class DCSubButton;
@protocol DCSubButtonDelegate <NSObject>
- (void)subButtonPress:(DCSubButton*)button;
@end
... |
QiMiaoer/QMWonderful | Wonderful/Wonderful/MeiWen.h | //
// MeiWen.h
// Wonderful
//
// Created by laouhn on 15/12/21.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <CoreData/CoreData.h>
@interface MeiWen : NSManagedObject
@property (nonatomic , retain) NSString *aid;
@property (nonatomic , retain) NSString *title;
@property (nonatomic , retain) NS... |
QiMiaoer/QMWonderful | Wonderful/Wonderful/MeiShengModel.h | <reponame>QiMiaoer/QMWonderful
//
// MeiShengModel.h
// Wonderful
//
// Created by laouhn on 15/12/18.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MeiShengModel : NSObject
@property (nonatomic , retain) NSString *content;
@property (nonatomic , retain) NSStr... |
QiMiaoer/QMWonderful | Wonderful/Wonderful/MeiTuModel.h | //
// MeiTuModel.h
// Wonderful
//
// Created by laouhn on 15/12/19.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface MeiTuModel : NSObject
@property (nonatomic , retain) NSString *aid;
@property (nonatomic , retain) NSString *count;
@property (nonatomic , retai... |
QiMiaoer/QMWonderful | Wonderful/Wonderful/MeiWenViewController.h | //
// MeiWenViewController.h
// Wonderful
//
// Created by laouhn on 15/12/16.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MeiWenViewController : UIViewController
@end
|
QiMiaoer/QMWonderful | Wonderful/Wonderful/MeiWenDetailViewController.h | <reponame>QiMiaoer/QMWonderful<gh_stars>0
//
// MeiWenDetailViewController.h
// Wonderful
//
// Created by laouhn on 15/12/17.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MeiWenDetailViewController : UIViewController
@property (nonatomic , retain) MeiWenModel *model;
... |
QiMiaoer/QMWonderful | Wonderful/Wonderful/DouFile.h | //
// DouFile.h
// Wonderful
//
// Created by laouhn on 15/12/19.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface DouFile : NSObject<DOUAudioFile>
@property (nonatomic , strong) NSURL *audioFileURL;
@end
|
QiMiaoer/QMWonderful | Wonderful/Wonderful/DCPathButton/DCPathButtonConstant.h | //
// DCPathButtonConstant.h
// DCPathButton
//
// Created by Paul on 4/19/13.
// Copyright (c) 2013 Paul. All rights reserved.
//
#import <Foundation/Foundation.h>
#define kDCPathButtonParentView self.parentView
#define kDCPathButtonCurrentFrameWidth kDCPathButtonParentView.frame.size.width
#define kDCPathButton... |
QiMiaoer/QMWonderful | Wonderful/Wonderful/SaoMiaoViewController.h | //
// SaoMiaoViewController.h
// Wonderful
//
// Created by laouhn on 15/12/28.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>
@interface SaoMiaoViewController : UIViewController
@property (nonatomic , strong) UIView *boxView;
@property (nonat... |
QiMiaoer/QMWonderful | Wonderful/Wonderful/CollectionTableViewCell.h | //
// CollectionTableViewCell.h
// Wonderful
//
// Created by laouhn on 15/12/21.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CollectionTableViewCell : UITableViewCell
@property (nonatomic , retain) UIImageView *cellImageView;
@property (nonatomic , retain) UILabel *c... |
QiMiaoer/QMWonderful | Wonderful/Wonderful/CollectionViewController.h | //
// CollectionViewController.h
// Wonderful
//
// Created by laouhn on 15/12/18.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CollectionViewController : UIViewController
@end
|
QiMiaoer/QMWonderful | Wonderful/Wonderful/MeiWenTableViewCell.h | //
// MeiWenTableViewCell.h
// Wonderful
//
// Created by laouhn on 15/12/17.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MeiWenTableViewCell : UITableViewCell
@property (nonatomic , retain) UIImageView *mainView;
@property (nonatomic , retain) UILabel *titleLabel;
@... |
QiMiaoer/QMWonderful | Wonderful/Wonderful/SheZhiViewController.h | <reponame>QiMiaoer/QMWonderful
//
// SheZhiViewController.h
// Wonderful
//
// Created by laouhn on 15/12/19.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SheZhiViewController : UIViewController
@end
|
QiMiaoer/QMWonderful | Wonderful/Wonderful/CollectionDetailViewController.h | //
// CollectionDetailViewController.h
// Wonderful
//
// Created by laouhn on 15/12/21.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface CollectionDetailViewController : UIViewController
@property (nonatomic , retain) NSMutableArray *sourceArray;
@property (nonatomic , re... |
QiMiaoer/QMWonderful | Wonderful/Wonderful/MeiTu.h | <filename>Wonderful/Wonderful/MeiTu.h
//
// MeiTu.h
// Wonderful
//
// Created by laouhn on 15/12/21.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <CoreData/CoreData.h>
@interface MeiTu : NSManagedObject
@property (nonatomic , retain) NSString *aid;
@property (nonatomic , retain) NSString *count... |
QiMiaoer/QMWonderful | Wonderful/Wonderful/SaoMiaoDetailViewController.h | //
// SaoMiaoDetailViewController.h
// Wonderful
//
// Created by laouhn on 15/12/28.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface SaoMiaoDetailViewController : UIViewController
@property (nonatomic , retain) NSString *url;
@end
|
QiMiaoer/QMWonderful | Wonderful/Wonderful/MeiTuDetailViewController.h | <reponame>QiMiaoer/QMWonderful
//
// MeiTuDetailViewController.h
// Wonderful
//
// Created by laouhn on 15/12/19.
// Copyright © 2015年 laouhn. All rights reserved.
//
#import <UIKit/UIKit.h>
@interface MeiTuDetailViewController : UIViewController
@property (nonatomic , retain) MeiTuModel *model;
@end
|
N1k1tung/ProcessingKit | ProcessingKit/ProcessingKit.h | //
// ProcessingKit.h
// ProcessingKit
//
// Created by AtsuyaSato on 2017/08/04.
// Copyright © 2017年 <NAME>. All rights reserved.
//
#import <Foundation/Foundation.h>
//! Project version number for ProcessingKit.
FOUNDATION_EXPORT double ProcessingKitVersionNumber;
//! Project version string for ProcessingKit.... |
wibblymat/inflate-demo | wasm/inflate.c | <gh_stars>0
/*
Copyright 2016 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... |
wibblymat/inflate-demo | wasm/malloc.c | <reponame>wibblymat/inflate-demo
/*
Copyright 2016 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 r... |
webosce/ilib-qml-plugin | filereader_plugin.h | <filename>filereader_plugin.h<gh_stars>10-100
#ifndef FILEREADER_PLUGIN_H
#define FILEREADER_PLUGIN_H
#include <QQmlExtensionPlugin>
class FileReaderPlugin : public QQmlExtensionPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "com.jedlsoft.filesystem")
public:
void registerTypes(const char *uri);
};
#endif // F... |
webosce/ilib-qml-plugin | filereader.h | <reponame>webosce/ilib-qml-plugin<gh_stars>10-100
#ifndef FILEREADER_H
#define FILEREADER_H
#include <QQuickItem>
#include <QString>
class FileReader : public QQuickItem
{
Q_OBJECT
Q_DISABLE_COPY(FileReader)
public:
FileReader(QQuickItem *parent = 0);
~FileReader();
Q_INVOKABLE QString currentPa... |
saydulk/crave | src/masternode.h | <reponame>saydulk/crave<gh_stars>10-100
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2012 The Darkcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef MASTERNODE_H
#define MASTERNODE_H
#include ... |
ajpallares/AJPinView | AJPinView.h | <filename>AJPinView.h
//
// AJPinView.h
// AJPinView
//
// Created by AJPallares on 02/06/2018.
// Copyright © 2018 AJPallares. All rights reserved.
//
#import <UIKit/UIKit.h>
@class AJPinView;
@protocol AJPinViewDelegate <NSObject>
@required
/**
This method is used by the PinView instance to communicate to it... |
wenliangwu/sof | src/drivers/intel/haswell/ipc.c | <gh_stars>100-1000
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2016 Intel Corporation. All rights reserved.
//
// Author: <NAME> <<EMAIL>>
#include <sof/drivers/interrupt.h>
#include <sof/ipc/driver.h>
#include <sof/ipc/msg.h>
#include <sof/ipc/schedule.h>
#include <sof/lib/alloc.h>
#include <sof/lib/d... |
wenliangwu/sof | src/include/sof/math/iir_df2t.h | /* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2017 Intel Corporation. All rights reserved.
*
* Author: <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*/
#ifndef __SOF_MATH_IIR_DF2T_H__
#define __SOF_MATH_IIR_DF2T_H__
#include <stddef.h>
#include <stdint.h>
/* Get platforms ... |
wenliangwu/sof | src/drivers/mediatek/mt8195/ipc.c | <gh_stars>100-1000
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2021 Mediatek
//
// Author: <NAME> <<EMAIL>>
#include <sof/debug/panic.h>
#include <sof/drivers/interrupt.h>
#include <sof/ipc/driver.h>
#include <sof/ipc/msg.h>
#include <sof/ipc/schedule.h>
#include <sof/lib/alloc.h>
#include <sof/lib/dma... |
wenliangwu/sof | src/drivers/amd/renoir/acp_bt_dma.c | // SPDX-License-Identifier: BSD-3-Clause
//
//Copyright(c) 2021 AMD. All rights reserved.
//
//Author: <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
// <NAME> <<EMAIL>>
#include <sof/atomic.h>
#include <sof/audio/component.h>
#include <sof/bit.h>
#include <sof/drivers/acp_dai_dma.h>
#include <sof/drivers/interrupt.h>
#includ... |
wenliangwu/sof | src/arch/xtensa/include/arch/spinlock.h | /* SPDX-License-Identifier: BSD-3-Clause
*
* Copyright(c) 2016 Intel Corporation. All rights reserved.
*
* Author: <NAME> <<EMAIL>>
*/
#ifdef __SOF_SPINLOCK_H__
#ifndef __ARCH_SPINLOCK_H__
#define __ARCH_SPINLOCK_H__
#include <stdint.h>
#include <xtensa/config/core-isa.h>
typedef struct {
volatile uint32_t lo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.