Skip to content

Commit

Permalink
Removing 'Foundation.h' imports
Browse files Browse the repository at this point in the history
  • Loading branch information
fcambus committed Jun 8, 2015
1 parent 240e3b0 commit 3f0fa8a
Show file tree
Hide file tree
Showing 13 changed files with 0 additions and 63 deletions.
4 changes: 0 additions & 4 deletions ansilove/albinfonts.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
// See the file LICENSE for details.
//

#if defined(__APPLE__) && defined(__MACH__)
#import "albinfonts.h"
#else
#include "albinfonts.h"
#endif

const unsigned char font_pc_80x25[4096] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
Expand Down
4 changes: 0 additions & 4 deletions ansilove/albinfonts.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@
// See the file LICENSE for details.
//

#if defined(__APPLE__) && defined(__MACH__)
#import <Foundation/Foundation.h>
#else
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#endif

#ifndef albinfonts_h
#define albinfonts_h
Expand Down
4 changes: 0 additions & 4 deletions ansilove/ansilove.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
// See the file LICENSE for details.
//

#if defined(__APPLE__) && defined(__MACH__)
#import "ansilove.h"
#else
#include "ansilove.h"
#endif

// shared method for drawing characters
void alDrawChar(gdImagePtr im, const unsigned char *font_data, int32_t int_bits,
Expand Down
11 changes: 0 additions & 11 deletions ansilove/ansilove.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@
// See the file LICENSE for details.
//

#if defined(__APPLE__) && defined(__MACH__)
#import <Foundation/Foundation.h>
#import <gd.h>
#import "alconfig.h"
#import "albinfonts.h"
#import "strtolower.h"
#import "substr.h"
#import "explode.h"
#import "filesize.h"
#else
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
Expand All @@ -29,7 +19,6 @@
#include "substr.h"
#include "explode.h"
#include "filesize.h"
#endif

#ifndef ansilove_h
#define ansilove_h
Expand Down
4 changes: 0 additions & 4 deletions ansilove/explode.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
// See the file LICENSE for details.
//

#if defined(__APPLE__) && defined(__MACH__)
#import "explode.h"
#else
#include "explode.h"
#endif

int32_t explode(char ***arr_ptr, char delimiter, char *str)
{
Expand Down
4 changes: 0 additions & 4 deletions ansilove/explode.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@
// See the file LICENSE for details.
//

#if defined(__APPLE__) && defined(__MACH__)
#import <Foundation/Foundation.h>
#else
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#endif

#ifndef explode_h
#define explode_h
Expand Down
4 changes: 0 additions & 4 deletions ansilove/filesize.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
// See the file LICENSE for details.
//

#if defined(__APPLE__) && defined(__MACH__)
#import "filesize.h"
#else
#include "filesize.h"
#endif

size_t filesize(char *filepath)
{
Expand Down
4 changes: 0 additions & 4 deletions ansilove/filesize.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,8 @@
// See the file LICENSE for details.
//

#if defined(__APPLE__) && defined(__MACH__)
#import <Foundation/Foundation.h>
#else
#include <stdio.h>
#include <stdlib.h>
#endif

#ifndef filesize_h
#define filesize_h
Expand Down
8 changes: 0 additions & 8 deletions ansilove/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@
// See the file LICENSE for details.
//

#if defined(__APPLE__) && defined(__MACH__)
#import <Foundation/Foundation.h>
#import "alconfig.h"
#import "strtolower.h"
#import "substr.h"
#import "ansilove.h"
#else
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Expand All @@ -24,7 +17,6 @@
#include "strtolower.h"
#include "substr.h"
#include "ansilove.h"
#endif

// prototypes
void showHelp(void);
Expand Down
4 changes: 0 additions & 4 deletions ansilove/strtolower.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
// See the file LICENSE for details.
//

#if defined(__APPLE__) && defined(__MACH__)
#import "strtolower.h"
#else
#include "strtolower.h"
#endif

char *strtolower(char *str)
{
Expand Down
4 changes: 0 additions & 4 deletions ansilove/strtolower.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@
// See the file LICENSE for details.
//

#if defined(__APPLE__) && defined(__MACH__)
#import <Foundation/Foundation.h>
#else
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#endif

#ifndef strtolower_h
#define strtolower_h
Expand Down
4 changes: 0 additions & 4 deletions ansilove/substr.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,7 @@
// See the file LICENSE for details.
//

#if defined(__APPLE__) && defined(__MACH__)
#import "substr.h"
#else
#include "substr.h"
#endif

char *substr(char *str, size_t begin, size_t len)
{
Expand Down
4 changes: 0 additions & 4 deletions ansilove/substr.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,9 @@
// See the file LICENSE for details.
//

#if defined(__APPLE__) && defined(__MACH__)
#import <Foundation/Foundation.h>
#else
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#endif

#ifndef substr_h
#define substr_h
Expand Down

0 comments on commit 3f0fa8a

Please sign in to comment.