repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
adeca/ADCExtensions
ADCExtensions/NSArray+Creation.h
// // NSArray+Creation.h // ADCExtensions // // Created by <NAME> on 14/07/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSArray (Creation) /*! Initialize the array with the provided object added 'count' times. */ - (id)initWithCount:(NSUInteger)count ...
adeca/ADCExtensions
ADCExtensions/NSThread+ADC.h
<filename>ADCExtensions/NSThread+ADC.h // // NSThread+ADC.h // ADCExtensions // // Created by <NAME> on 2/27/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSThread (ADC) /*! Returns the object from the thread's dictionary associated with the given key, or...
adeca/ADCExtensions
ADCExtensions/UICollectionViewCell+ADC.h
<reponame>adeca/ADCExtensions // // UICollectionViewCell+ADC.h // ADCExtensions // // Created by <NAME> on 18/10/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UICollectionViewCell (ADC) + (instancetype)dequeueReusableCellFromCollectionView:(UICollectionView *)coll...
adeca/ADCExtensions
ADCExtensions/UIView+ADC.h
// // UIView+ADC.h // ADCExtensions // // Created by <NAME> on 19/02/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> /*! Methods in this category simplify accessing and modifying the view's frame. All of these methods are equivalent to getting the view's frame, manipulating ...
adeca/ADCExtensions
ADCExtensions/NSSet+ADC.h
<reponame>adeca/ADCExtensions<filename>ADCExtensions/NSSet+ADC.h // // NSSet+ADC.h // ADCExtensions // // Created by <NAME> on 19/02/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSSet (ADC) /*! Returns a copy of the set with all keys and values that ar...
adeca/ADCExtensions
ADCExtensions/NSDictionary+Functional.h
// // NSDictionary+Functional.h // ADCExtensions // // Created by <NAME> on 14/07/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSDictionary (Functional) /*! Calls block once for each key/value pair in self, passing these as a parameters. */ - (void)ea...
adeca/ADCExtensions
ADCExtensions/ADCExtensions.h
// // ADCExtensions.h // ADCExtensions // // Created by <NAME> on 19/02/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import "CGGeometry+ADC.h" #import "math+ADC.h" #import "NSArray+ADC.h" #import "NSArray+Functional.h" #import "NSArray+Sorting.h" #import "NSArray+Creation.h" #import "NSDictionary...
adeca/ADCExtensions
ADCExtensions/NSObject+ADC.h
<reponame>adeca/ADCExtensions<filename>ADCExtensions/NSObject+ADC.h<gh_stars>1-10 // // NSObject+ADC.h // ADCExtensions // // Created by <NAME> on 19/02/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSObject (ADC) /*! Sends a specified message to the re...
adeca/ADCExtensions
ADCExtensions/UIViewController+Loading.h
<reponame>adeca/ADCExtensions // // UIViewController+Loading.h // ADCExtensions // // Created by <NAME> on 2/27/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIViewController (Loading) + (id)viewControllerWithIdentifier:(NSString*)identifier inStoryboard:(UIStoryboa...
adeca/ADCExtensions
ADCExtensions/UIView+Loading.h
// // UIView+Loading.h // ADCExtensions // // Created by <NAME> on 2/27/15. // Copyright (c) 2015 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIView (Loading) /*! Loads a nib, then finds and returns the first view that matches the current class. @param nibName name of the nib file....
adeca/ADCExtensions
ADCExtensions/NSArray+ADC.h
// // NSArray+ADC.h // ADCExtensions // // Created by <NAME> on 19/02/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSArray (ADC) /*! Returns the first object in the array. If the array is empty, returns nil. */ - (id)firstObject; /*! Returns a copy ...
adeca/ADCExtensions
ADCExtensions/NSNumber+ADC.h
// // NSNumber+ADC.h // ADCExtensions // // Created by <NAME> on 19/02/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSNumber (ADC) - (BOOL)isGreaterThan:(NSNumber*)number; - (BOOL)isLessThan:(NSNumber*)number; @end
adeca/ADCExtensions
ADCExtensions/UITableViewCell+ADC.h
<reponame>adeca/ADCExtensions // // UITableViewCell+ADC.h // ADCExtensions // // Created by <NAME> on 18/10/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UITableViewCell (ADC) + (instancetype)dequeueReusableCellFromTableView:(UITableView*)tableView; + (instancetyp...
adeca/ADCExtensions
ADCExtensions/UIGestureRecognizer+ADC.h
<gh_stars>1-10 // // UIGestureRecognizer+ADC.h // ADCExtensions // // Created by <NAME> on 18/10/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIGestureRecognizer (ADC) /** Remove the receiver from it's current view. */ - (void)removeFromView; /** Force the re...
adeca/ADCExtensions
ADCExtensions/UITableView+ADC.h
<gh_stars>1-10 // // UITableView+ADC.h // ADCExtensions // // Created by <NAME> on 18/10/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UITableView (ADC) - (void)insertSection:(NSUInteger)section withRowAnimation:(UITableViewRowAnimation)animation; - (void)deleteSe...
adeca/ADCExtensions
ADCExtensions/NSSet+Functional.h
// // NSSet+Functional.h // ADCExtensions // // Created by <NAME> on 14/07/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSSet (Functional) /*! Calls block once for each element in self, passing that element as a parameter. */ - (void)each:(void (^)(id...
adeca/ADCExtensions
ADCExtensions/UIColor+ADC.h
// // UIColor+ADC.h // ADCExtensions // // Created by <NAME> on 18/10/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIColor (ADC) /** Creates and returns a color object using the specified hex code. @param hex Integer representing a color in 0xRRGGBBAA format. ...
adeca/ADCExtensions
ADCExtensions/CGGeometry+ADC.h
// // CGGeometry+ADC.h // ADCExtensions // // Created by <NAME> on 18/10/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <CoreGraphics/CoreGraphics.h> // add two points CGPoint CGPointAdd(const CGPoint p1, const CGPoint p2); // return the point within the given rect that is closest to the giv...
adeca/ADCExtensions
ADCExtensions/NSString+ADC.h
<gh_stars>1-10 // // NSString+ADC.h // ADCExtensions // // Created by <NAME> on 19/02/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSString (ADC) - (NSString*)stringByTrimmingWhitespaceCharacters; - (BOOL)hasSubstring:(NSString*)substring; - (BOOL)hasS...
adeca/ADCExtensions
ADCExtensions/NSObject+Casting.h
// // NSObject+Casting.h // ADCExtensions // // Created by <NAME> on 15/07/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSObject (Casting) /*! Returns self if the object is of the specified class (or any subclass of it), nil otherwise. */ - (id)asObje...
adeca/ADCExtensions
ADCExtensions/NSArray+Sorting.h
// // NSArray+Sorting.h // ADCExtensions // // Created by <NAME> on 14/07/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <Foundation/Foundation.h> @interface NSArray (Sorting) /*! Returns a copy of the receiving array sorted by using a given key path for comparison. */ - (NSArray *)sortedA...
adeca/ADCExtensions
ADCExtensions/UIImageView+Orientation.h
// // UIImageView+Orientation.h // ADCExtensions // // Created by <NAME> on 18/10/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImageView (Orientation) - (void)setImageOrientation:(UIImageOrientation)orientation; - (void)mirrorVertically; - (void)mirrorHorizont...
adeca/ADCExtensions
ADCExtensions/math+ADC.h
// // math+ADC.h // ADCExtensions // // Created by <NAME> on 19/02/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #ifndef _ADC_MATH_H_ #define _ADC_MATH_H_ #import <math.h> #if !defined(CLAMP) #define CLAMP(A, LOW, HIGH) ({ \ __typeof__(A) __a = (A);\ __typeof__(LOW) __low = (LOW);\ __...
adeca/ADCExtensions
ADCExtensions/UIImage+Tiling.h
<reponame>adeca/ADCExtensions // // UIImage+Tiling.h // ADCExtensions // // Created by <NAME> on 18/10/2013. // Copyright (c) 2013 <NAME>. All rights reserved. // #import <UIKit/UIKit.h> @interface UIImage (Tiling) + (UIImage*)tiledImageNamed:(NSString*)imageNamed; @end
Rijckard1/OlaMundo
joguinho/jogo.c
#include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <time.h> enum { NORTE, SUL, LESTE, OESTE }; struct Carrinho { int lin, col, dir, cor; }; char ** criamatriz( int lin, int col ) { char ** res = malloc( lin * sizeof( char * ) ); // Vertical int i; for(i = 0; i < lin; i++) res[i] = mallo...
mhomran/PC_Link_UART
src/pc_link_cfg.h
/** * @file pc_link.h * @author <NAME> * @brief A software pattern used to transfer data from microcontrollers * and some form of personal computer (PC, notebook or similar) using UART * communication protocol. * @version 0.1 * @date 2021-03-15 */ #ifndef PC_LINK_CFG_H #define PC_LINK_CFG_H /****************...
mhomran/PC_Link_UART
src/pc_link_cfg.c
<filename>src/pc_link_cfg.c /** * @file pc_link_cfg.c * @author <NAME> * @brief A configuration layer for the PC_LINK module * @version 0.1 * @date 2021-03-16 */ /***************************************************************************** * Includes *************************************************************...
mhomran/PC_Link_UART
test/TestPcLink.c
/** * @file TestPcLink.c * @author <NAME> * @brief The test file for the PC LINK module. * @version 0.1 * @date 2021-03-16 */ /***************************************************************************** * Includes ******************************************************************************/ /// @cond NODOC /*...
mhomran/PC_Link_UART
src/pc_link.c
<reponame>mhomran/PC_Link_UART<filename>src/pc_link.c /** * @file pc_link.c * @author <NAME> * @brief A software pattern used to transfer data from microcontrollers * and some form of personal computer (PC, notebook or similar) using UART * communication protocol. * @version 0.1 * @date 2021-03-16 */ /******...
mhomran/PC_Link_UART
src/pc_link.h
<reponame>mhomran/PC_Link_UART<gh_stars>0 /** * @file pc_link.h * @author <NAME> * @brief A software pattern used to transfer data from microcontrollers * and some form of personal computer (PC, notebook or similar) using UART * communication protocol. * @version 0.1 * @date 2021-03-15 */ #ifndef PC_LINK_H #d...
mhomran/PC_Link_UART
test/support/uart.h
/** * @file uart.h * @author <NAME> * @brief A UART driver header file. * @version 0.1 * @date 2021-03-07 */ #ifndef UART_H #define UART_H /****************************************************************************** * typedefs ******************************************************************************/ ...
dss875914213/dll_demo
Project1/test.h
<filename>Project1/test.h __declspec(dllexport) int Add(int a, int b); __declspec(dllexport) int Min(int a, int b);
dss875914213/dll_demo
Project2/test.h
<gh_stars>0 int Add(int a, int b); int Min(int a, int b);
NicoleYarroch/sdl_evolution
assets/proposals/0303-audio-io-manager/SDLAudioIOManagerDelegate.h
<gh_stars>10-100 #import <Foundation/Foundation.h> #import <SmartDeviceLink/SDLResult.h> @class SDLAudioIOManager; @class SDLAudioPassThruCapabilities; NS_ASSUME_NONNULL_BEGIN @protocol SDLAudioIOManagerDelegate <NSObject> @optional #pragma mark - Ouput stream delegate methods /** * Informs the delegate that the...
NicoleYarroch/sdl_evolution
assets/proposals/0303-audio-io-manager/SDLAudioIOManager.h
#import <Foundation/Foundation.h> @class SDLManager; @class SDLTTSChunk; @protocol SDLAudioIOManagerDelegate; NS_ASSUME_NONNULL_BEGIN extern NSString *const SDLErrorDomainAudioIOManager; @interface SDLAudioIOManager : NSObject @property (weak, nonatomic) id<SDLAudioIOManagerDelegate> delegate; @property (assign, ...
libpronet/libprorpc
src/pro_rpc/rpc_packet.h
<filename>src/pro_rpc/rpc_packet.h /* * Copyright (C) 2018-2019 <NAME> <<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 * * Un...
libpronet/libprorpc
src/test_rpc_server/test.h
/* * Copyright (C) 2018-2019 <NAME> <<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 applicable law or ...
libpronet/libprorpc
src/pro_rpc/rpc_server.h
/* * Copyright (C) 2018-2019 <NAME> <<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 applicable law or ...
libpronet/libprorpc
src/test_rpc_client/test.h
/* * Copyright (C) 2018-2019 <NAME> <<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 applicable law or ...
libpronet/libprorpc
src/pro_rpc/rpc_client.h
<reponame>libpronet/libprorpc /* * Copyright (C) 2018-2019 <NAME> <<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 ...
libpronet/libprorpc
src/pro_rpc/pro_rpc.h
<gh_stars>0 /* * Copyright (C) 2018-2019 <NAME> <<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 applic...
xiaerfei/NetworingCenter
RYNetworking/APILogger/RYAPILogger.h
// // RYAPILogger.h // FinaCustomer // // Created by xiaerfei on 15/7/23. // Copyright (c) 2015年 rongyu. All rights reserved. // #import <Foundation/Foundation.h> @interface RYAPILogger : NSObject + (void)logDebugInfoWithURL:(NSString *)url requestHeader:(id)requestHeader responseHeader:(id)responseHeader reques...
xiaerfei/NetworingCenter
NetworingCenterDemo/ViewController.h
// // ViewController.h // NetworingCenterDemo // // Created by xiaerfei on 15/10/27. // Copyright (c) 2015年 RongYu100. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
xiaerfei/NetworingCenter
RYNetworking/APICmd/RYBaseAPICmd.h
<reponame>xiaerfei/NetworingCenter // // RYBaseAPICmd.h // RYHttpClientDemo // // Created by xiaerfei on 15/7/22. // Copyright (c) 2015年 RongYu100. All rights reserved. // /* 每一个API需要建一个类 如:LoginAPICmd,遵守协议 RYBaseAPICmdDelegate并实现协议,决定该请求的方式: - (RYBaseAPICmdRequestType)requestType { return RYBaseAPICmdRequ...
xiaerfei/NetworingCenter
RYNetworking/APIManager/RYAPIManager.h
<gh_stars>0 // // RYAPIManager.h // RYHttpClientDemo // // Created by xiaerfei on 15/7/22. // Copyright (c) 2015年 RongYu100. All rights reserved. // #import <Foundation/Foundation.h> @class RYBaseAPICmd; @interface RYAPIManager : NSObject + (instancetype)manager; - (void)cancelRequestWithRequestID:(NSInteger)re...
helfyz/TencentOpenAPI-Mirror
TencentOpenAPI/TencentOpenAPI.framework/Headers/TencentOpenApiUmbrellaHeader.h
// // TencentOpenApiUmbrellaHeader.h // TencentOpenApi_IOS // // Created by jyukeizhang(张储祺) on 2020/7/27. // Copyright © 2020 Tencent. All rights reserved. // #ifndef TencentOpenApiUmbrellaHeader_h #define TencentOpenApiUmbrellaHeader_h #import <Foundation/Foundation.h> FOUNDATION_EXPORT double StaticLibraryMod...
maliashish98/beginners-C-program-examples
structure/structpointer/STRpoint.c
<reponame>maliashish98/beginners-C-program-examples #include<stdio.h> #include<conio.h> struct number { int a,b; int sub,add,mul; float div; }num,*n; //void cal(); void main() { clrscr(); printf("enter two numbers\n"); scanf("%d%d",&num.a,&num.b); cal(&num); printf("\nsum=%d\nmult=%d\nsub=%d\ndiv=%f",num.add,num.mul,n...
maliashish98/beginners-C-program-examples
searching/seq_search.c
<gh_stars>0 /*****************Activity 6.1**************************/ // program for sequential search #include<stdio.h> #include<conio.h> #define MAX 20 void main() { int a[MAX]; int i,ele,size,count; count=0; clrscr(); printf("\n enter the size of an array: "); scanf("%d",&size); printf("\n Enter %d elements i...
maliashish98/beginners-C-program-examples
pointertofunction.c
<reponame>maliashish98/beginners-C-program-examples #include <stdio.h> #include <conio.h> int mul(int a, int b, int c) { return a*b*c; } void main() { int (*function_pointer)(int, int, int); clrscr(); function_pointer = mul; printf("The product of three numbers is:%d",function_pointer(2, 3, 4)); getch()...
maliashish98/beginners-C-program-examples
structure/structpointer/structpoint4.c
<filename>structure/structpointer/structpoint4.c //prog on passing structure variable to a function using pointer.. #include<stdio.h> #include<conio.h> void add(struct abc*); struct abc { int x; int y; }; struct abc m; void main() { clrscr(); printf("\n enter x:"); scanf("%d",&m.x); printf("\n enter y:"); ...
maliashish98/beginners-C-program-examples
structure/nest/neststruc3.c
<gh_stars>0 #include<stdio.h> #include<conio.h> struct employee { int empno; int salary; }; struct person { char name[20],add[30]; struct employee e1; }; void main() { struct person p[2]; int i; clrscr(); for(i=0;i<2;i++) { printf("enter the name /add/empno/salary\n"); scanf("%s%s%d%d",p[i].name,p[i].add,&p[i].e1.emp...
maliashish98/beginners-C-program-examples
structure/structfun/stfun3.C.c
<reponame>maliashish98/beginners-C-program-examples struct nos { int a,b; int add,sub,mul; float div; }; struct nos cal(struct nos n); //struct ab void main() { struct nos n; clrscr(); printf("enter 2 nos:"); scanf("%d%d",&n.a,&n.b) ; n=cal(n); printf("sum=%d\n sub=%d\n mul=%d\n div=%f\n"...
ssteveminq/people_tracker
include/people_tracker/people_tracker.h
<filename>include/people_tracker/people_tracker.h #ifndef PEDESTRIANLOCALISATION_H #define PEDESTRIANLOCALISATION_H #include <ros/ros.h> #include <ros/time.h> #include <tf/transform_listener.h> #include <tf/transform_datatypes.h> #include <geometry_msgs/Quaternion.h> #include <geometry_msgs/PoseStamped.h> #include <ge...
ssteveminq/people_tracker
include/people_tracker/simple_tracking.h
<reponame>ssteveminq/people_tracker /*************************************************************************** * Copyright (C) 2011 by <NAME> * * <EMAIL> * * * ...
waitwalker/WWPlayer
WWPlayer/WWPlayer/WWPlayer.h
// // WWPlayer.h // WWPlayer // // Created by etiantian on 2020/1/20. // Copyright © 2020 etiantian. All rights reserved. // #import <UIKit/UIKit.h> NS_ASSUME_NONNULL_BEGIN // MARK: - player delegate @protocol WWPlayerDelegate <NSObject> @required /** * @description play error * @author waitwalker * @date 2020...
waitwalker/WWPlayer
WWPlayer/AppDelegate.h
// // AppDelegate.h // WWPlayer // // Created by etiantian on 2020/1/20. // Copyright © 2020 etiantian. All rights reserved. // #import <UIKit/UIKit.h> @interface AppDelegate : UIResponder <UIApplicationDelegate> @end
waitwalker/WWPlayer
WWPlayer/ViewController.h
// // ViewController.h // WWPlayer // // Created by etiantian on 2020/1/20. // Copyright © 2020 etiantian. All rights reserved. // #import <UIKit/UIKit.h> @interface ViewController : UIViewController @end
waitwalker/WWPlayer
WWPlayer/SceneDelegate.h
<gh_stars>0 // // SceneDelegate.h // WWPlayer // // Created by etiantian on 2020/1/20. // Copyright © 2020 etiantian. All rights reserved. // #import <UIKit/UIKit.h> @interface SceneDelegate : UIResponder <UIWindowSceneDelegate> @property (strong, nonatomic) UIWindow * window; @end
xint1024/xint-lang
chap-4.7/src/token.h
<reponame>xint1024/xint-lang<filename>chap-4.7/src/token.h #ifndef _TOKEN_H_ #define _TOKEN_H_ #include "string.h" #include <stdint.h> #include <stdbool.h> #include <stdlib.h> typedef enum { TK_ERROR, TK_UNKNOWN, TK_EOF, TK_COMMENT, //数据常量 TK_NULL, //null TK_TRUE, //true TK_FALSE, /...
xint1024/xint-lang
chap-4.6/src/lex.c
<gh_stars>0 #include "lex.h" extern bool isWhitespace(char ch); extern void Lexer_parseComment(Lexer *lexer); Lexer *Lexer_new(Scanner *scanner) { if (!scanner) { fprintf(stderr, "scanner is null\n"); return NULL; } Lexer *lexer = (Lexer *)malloc(sizeof(Lexer)); lexer->scanner = scanner; lex...
xint1024/xint-lang
chap-4.8/src/lex.h
#ifndef _LEX_H_ #define _LEX_H_ #include "scan.h" #include "token.h" #include <stdint.h> #include <stdbool.h> #include <stdlib.h> typedef struct Lexer_ { int curStatus; Token curToken; Token lastToken; Scanner *scanner; } Lexer; Lexer *Lexer_new(Scanner *scanner); void Lexer_delete(Lexer *l...
xint1024/xint-lang
chap-4.5/src/main.c
<reponame>xint1024/xint-lang #include "scan.h" #include "lex.h" #include <stdlib.h> #include <string.h> FILE* readFile(char* filename){ FILE *source = fopen(filename ,"r"); if (source==NULL){ fprintf(stderr,"File %s not found\n",filename); exit(1); } FILE *screen = stdout; /...
xint1024/xint-lang
chap-4.8/src/main.c
<reponame>xint1024/xint-lang #include "scan.h" #include "lex.h" #include <stdlib.h> #include <string.h> void Console_Reset() { fprintf(stdout, "\033[m"); } void Console_setRed() { fprintf(stdout, "\033[0;32;31m"); } void Console_setGreen() { fprintf(stdout, "\033[0;32;32m"); } void Conso...
xint1024/xint-lang
chap-4.8/src/string.c
#include "string.h" #include <string.h> #include <stdio.h> #include <stdlib.h> extern String* String_realloc(String* str, int64_t alloc); String* String_new(){ int64_t cap = 16; String *str = (String*) malloc(sizeof(String)) + sizeof(char)*cap; str->len=0; str->alloc=16; str->buf[0] = ...
xint1024/xint-lang
chap-4.8/src/scan.h
<gh_stars>0 #ifndef _SCAN_H_ #define _SCAN_H_ #include <stdint.h> #include <stdbool.h> #include <string.h> #include <stdio.h> #include <stdlib.h> #define SCAN_BUF_LEN 80 typedef struct Scanner_ { int readPos; int lineSize; int lineNum; int colNum; int aheadStatus; char curCh...
xint1024/xint-lang
chap-4.8/src/token.c
#include "token.h" #include <stdio.h> #include <stdlib.h> #include <string.h> const TokenTable tokenTables[] = { {TK_ERROR, 0, 0, "TK_ERROR", ""}, {TK_UNKNOWN, 0, 0, "TK_UNKNOWN", ""}, {TK_EOF, 0, 0, "TK_EOF", ""}, {TK_COMMENT, 0, 0, "TK_COMMENT", ""}, //常量值 {TK_NUMBER, 0, 0, "TK_NUMBER", ""}, {...
xint1024/xint-lang
chap-4.8/src/lex.c
#include "lex.h" extern bool isWhitespace(char ch); extern bool isAlpha(char ch); extern bool isDigit(char ch); extern bool isDigit2(char ch); extern bool isDigit8(char ch); extern bool isDigit16(char ch); extern void Lexer_parseComment(Lexer *lexer); extern void Lexer_parseIdKeyword(Lexer *lexer); extern ...
xint1024/xint-lang
chap-4.4/src/main.c
<gh_stars>0 #include "scan.h" #include <stdlib.h> #include <string.h> FILE* readFile(char* filename){ FILE *source = fopen(filename ,"r"); if (source==NULL){ fprintf(stderr,"File %s not found\n",filename); exit(1); } FILE *screen = stdout; /* send listing to screen */ fp...
xint1024/xint-lang
chap-4.5/src/lex.c
<gh_stars>0 #include "lex.h" extern bool isWhitespace(char ch); Lexer *Lexer_new(Scanner *scanner) { if (!scanner) { fprintf(stderr, "scanner is null\n"); return NULL; } Lexer *lexer = (Lexer *)malloc(sizeof(Lexer)); lexer->scanner = scanner; lexer->curStatus = 0; ...
xint1024/xint-lang
chap-4.4/src/scan.c
<reponame>xint1024/xint-lang #include "scan.h" Scanner* Scanner_new(FILE* file){ if(!file) { fprintf(stderr,"file is null\n"); return NULL; } Scanner* scanner = (Scanner*) malloc(sizeof(Scanner)); scanner->readPos=-1; scanner->lineSize=0; scanner->lineNum=1; sca...
xint1024/xint-lang
chap-4.7/src/main.c
#include "scan.h" #include "lex.h" #include <stdlib.h> #include <string.h> FILE *readFile(char *filename) { FILE *source = fopen(filename, "r"); if (source == NULL) { fprintf(stderr, "File %s not found\n", filename); exit(1); } FILE *screen = stdout; /* send listing to ...
xint1024/xint-lang
chap-4.8/src/string.h
#ifndef _SDSTRING_H_ #define _SDSTRING_H_ #include <stdint.h> typedef struct String_{ int64_t len; //已使用内存大小 int64_t alloc; //已分配内存大小 char buf[]; } String; int64_t String_len(String *str); String* String_new(); void String_delete(String *str); int64_t String_size(String* str);...
nityeshaga/learntrisIm
source/generic.c
<reponame>nityeshaga/learntrisIm<filename>source/generic.c /*THIS FILE CONTAINS ALL THE FUNCTION AND OTHER DEFINITIONS REQUIRED BY MORE THAN ONE FILE*/ #include"generic.h" /*check_empty_row(): checks if the row of a square matrix of side length 'dimension', starting with the element at address 'start' is empty for th...
nityeshaga/learntrisIm
source/tetramino.h
<filename>source/tetramino.h /*tetramino.h HEADER FILE CONTAINS THE FUNCTION DECLARATIONS FOR tetramino.c*/ #include<stdio.h> #include<stdlib.h> int select_tetramino(char type); int display_tetramino(void); tetramino rotate(char); void calc_emptiness(tetramino);
nityeshaga/learntrisIm
source/tetramino.c
<filename>source/tetramino.c /*tetramino.c FILE CONTAINS ALL THE VARIABLES AND FUNCTION DEFINITIONS REQUIRED TO MODIFY THE TETRAMINOS*/ #include"generic.h" #include"tetramino.h" tetramino selected; /*select_tetramino(): assigns the appropriate properties of 'type' tetramino to the selected tetramino variable*/ int s...
nityeshaga/learntrisIm
source/matrix.c
/*THIS FILE CONTAINS ALL THE VARIABLES AND FUNCTION DEFINITIONS REQUIRED TO MODIFY THE MATRIX*/ #include"generic.h" #include"matrix.h" /*the data structure chosen for the matrix must allow for frequent data insertions and deletions at any desired position *it should also allow us to rewrite the whole matrix *a 2D a...
nityeshaga/learntrisIm
source/learntris.c
#include<stdio.h> #include"generic.h" #include"matrix.h" #include"tetramino.h" #define MAXREAD 100 #define TESTING /*uncomment this line when running testris.py*/ extern int active_row; extern int active_column; extern tetramino selected; extern char matrix[22][10]; static void tetramino_on_matrix(void); static ch...
nityeshaga/learntrisIm
source/generic.h
#include<stdio.h> #include<stdlib.h> #define TOP 0 #define BOTTOM 1 #define RIGHT 2 #define LEFT 3 #define ALL -1 #define ROW 10 #define COLUMN 11 typedef struct tetramino { char array[4][4]; /*2D matrix that stores the tetramino shape*/ int dimension; /*length of side of square matrix that stores the tetramino*/ ...
nityeshaga/learntrisIm
source/matrix.h
/*matrix.h HEADER FILE CONTAINS THE FUNCTION DECLARATIONS FOR matrix.c*/ #include<stdio.h> #include<stdlib.h> #include<ctype.h> int empty_matrix(void); int set_given_matrix(void); int clear_row_matrix(int); int nudge_right(tetramino); int nudge_left(tetramino); int move_down(tetramino); void shift_down(int);
Freesandy/libretro-genesis_plus_gx
libretro/libretro_core_options.h
<filename>libretro/libretro_core_options.h #ifndef LIBRETRO_CORE_OPTIONS_H__ #define LIBRETRO_CORE_OPTIONS_H__ #include <stdlib.h> #include <string.h> #include <libretro.h> #include <retro_inline.h> #ifndef HAVE_NO_LANGEXTRA #include "libretro_core_options_intl.h" #endif /* ******************************** * VERS...
elct9620/concourse-example-mrb
mrb-bin-example/tools/example/example.c
#include "stdio.h" #include "mruby.h" #include "mruby/compile.h" #include "mruby/string.h" int main(int argc, char** argv) { mrb_state* mrb = mrb_open(); mrb_load_string(mrb, argv[1]); if(mrb->exc) { mrb_print_error(mrb); return 1; } mrb_close(mrb); return 0; }
mammix2/amber
src/qt/qtipcserver.h
<gh_stars>1-10 #ifndef QTIPCSERVER_H #define QTIPCSERVER_H // Define AmberCoin-Qt message queue name #define BITCOINURI_QUEUE_NAME "AmberCoinURI" void ipcScanRelay(int argc, char *argv[]); void ipcInit(int argc, char *argv[]); #endif // QTIPCSERVER_H
db-tech/SDL_ttf
external/freetype-2.4.12/src/cff/cf2font.h
/***************************************************************************/ /* */ /* cf2font.h */ /* */ /* Ad...
db-tech/SDL_ttf
external/freetype-2.4.12/src/type1/t1load.c
<reponame>db-tech/SDL_ttf /***************************************************************************/ /* */ /* t1load.c */ /* ...
db-tech/SDL_ttf
external/freetype-2.4.12/src/autofit/afpic.c
/***************************************************************************/ /* */ /* afpic.c */ /* */ /* Th...
db-tech/SDL_ttf
external/freetype-2.4.12/devel/ft2build.h
<gh_stars>1000+ /***************************************************************************/ /* */ /* ft2build.h */ /* ...
db-tech/SDL_ttf
external/freetype-2.4.12/src/psaux/psconv.c
/***************************************************************************/ /* */ /* psconv.c */ /* */ /* So...
slimlime/SpartanEngine
Runtime/RHI/RHI_Descriptor.h
<filename>Runtime/RHI/RHI_Descriptor.h /* Copyright(c) 2016-2021 <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, m...
slimlime/SpartanEngine
Runtime/Input/Input.h
<filename>Runtime/Input/Input.h /* Copyright(c) 2016-2021 <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, ...
slimlime/SpartanEngine
Editor/ImGui_Extension.h
/* Copyright(c) 2016-2021 <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, distribute, subl...
slimlime/SpartanEngine
Runtime/RHI/RHI_StructuredBuffer.h
<reponame>slimlime/SpartanEngine /* Copyright(c) 2016-2021 <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,...
slimlime/SpartanEngine
Runtime/Audio/AudioClip.h
/* Copyright(c) 2016-2021 <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, distribute, subl...
slimlime/SpartanEngine
Runtime/Rendering/Renderer_Enums.h
<reponame>slimlime/SpartanEngine<filename>Runtime/Rendering/Renderer_Enums.h /* Copyright(c) 2016-2021 <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...
slimlime/SpartanEngine
Runtime/Resource/IResource.h
/* Copyright(c) 2016-2021 <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, distribute, subl...
slimlime/SpartanEngine
Editor/Widgets/Widget_Console.h
/* Copyright(c) 2016-2021 <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, distribute, subl...
slimlime/SpartanEngine
Editor/WidgetsDeferred/IconProvider.h
/* Copyright(c) 2016-2021 <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, distribute, subl...
slimlime/SpartanEngine
Runtime/RHI/RHI_Vertex.h
/* Copyright(c) 2016-2021 <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, distribute, subl...
slimlime/SpartanEngine
Runtime/RHI/RHI_SwapChain.h
/* Copyright(c) 2016-2021 <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, distribute, subl...
slimlime/SpartanEngine
Runtime/Rendering/ShaderLight.h
/* Copyright(c) 2016-2021 <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, distribute, subl...
slimlime/SpartanEngine
Runtime/World/Components/Collider.h
/* Copyright(c) 2016-2021 <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, distribute, subl...