Commit Graph

48 Commits

Author SHA1 Message Date
Oliver Schmidt
c7b8bac006 Reorganized web page attribute data handling.
- Up to now the web browser used several fixed size arrays to hold the various types attribute data of the web page. This turned out to be way to inflexible for any non-trivial web page. Therefore now all attribute data is stored in a single buffer one after the other as they arrive from the parser only occupying the memory actually needed. This allows for pages with many links with rather short URLs as well as pages with few link with long URLs as well as pages with several simple forms as well as pages with one form with many form inputs.

- Using the actual web page buffer to hold the text buffers of text entry fields was in general a cool idea but in reality it  is often necessary to enter text longer than the size of the text entry field. Therefore the text buffer is now stored in the new unified attribute data buffer.

- Splitting up the process of canonicalizing a link URL and actually navigating to the resulting URL allowed to get rid of the 'tmpurl' buffer used during form submit. Now the form action is canonicalized like a usual link, then the form input name/value pairs are written right into the 'url' buffer and afterwards the navigation is triggered.

- Support for the 'render states' was completely removed. The only actually supported render state was centered output. The new unified attribute buffer would have complicated enumerating all widgets added to the page in order to adjust their position. Therefore I decided to drop the whole feature as the <center> tag is barely used anymore and newer center attributes are to hard to parse.
2013-03-06 16:29:36 +01:00
Oliver Schmidt
98060c1eab Moved from last cc65 release (2.13.3) to recent cc65 snapshot (2.13.9).
Relevant cc65 changes...

General:
- The compiler generates "extended" dependency info (like gcc) so there's no need for postprocessing whatsoever :-)
- The linker is very pernickety regarding the ordering of cmdline options so a custom linker rule is necessary :-(

Apple2:
- The various memory usage scenarios aren't specified anymore via separate linker configs but via defines overriding default values in the builtin linker config.

Atari:
- The builtin linker config allows to override the start addr so there no more need for a custom linker config.
- The C library comes with POSIX directory access. So there's no more need for for a custom coding.

CBM:
- The C library comes with POSIX directory access. So there's no more need for for a custom coding.
2013-02-14 15:42:43 +01:00
Oliver Schmidt
1a5e20bc5f Remove tab chars from retro C sources. 2013-01-28 23:43:08 +01:00
Adam Dunkels
944537fccf Removed all old RCS tags in the Contiki source tree. Those RCS tags are not used any more, as we are now using git to manage the Contiki source tree 2012-10-26 15:54:49 +02:00
Nicholas J Humfrey
680225e99d Converted u8_t to uint8_t and u16_t to uint16_t in the platforms directory.
Added "These names are deprecated, use C99 names" warnings the contiki-conf.h files that were missing it.
2012-02-21 08:33:25 -05:00
oliverschmidt
0ef1171705 Just always call process_run() and etimer_request_poll() in turn - like the "major" platforms do. 2010-10-27 22:17:39 +00:00
oliverschmidt
46122f558f Skip the CBM volume header. 2010-10-26 18:56:39 +00:00
oliverschmidt
5e10cf2eed Implemented cfs_opendir() and friends for CBMs based on cc65's cbm_opendir() and friends. 2010-10-23 13:48:06 +00:00
oliverschmidt
9e9eb4b55c There's no point in pulling in cfs-posix-dir.c if the POSIX functions it depends on are dummies anyway. 2010-10-23 08:17:45 +00:00
oliverschmidt
da7c9700cb Added support for the FTP standalone client to the c128 target. 2010-10-19 22:41:24 +00:00
oliverschmidt
828378ab47 Replaced "retro" color scheme with ergonomic color scheme. 2010-10-03 10:30:53 +00:00
oliverschmidt
f70d4c600d Minor wording change. 2010-09-29 12:07:02 +00:00
oliverschmidt
cd24e920b6 Made cfs-based webserver example compatible with 8.3 file systems. 2010-09-28 20:40:52 +00:00
oliverschmidt
8eeeef17d1 Made cfs-based webserver example compatible with 8.3 file systems. 2010-09-28 19:36:16 +00:00
oliverschmidt
b2fe3db298 Just name the binary always 'contiki'. 2010-09-28 19:23:30 +00:00
oliverschmidt
164d55e39d Reduced MTU size in order to allow for a reasonable (and full screen width) URL length. 2010-08-14 08:32:00 +00:00
oliverschmidt
e53c34770a Integrated latest enhancements contributed by Kajtar Zsolt:
- Use cc65 C library _filetype for writing instead of fixed 'p'.
- Support for fake O_TRUNC through SCRATCH.
2010-07-22 10:16:58 +00:00
oliverschmidt
8b6d34dbfc Configure maximum number of C128 web server connections indirectly via maximum number of TCP connections. 2010-04-11 21:34:18 +00:00
oliverschmidt
ce412471e4 Integrated latest fix contributed by Kajtar Zsolt. 2010-04-06 09:46:58 +00:00
oliverschmidt
f38a3ff06c Added Platform-specific File System (PFS) for the C128 contributed by Kajtar Zsolt. 2010-04-05 15:25:49 +00:00
oliverschmidt
8dd2b75383 Explicitly set CBM filetypes (PRG, USR). 2010-03-31 06:05:37 +00:00
oliverschmidt
8ca206aa6b Changed ETH64 base address from $DE10 to $DE00 as this is the default base address according to the manufacturer. 2010-03-06 13:05:16 +00:00
oliverschmidt
7ef7efecd8 Without forms, centering and history we can just squeeze in DNS. 2010-02-13 10:44:23 +00:00
oliverschmidt
50be40768b Removed closing of stdin, stdout (and stderr on the Apple2). It was introduced in order to maximize the number of available file handles for the webserver. However none of the target machine DOSes allows to open a single file several times diminishing the intended effect very much. One the other hand not being able to "just printf() something" causes trouble over and again - i.e. hello-world seemingly not working...after all a typical case of german over-enigneering ;-) 2010-02-10 07:43:25 +00:00
oliverschmidt
2a6f169e46 - Added yet another PETSCII->ASCII conversion, this time for the file name in case of a 404.
- Use all lowercase for the 404 message to avoid another PETSCII->ASCII conversion.
- Write logfile entries for all 404s.
- Adjust memory buffers on the C128 to accomodate for the items above.
2010-02-03 23:19:39 +00:00
oliverschmidt
4a9cc0c1d0 Reverted last change because the change making it necessary in the first place was reverted. 2010-02-03 22:53:59 +00:00
oliverschmidt
f06c7a8ffd Reduce number of memory block to accomodate for new directory listing code (which won't actually work due to missing directory I/O support). 2010-02-02 22:23:57 +00:00
oliverschmidt
6240db4170 Minor wording change. 2010-02-01 22:15:41 +00:00
oliverschmidt
ab04ee0d10 Optimized C128 color set for 80 column display. 2010-02-01 21:26:20 +00:00
oliverschmidt
fc7b0d31bc Added configuration values for the email client example. 2010-01-31 21:50:11 +00:00
oliverschmidt
c0932be656 Added configuration values for the IRC client example. 2010-01-31 20:42:49 +00:00
oliverschmidt
3826b8c0c4 Use only the base name of projects as program file name. 2010-01-31 18:21:41 +00:00
oliverschmidt
953d3ce7a0 Now that we have at least two examples working on the cc65 targets it is preferable to not name the program files all 'contiki'. 2010-01-31 09:34:12 +00:00
oliverschmidt
26c9ec41f7 Activate uIP logging when "high level config" logging is enabled. 2010-01-30 20:48:31 +00:00
oliverschmidt
882e4692c7 cc65 2.13. allows to define all necessary paths through the single env var CC65_HOME. 2010-01-27 22:37:15 +00:00
oliverschmidt
18933cc0c3 cc65 2.13. comes with builtin linker configs defining the __STACKSIZE__ symbol as weak. This allows to override the stacksize from the linker command line thus eliminating the need for linker configs maintained by Contiki. 2009-10-18 09:58:21 +00:00
oliverschmidt
d30ccbe81d cc65 2.13. allows to explicitly set 80 column mode. 2009-10-18 09:35:07 +00:00
oliverschmidt
31eb62821f cc65 2.13. features a default-per-target mouse driver so there's no need to deal with their names in Contiki anymore. 2009-10-18 09:33:08 +00:00
oliverschmidt
03e7eb2535 Fixed comment (just to make sure that committing still works after all these months). 2009-02-27 07:57:13 +00:00
oliverschmidt
86bd7e9829 Added lseek dummy. 2008-07-06 07:34:34 +00:00
oliverschmidt
433518c3cb Just some minor reformatting. 2008-06-12 22:16:50 +00:00
oliverschmidt
f74503c23c Replace non-fully-functional hack with the new gnumake variable CONTIKI_PROJECT. 2008-05-26 10:13:32 +00:00
oliverschmidt
7120cf4404 Added make target 'disk' for creating a .d71 disk image using c1541. 2008-05-22 22:19:30 +00:00
oliverschmidt
5dba39fab1 Moved platform/c128/contiki.cfg to tools/c128/sample.cfg 2008-05-21 08:09:46 +00:00
oliverschmidt
8a4890c9e5 Free up unused file descriptors. 2008-02-28 21:56:47 +00:00
oliverschmidt
d74fd06536 Now that process initialization has been changed (back) to synchronous it needs to be called after reading the config file and setting the mouse sprite in order to preserve the existing logic. 2008-02-17 14:12:52 +00:00
oliverschmidt
2632f8f937 Removed finally unnecessary cast. 2008-02-10 22:36:36 +00:00
oliverschmidt
26a554e7c2 Added C128 port. It runs the example webserver both in the cgi and cfs variant - although the latter only with a reduced MTU size due to memory constraints. 2008-01-05 22:30:23 +00:00