summaryrefslogtreecommitdiff
path: root/utils/utils.c
Commit message (Collapse)AuthorAgeFilesLines
* Move timeval_subtract to utils/log.c & make it static, as it's not used ↵John Mark Bell2011-10-151-28/+0
| | | | | | anywhere else svn path=/trunk/netsurf/; revision=13059
* Make strchrnul stupid.John Mark Bell2011-04-081-132/+5
| | | | svn path=/trunk/netsurf/; revision=12174
* Fix build with NDEBUG definedJohn Mark Bell2011-04-031-3/+0
| | | | svn path=/trunk/netsurf/; revision=12154
* add compatability for inet_pton and inet_atonVincent Sanders2011-02-071-0/+52
| | | | svn path=/trunk/netsurf/; revision=11627
* Fix windows url barVincent Sanders2010-10-171-0/+28
| | | | | | Clean up toolbar and urlbar creation and subclassing svn path=/trunk/netsurf/; revision=10891
* add realpath compatability for windowsVincent Sanders2010-10-091-0/+15
| | | | svn path=/trunk/netsurf/; revision=10873
* Consolidate several 'myrealloc' functions into ns_realloc, rename one which ↵Daniel Silverstone2010-04-301-0/+13
| | | | | | *is* different, thereby eliminating the word 'myrealloc' from the NS codebase svn path=/trunk/netsurf/; revision=10530
* hopefully fix the _GNU_SOURCE messVincent Sanders2010-04-261-0/+2
| | | | svn path=/trunk/netsurf/; revision=10487
* remove _GNU_SOURCE define from everywhere.Vincent Sanders2010-04-241-2/+0
| | | | | | strndup is not standard so provide an implementation. svn path=/trunk/netsurf/; revision=10474
* Add Windows frontendVincent Sanders2010-01-311-0/+14
| | | | svn path=/trunk/netsurf/; revision=9940
* Merge branches/MarkieB/gtkmain to trunk.John Mark Bell2009-12-171-0/+23
| | | | svn path=/trunk/netsurf/; revision=9729
* Merge LibCSS port to trunk.John Mark Bell2009-07-231-18/+165
| | | | svn path=/trunk/netsurf/; revision=8752
* Limit scope of manually-defined NDEBUG. Purge a bunch of redundant #undef ↵John Mark Bell2009-05-281-0/+1
| | | | | | NDEBUG. svn path=/trunk/netsurf/; revision=7593
* Make nsgtk compile on Mac OS X.John Mark Bell2008-08-111-0/+1
| | | | svn path=/trunk/netsurf/; revision=5031
* Update my e-mail address.John Tytgat2008-08-051-1/+1
| | | | svn path=/trunk/netsurf/; revision=4908
* C89François Revel2008-07-291-4/+3
| | | | svn path=/trunk/netsurf/; revision=4795
* Update all source code file headers to reflect GPL version 2 only and ↵Vincent Sanders2007-08-081-5/+15
| | | | | | contain appropriate licence text svn path=/trunk/netsurf/; revision=3486
* Add HAVE_STRNDUP and supporting structure to config.h and make utils.[ch] ↵Rob Kendrick2007-06-161-1/+1
| | | | | | reflect it. svn path=/trunk/netsurf/; revision=3351
* Changes to allow building on Solaris.Rob Kendrick2007-06-151-1/+1
| | | | | | | | | * Tested on Solaris Express: Developer Edition, which is between Solaris 10 and 11. * Used gcc, libmng etc packages using pkg-get and blastwave's resources. * Had to build lemon and re2c manually. svn path=/trunk/netsurf/; revision=3350
* Remove the netsurf/ from the include paths and rationalise use of <> vs "" ↵Daniel Silverstone2007-05-301-5/+5
| | | | | | | | | | | | | | in includes NetSurf includes are now done with ""s and other system includes with <>s as C intended. The scandeps tool has been updated to only look for ""ed includes, and to verify that the files exist in the tree before adding them to the dependency lines. The depend rule has therefore been augmented to make sure the autogenerated files are built before it is run. This is untested under self-hosted RISC OS builds. All else tested and works. svn path=/trunk/netsurf/; revision=3307
* Move user-agent generation into fetch.c and simplify.James Bursa2007-05-021-32/+0
| | | | svn path=/trunk/netsurf/; revision=3260
* Generates and use a User-Agent: string based on new ↵Rob Kendrick2007-01-301-0/+35
| | | | | | netsurf_version_major/minor values, and results of uname(). svn path=/trunk/netsurf/; revision=3158
* Make time taken that is displayed in status bar use gettimeofday()-based ↵Rob Kendrick2007-01-301-0/+17
| | | | | | time rather than clock()-based time svn path=/trunk/netsurf/; revision=3157
* Make GTK build compile on FreeBSD.James Bursa2007-01-291-1/+28
| | | | svn path=/trunk/netsurf/; revision=3154
* Update project URL.Michael Drake2006-11-271-1/+1
| | | | svn path=/trunk/netsurf/; revision=3073
* Use case-insensitive strstr to match "stylesheet"John Mark Bell2006-07-021-0/+21
| | | | svn path=/trunk/netsurf/; revision=2689
* Remove clean_cookiejar; it's been redundant for yearsJohn Mark Bell2006-06-271-77/+0
| | | | svn path=/trunk/netsurf/; revision=2654
* [project @ 2006-02-06 00:10:09 by jmb]John Mark Bell2006-02-061-0/+23
| | | | | | Implement HTTP caching algorithm; this should avoid stale cache entries being used. svn path=/import/netsurf/; revision=2059
* [project @ 2005-06-07 21:29:26 by jmb]John Mark Bell2005-06-071-34/+0
| | | | | | | Lose cnv_str_local_enc and friends. UTF-8 conversion functions now return an enumerated type allowing for fallbacks, if appropriate. svn path=/import/netsurf/; revision=1744
* [project @ 2005-05-24 20:22:14 by bursa]James Bursa2005-05-241-1/+0
| | | | | | Remove unnecessary include. svn path=/import/netsurf/; revision=1737
* [project @ 2005-04-16 05:16:18 by jmb]John Mark Bell2005-04-161-3/+0
| | | | | | Lose \todo svn path=/import/netsurf/; revision=1649
* [project @ 2005-04-16 05:09:32 by jmb]John Mark Bell2005-04-161-99/+5
| | | | | | | | | | | | Split out UTF-8 handling functions. Submit URL-encoded forms in sensible encoding: * First entry in accept-charset list, if present * Document encoding, otherwise We may want to explicitly look for UTF-8, to save converting. Convert cnv_str_local_enc/cnv_local_enc_str to use iconv (they're now veneers for utf8_[to/from]_enc). Provide mechanism for looking up local system charset (derived from system alphabet, under RISC OS) svn path=/import/netsurf/; revision=1647
* [project @ 2005-01-02 03:58:20 by jmb]John Mark Bell2005-01-021-38/+13
| | | | | | xcalloc/xrealloc/xstrdup-purge - Lose remaining calls (and purge the relevant functions from utils.c) svn path=/import/netsurf/; revision=1419
* [project @ 2004-12-09 22:23:32 by bursa]James Bursa2004-12-091-3/+12
| | | | | | Remove die() from squash_whitespace(). All calls need checking. svn path=/import/netsurf/; revision=1399
* [project @ 2004-12-08 12:38:27 by kevinb]Kevin Bagust2004-12-081-3/+3
| | | | | | Altered calls to xfree into calls to free in clean_cookiejar svn path=/import/netsurf/; revision=1392
* [project @ 2004-12-08 00:10:17 by kevinb]Kevin Bagust2004-12-081-21/+6
| | | | | | Removed unused function load, and altered call to xcalloc into a call to calloc in clean_cookiejar svn path=/import/netsurf/; revision=1389
* [project @ 2004-07-19 20:29:47 by joty]John Tytgat2004-07-191-2/+64
| | | | | | | Added cnv_local_enc_str() : to convert string in local machine encoding into UTF-8 NUL terminated string. svn path=/import/netsurf/; revision=1116
* [project @ 2004-07-05 20:19:51 by joty]John Tytgat2004-07-051-56/+75
| | | | | | Using UTF-8 instead of Latin1 encoding. svn path=/import/netsurf/; revision=1049
* [project @ 2004-06-27 23:24:11 by bursa]James Bursa2004-06-271-2/+5
| | | | | | Rewritten download window. Now downloads direct to file. New download window gui. svn path=/import/netsurf/; revision=1020
* [project @ 2004-05-02 17:06:59 by jmb]John Mark Bell2004-05-021-3/+5
| | | | | | No longer truncate bytesize. svn path=/import/netsurf/; revision=817
* [project @ 2004-04-25 11:40:05 by matthewh]Matthew Hambley2004-04-251-0/+51
| | | | | | A more human face to download bytecounts. Needs someone who can speak French to correct the fr messages file. svn path=/import/netsurf/; revision=803
* [project @ 2004-04-21 22:51:51 by jmb]John Mark Bell2004-04-211-0/+5
| | | | | | Fix crash in tolat1_pre. Thanks to John Tytgat for reporting. svn path=/import/netsurf/; revision=800
* [project @ 2004-03-27 00:49:29 by bursa]James Bursa2004-03-271-5/+0
| | | | | | Update die() to use an error box. svn path=/import/netsurf/; revision=673
* [project @ 2004-03-15 15:03:34 by bursa]James Bursa2004-03-151-3/+8
| | | | | | Remove isspace() calls to avoid squashing nbsp (see setlocale() change). svn path=/import/netsurf/; revision=624
* [project @ 2004-03-05 22:15:33 by jmb]John Mark Bell2004-03-051-0/+2
| | | | | | | Fix URI file dragging properly. Fix missing fclose in load() svn path=/import/netsurf/; revision=587
* [project @ 2004-03-02 18:02:17 by bursa]James Bursa2004-03-021-104/+1
| | | | | | Add new url functions and modify to use them. svn path=/import/netsurf/; revision=578
* [project @ 2004-02-27 14:09:15 by bursa]James Bursa2004-02-271-8/+1
| | | | | | Implement option_language. svn path=/import/netsurf/; revision=574
* [project @ 2004-02-25 15:12:57 by bursa]James Bursa2004-02-251-0/+1
| | | | | | Implement scaling; rewrite desktop/browser; add riscos/thumbnail; rewrite history. svn path=/import/netsurf/; revision=566
* [project @ 2004-02-17 23:38:44 by jmb]John Mark Bell2004-02-171-1/+1
| | | | | | | Improve save_complete. Add missing #ifdef to about.c. svn path=/import/netsurf/; revision=559
* [project @ 2004-01-05 02:10:59 by jmb]John Mark Bell2004-01-051-2/+9
| | | | | | | Add ability to turn off browser features in build. This may be useful when hunting down bugs. svn path=/import/netsurf/; revision=480