mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-07-26 19:41:56 +00:00
Guess .h language
This commit is contained in:
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
|
||||
@interface Foo : NSObject {
|
||||
|
||||
}
|
||||
|
||||
@end
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
#import "Foo.h"
|
||||
|
||||
|
||||
@implementation Foo
|
||||
|
||||
@end
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@interface FooAppDelegate : NSObject <NSApplicationDelegate> {
|
||||
@private
|
||||
NSWindow *window;
|
||||
}
|
||||
|
||||
@property (assign) IBOutlet NSWindow *window;
|
||||
|
||||
@end
|
||||
Vendored
+12
@@ -0,0 +1,12 @@
|
||||
#import "FooAppDelegate.h"
|
||||
|
||||
@implementation FooAppDelegate
|
||||
|
||||
@synthesize window;
|
||||
|
||||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
||||
{
|
||||
// Insert code here to initialize your application
|
||||
}
|
||||
|
||||
@end
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
class Bar
|
||||
{
|
||||
protected:
|
||||
|
||||
char *name;
|
||||
|
||||
public:
|
||||
|
||||
void hello();
|
||||
}
|
||||
Vendored
+10
@@ -0,0 +1,10 @@
|
||||
class Bar
|
||||
{
|
||||
protected:
|
||||
|
||||
char *name;
|
||||
|
||||
public:
|
||||
|
||||
void hello();
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
#include <stdio.h>
|
||||
|
||||
void main()
|
||||
{
|
||||
printf("Hello World\n");
|
||||
}
|
||||
Vendored
+8
@@ -0,0 +1,8 @@
|
||||
#include <iostream>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int main()
|
||||
{
|
||||
cout << "Hello World" << endl;
|
||||
}
|
||||
Vendored
+6
@@ -0,0 +1,6 @@
|
||||
#ifndef HELLO_H
|
||||
#define HELLO_H
|
||||
|
||||
void hello();
|
||||
|
||||
#endif
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
NSLog(@"Hello, World!\n");
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user