Commit a1bd5080 authored by Vladimir Serbinenko's avatar Vladimir Serbinenko
Browse files

Move gettext logic into separate file and disable it on Android

parent fa46899d
......@@ -21,9 +21,7 @@
#include "defines.h"
#include <libintl.h>
#define _(String) gettext (String)
#include "intl.h"
/*
* Page mapping, per 8 Kw page. Default is a mapping mimicking BK-0010
*/
......
......@@ -2,8 +2,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <libintl.h>
#define _(String) gettext (String)
#include "intl.h"
#include <fcntl.h>
#include <stdlib.h>
......
......@@ -28,8 +28,7 @@
*/
#include "defines.h"
#include <libintl.h>
#define _(String) gettext (String)
#include "intl.h"
/*
* load_rom() - Read the contents of the ROM into the array.
......
......@@ -2,8 +2,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <libintl.h>
#define _(String) gettext (String)
#include "intl.h"
void covox_init() {
covox_val = 0;
......
......@@ -16,8 +16,7 @@
#include "defines.h"
#include <ctype.h>
#include <libintl.h>
#define _(String) gettext (String)
#include "intl.h"
/* Instructions can be prefixed by an uppercase letter:
* B - branch (signed jump offset)
......
......@@ -3,8 +3,7 @@
#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <libintl.h>
#define _(String) gettext (String)
#include "intl.h"
/* let's operate on 819200 byte images first */
#define SECSIZE 512
......
#ifdef __ANDROID__
#define _(x) (x)
#define gettext(x) (x)
#else
#include <libintl.h>
#define _(String) gettext (String)
#endif
......@@ -3,8 +3,7 @@
#include <stdio.h>
#include <sys/ioctl.h>
/* #include <linux/soundcard.h> */
#include <libintl.h>
#define _(String) gettext (String)
#include "intl.h"
flag_t telegraph_enabled = 0; /* Default */
......
......@@ -32,10 +32,9 @@
#include "scr.h"
#include "conf.h"
#include <SDL/SDL.h>
#include <libintl.h>
#include "intl.h"
#include <locale.h>
#include <sys/time.h>
#define _(String) gettext (String)
/*
* Globals.
......
......@@ -2,8 +2,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <libintl.h>
#define _(String) gettext (String)
#include "intl.h"
FILE * io_printer_file = NULL;
#define STROBE 0400
......
......@@ -11,8 +11,8 @@
#include "defines.h"
#include <libintl.h>
#define _(String) gettext (String)
#include "intl.h"
/* Allows up to 32 different HW interrupts,
* there can be no more than 1 pending interrupt of each kind.
......
......@@ -3,8 +3,6 @@
#include <fcntl.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <libintl.h>
#define _(String) gettext (String)
unsigned char synth_reg;
#define SOUND_FREQ 44100
......
......@@ -2,8 +2,7 @@
#include <fcntl.h>
#include <stdio.h>
#include <sys/ioctl.h>
#include <libintl.h>
#define _(String) gettext (String)
#include "intl.h"
unsigned char tape_read_val = 1, tape_write_val = 0;
FILE * tape_read_file = NULL;
......
......@@ -3,8 +3,8 @@
#include <stdio.h>
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <libintl.h>
#define _(String) gettext (String)
#include "intl.h"
#include <unistd.h>
/* Terak floppy images are 128*26*76 = 252928 bytes, single-sided */
#define SECSIZE 64 /* words */
......
......@@ -8,8 +8,7 @@
#define TIM_DIV16 32
#define TIM_DIV4 64
#define TIM_END 128
#include <libintl.h>
#define _(String) gettext (String)
#include "intl.h"
/* Period is such that the cycle duration of the timer counter
* with both dividers on is almost exactly 3 min (178.95 sec).
......
#include "defines.h"
#include <libintl.h>
#define _(String) gettext (String)
#include "intl.h"
#define REGREG 12
......
......@@ -23,8 +23,7 @@
#include "SDL/SDL_keysym.h"
#include "SDL/SDL_events.h"
#include <ctype.h>
#include <libintl.h>
#define _(String) gettext (String)
#include "intl.h"
#define TTY_VECTOR 060 /* standard vector for console */
#define TTY_VECTOR2 0274 /* AR2 (ALT) vector for console */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment