summary refs log tree commit diff stats
path: root/src/fe-gtk/urlgrab.h
blob: 246b56e7a83bef159085ab3786a1147a1437ebe7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* HexChat
 * Copyright (C) 1998-2010 Peter Zelezny.
 * Copyright (C) 2009-2013 Berke Viktor.
 *
 * This program 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; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program 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, write to the Free Software
 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
 */

#ifndef HEXCHAT_URLGRAB_H
#define HEXCHAT_URLGRAB_H

void url_opengui (void);

#endif
ers don't like them. * When opening a file with Unix level functions (open, read/write, close) as opposed to the C level functions (fopen, fwrite/fread, fclose), use the OFLAGS macro. This makes sure it'll work on Win32 aswell as Unix e.g.: <pre>fh = open ("file", OFLAGS | O_RDONLY);</pre> * Use closesocket() for sockets, and close() for normal files. * Don't read() from sockets, use recv() instead. * Please provide unified format diffs (run diff -u). * Call your patch something more meaningfull than hexchat.diff. * To make a really nice and clean patch, do something like this: * Have two directories, unpacked from the original archive: <pre>hexchat-2.9.0/ hexchat-2.9.0p1/</pre> * Then edit/compile the hexchat-2.9.0p1 directory. To create a patch: * Windows: <pre>rmdir /q /s hexchat-2.9.0p1/win32/build rmdir /q /s hexchat-2.9.0p1/win32/build-xp diff -ruN --strip-trailing-cr hexchat-2.9.0 hexchat-2.9.0p1 > hexchat-something.diff </pre> * Unix: <pre>diff -ruN hexchat-2.9.0 hexchat-2.9.0p1 > hexchat-something.diff</pre>