summaryrefslogtreecommitdiff
path: root/atari/misc.h
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2016-05-05 22:28:51 +0100
committerVincent Sanders <vince@kyllikki.org>2016-05-15 13:44:34 +0100
commitd21447d096a320a08b3efb2b8768fad0dcdcfd64 (patch)
tree1a83814b7c9e94b2f13c473261f23dd3a17dee64 /atari/misc.h
parent2cbb337756d9af5bda4d594964d446439f602551 (diff)
downloadnetsurf-d21447d096a320a08b3efb2b8768fad0dcdcfd64.tar.gz
netsurf-d21447d096a320a08b3efb2b8768fad0dcdcfd64.tar.bz2
move frontends into sub directory
Diffstat (limited to 'atari/misc.h')
-rw-r--r--atari/misc.h106
1 files changed, 0 insertions, 106 deletions
diff --git a/atari/misc.h b/atari/misc.h
deleted file mode 100644
index e581c23b2..000000000
--- a/atari/misc.h
+++ /dev/null
@@ -1,106 +0,0 @@
-/*
- * Copyright 2010 Ole Loots <ole@monochrom.net>
- *
- * This file is part of NetSurf, http://www.netsurf-browser.org/
- *
- * NetSurf is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * NetSurf is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
-
-#ifndef NS_ATARI_MISC_H
-#define NS_ATARI_MISC_H
-
-
-#define SBUF8_TO_LBUF8(sbuf,lbuf)\
- lbuf[0] = (long)sbuf[0];\
- lbuf[1] = (long)sbuf[1];\
- lbuf[2] = (long)sbuf[2];\
- lbuf[3] = (long)sbuf[3];\
- lbuf[4] = (long)sbuf[4];\
- lbuf[5] = (long)sbuf[5];\
- lbuf[6] = (long)sbuf[6];\
- lbuf[7] = (long)sbuf[7];
-
-#define RECT_TO_GRECT(r,g) \
- (g)->g_x = (r->x0 < r->x1) ? r->x0 : r->x1 ; \
- (g)->g_y = (r->y0 < r->y1) ? r->y0 : r->y1 ; \
- (g)->g_w = (r->x0 < r->x1) ? r->x1 - r->x0 : r->x0 - r->x1 ; \
- (g)->g_h = (r->y0 < r->y1) ? r->y1 - r->y0 : r->y0 - r->y1 ;
-
-
-
-/* Modes for find_gui_window: */
-#define BY_WINDOM_HANDLE 0x0
-#define BY_GEM_HANDLE 0x1
-
-/**
- */
-typedef int (*scan_process_callback)(int pid, void *data);
-
-/**
- */
-struct gui_window * find_guiwin_by_aes_handle(short handle);
-
-/**
- */
-bool is_process_running(const char * name);
-
-/**
- */
-void gem_set_cursor( MFORM_EX * cursor );
-
-/**
- */
-void dbg_grect(const char * str, GRECT * r);
-
-/**
- */
-void dbg_pxy(const char * str, short * pxy);
-
-/**
- */
-void dbg_rect(const char * str, int * pxy);
-
-/**
- */
-const char * file_select(const char * title, const char * name);
-
-/**
- * Convert NKC to netsurf input key code and/or to ucs4 (depends on keycode).
- *
- * \param[in] nkc atari normalized key code
- * \param[out] ucs4_out The ucs4 converted keycode
- * \return The netsurf input keycode or 0 and ucs4_out updated with
- * the NKC converted to UC4 encoding.
- */
-long nkc_to_input_key(short nkc, long * ucs4_out);
-
-/**
- * Cause an abnormal program termination.
- *
- * \note This never returns and is intended to terminate without any cleanup.
- *
- * \param error The message to display to the user.
- */
-void die(const char * const error) __attribute__ ((noreturn));
-
-/**
- * Warn the user of an event.
- *
- * \param[in] warning A warning looked up in the message translation table
- * \param[in] detail Additional text to be displayed or NULL.
- * \return NSERROR_OK on success or error code if there was a
- * faliure displaying the message to the user.
- */
-nserror atari_warn_user(const char *warning, const char *detail);
-
-#endif