]> git.ipfire.org Git - thirdparty/plymouth.git/log
thirdparty/plymouth.git
16 years ago[command-parser] Drop unused variables
Ray Strode [Thu, 6 Aug 2009 02:13:28 +0000 (22:13 -0400)] 
[command-parser] Drop unused variables

This fixes a couple of compiler warnings.

16 years ago[command-parser] make constructor/destructors static
Ray Strode [Wed, 5 Aug 2009 22:12:21 +0000 (18:12 -0400)] 
[command-parser] make constructor/destructors static

They aren't public API and this fixes a compiler warning.

16 years ago[hashtable] Add casts to fix constness warnings
Ray Strode [Wed, 5 Aug 2009 22:37:45 +0000 (18:37 -0400)] 
[hashtable] Add casts to fix constness warnings

16 years ago[hashtable] add "static" specifier to internal functions
Ray Strode [Wed, 5 Aug 2009 22:33:54 +0000 (18:33 -0400)] 
[hashtable] add "static" specifier to internal functions

16 years ago[hashtable] Fix some signedness warnings
Ray Strode [Wed, 5 Aug 2009 22:32:42 +0000 (18:32 -0400)] 
[hashtable] Fix some signedness warnings

16 years ago[hashtable] make insert_internal static
Ray Strode [Wed, 5 Aug 2009 22:31:04 +0000 (18:31 -0400)] 
[hashtable] make insert_internal static

16 years ago[hashtable] include string.h
Ray Strode [Wed, 5 Aug 2009 22:29:45 +0000 (18:29 -0400)] 
[hashtable] include string.h

So we can use strcmp without a compiler warning.

16 years ago[hashtable] Add some intptr_t casts
Ray Strode [Wed, 5 Aug 2009 22:28:06 +0000 (18:28 -0400)] 
[hashtable] Add some intptr_t casts

This is to fix some compiler warnings.

16 years ago[event-loop] Make ply_event_loop_free_sources static
Ray Strode [Wed, 5 Aug 2009 22:23:11 +0000 (18:23 -0400)] 
[event-loop] Make ply_event_loop_free_sources static

This fixes a compiler warning.

16 years ago[terminal] fix header prototype
Ray Strode [Wed, 5 Aug 2009 22:22:23 +0000 (18:22 -0400)] 
[terminal] fix header prototype

argument list was () instead of (void).  This fixes
a compiler warning.

16 years ago[utils] Fix signedness warning in utf8 handling
Ray Strode [Wed, 5 Aug 2009 22:12:21 +0000 (18:12 -0400)] 
[utils] Fix signedness warning in utf8 handling

16 years ago[utils] drop ply_create_unix_socket
Ray Strode [Wed, 5 Aug 2009 22:12:21 +0000 (18:12 -0400)] 
[utils] drop ply_create_unix_socket

It's dead code.

16 years ago[list] make node constructor/destructor static
Ray Strode [Wed, 5 Aug 2009 22:12:21 +0000 (18:12 -0400)] 
[list] make node constructor/destructor static

They aren't public API and this fixes a compiler warning.

16 years ago[frame-buffer] Drop ply_frame_buffer_area_union
Ray Strode [Wed, 5 Aug 2009 22:10:37 +0000 (18:10 -0400)] 
[frame-buffer] Drop ply_frame_buffer_area_union

It's no longer used.  We can always pull it out of history if we
need it again.

16 years ago[frame-buffer] Fix some signedness warnings
Ray Strode [Wed, 5 Aug 2009 22:08:06 +0000 (18:08 -0400)] 
[frame-buffer] Fix some signedness warnings

16 years ago[frame-buffer] use inline at start of prototype
Ray Strode [Wed, 5 Aug 2009 22:05:54 +0000 (18:05 -0400)] 
[frame-buffer] use inline at start of prototype

This fixes a gcc warning.

16 years ago[script] drop stringify, .script.h instead of .string
Ray Strode [Wed, 5 Aug 2009 19:41:37 +0000 (15:41 -0400)] 
[script] drop stringify, .script.h instead of .string

stringify.py is written in perl, but doesn't do much to justify the
dependency.  We now just do sed in the Makefile.  Also, rename
.string to .script.h since that's a little more conventional.

16 years ago[script] Add actual generated sources to BUILT_SOURCES
Ray Strode [Wed, 5 Aug 2009 18:24:31 +0000 (14:24 -0400)] 
[script] Add actual generated sources to BUILT_SOURCES

Commit b01ac7970d0e65a70b48ca79b88e51c429ae5e75 was wrong,
it added non-generated source files to BUILT_SOURCES.

16 years ago[two-step] Do not remove an additional bullet when backspaceing
Charlie Brej [Wed, 5 Aug 2009 15:30:13 +0000 (16:30 +0100)] 
[two-step] Do not remove an additional bullet when backspaceing

Plugins shouldn't do anything when they see a backspace. The number of bullets
is passed to them through a password status callback.

16 years ago[throbgress] Do not remove an additional bullet when backspaceing
Charlie Brej [Wed, 5 Aug 2009 15:21:53 +0000 (16:21 +0100)] 
[throbgress] Do not remove an additional bullet when backspaceing

Plugins shouldn't do anything when they see  a backspace. The number of bullets
is passed to them through a password status callback.

16 years ago[splash] do not ship generated files in tarball
Frederic Crozat [Wed, 5 Aug 2009 14:21:15 +0000 (16:21 +0200)] 
[splash] do not ship generated files in tarball

16 years ago[script] Call stringify.pl from srcdir
Ray Strode [Wed, 5 Aug 2009 14:55:47 +0000 (10:55 -0400)] 
[script] Call stringify.pl from srcdir

This fixes a builddir != srcdir problem

16 years ago[script] Add generated source files to BUILT_SOURCES
Ray Strode [Wed, 5 Aug 2009 14:54:58 +0000 (10:54 -0400)] 
[script] Add generated source files to BUILT_SOURCES

This is one part of fixing make distcheck.

16 years ago[gitignore] Unignore some .plymouth files
Ray Strode [Fri, 24 Jul 2009 13:00:02 +0000 (09:00 -0400)] 
[gitignore] Unignore some .plymouth files

There are a couple of .plymouth files that aren't
generated, so we shouldn't ignore them.

16 years ago[gitignore] Add new file types for git to ignore
Charlie Brej [Mon, 20 Jul 2009 14:33:00 +0000 (15:33 +0100)] 
[gitignore] Add new file types for git to ignore

".plymouth" is generated from ".plymouth.in" files.
".string" is generated from ".script" files.
".bck" is used as backups by Nedit.

16 years ago[script] Correct vareable to variable
Charlie Brej [Mon, 20 Jul 2009 14:15:09 +0000 (15:15 +0100)] 
[script] Correct vareable to variable

There are likely many other misspellings that I consistently get wrong.

16 years ago[script] Sort the sprites so they are drawn in the correct order
Charlie Brej [Mon, 20 Jul 2009 14:10:49 +0000 (15:10 +0100)] 
[script] Sort the sprites so they are drawn in the correct order

Sorting is done using the Z parameter. The higher the closer to the front and
the more above the others.

16 years ago[script] Rename ply-scan to script-scan
Charlie Brej [Mon, 20 Jul 2009 13:12:53 +0000 (14:12 +0100)] 
[script] Rename ply-scan to script-scan

The scan functions were originally aimed to be put in libply but then again I
can't think of anything that would use them so they are now renamed to left in
the plugin.

16 years ago[script] Tidy up the example script
Charlie Brej [Mon, 20 Jul 2009 12:59:20 +0000 (13:59 +0100)] 
[script] Tidy up the example script

Removes the spinfinity function as it used an ugly ../ path to get the images
and assumed that spinfinity was installed.
Removes some elements which were only inserted for testing.

16 years ago[script] Remove print object function which was unused
Charlie Brej [Sun, 12 Jul 2009 18:04:53 +0000 (19:04 +0100)] 
[script] Remove print object function which was unused

It was useful when the language was being constructed to make sure reference
counts were sane but only worked in text mode.

16 years ago[script] Remove a no longer necessary parse error test and message
Charlie Brej [Sun, 12 Jul 2009 14:11:43 +0000 (15:11 +0100)] 
[script] Remove a no longer necessary parse error test and message

Also a couple minor indentations

16 years ago[script] Preset plymouth callback functions to script NULL objects
Charlie Brej [Sun, 12 Jul 2009 14:09:00 +0000 (15:09 +0100)] 
[script] Preset plymouth callback functions to script NULL objects

They were set to the real NULL which most script-object functions cannot deal
with.

16 years ago[script] Use ply_scan_token_is_something wrapper functions in the parser
Charlie Brej [Sat, 11 Jul 2009 16:17:53 +0000 (17:17 +0100)] 
[script] Use ply_scan_token_is_something wrapper functions in the parser

Makes the code easier to read and a bit smaller.

16 years ago[script] Use the parse operator table and procedure definition functions
Charlie Brej [Fri, 10 Jul 2009 15:54:00 +0000 (16:54 +0100)] 
[script] Use the parse operator table and procedure definition functions

This should make the script-parse a little more manageable and cut a few lines
of code.

16 years ago[script] Use a symbol table lookup parse function
Charlie Brej [Fri, 10 Jul 2009 15:08:57 +0000 (16:08 +0100)] 
[script] Use a symbol table lookup parse function

16 years ago[script] Merge all Left-To-Right parsing into a single function
Charlie Brej [Fri, 10 Jul 2009 14:23:54 +0000 (15:23 +0100)] 
[script] Merge all Left-To-Right parsing into a single function

16 years ago[script] Allows definitions of functions to be described within expressions
Charlie Brej [Thu, 9 Jul 2009 18:19:34 +0000 (19:19 +0100)] 
[script] Allows definitions of functions to be described within expressions

As well as
fun fun_name (foo) {return foo+10;}
now you can also say
fun_name = fun (foo) return foo+10;

16 years ago[script] Add support for variable number of arguments
Charlie Brej [Wed, 8 Jul 2009 23:23:23 +0000 (00:23 +0100)] 
[script] Add support for variable number of arguments

Functions can pick up the full array of arguments passed in using the "_args"
local variable. This is a hash with arguments stored indexed from "0" to "N".
The "count" entry in the _args hash contains the number of vars passed in.

16 years ago[script] Remove some asserts which are no longer useful
Charlie Brej [Wed, 8 Jul 2009 21:48:08 +0000 (22:48 +0100)] 
[script] Remove some asserts which are no longer useful

16 years ago[script] Remove some derefs as they are now handled in the access functions
Charlie Brej [Wed, 8 Jul 2009 21:21:32 +0000 (22:21 +0100)] 
[script] Remove some derefs as they are now handled in the access functions

16 years ago[script] More changes to use access functions
Charlie Brej [Wed, 8 Jul 2009 20:57:34 +0000 (21:57 +0100)] 
[script] More changes to use access functions

16 years ago[script] Use hash access functions rather than doing lookups directly
Charlie Brej [Wed, 8 Jul 2009 16:07:42 +0000 (17:07 +0100)] 
[script] Use hash access functions rather than doing lookups directly

16 years ago[script] Use access functions instead of directly accessing function objects
Charlie Brej [Wed, 8 Jul 2009 15:40:32 +0000 (16:40 +0100)] 
[script] Use access functions instead of directly accessing function objects

16 years ago[script] Abstract formations of script_return_t with helper functions
Charlie Brej [Wed, 8 Jul 2009 14:49:04 +0000 (15:49 +0100)] 
[script] Abstract formations of script_return_t with helper functions

16 years ago[script] Simplify object comparisons
Charlie Brej [Wed, 8 Jul 2009 13:09:50 +0000 (14:09 +0100)] 
[script] Simplify object comparisons

Also removes many -Wextra warnings

16 years ago[script] Typo in the MathMax function
Charlie Brej [Wed, 8 Jul 2009 10:26:13 +0000 (11:26 +0100)] 
[script] Typo in the MathMax function

16 years ago[script] Fix some compile warnings
Charlie Brej [Wed, 8 Jul 2009 10:02:10 +0000 (11:02 +0100)] 
[script] Fix some compile warnings

Fixed by making most plugin functions static as they dont get linked from
outside anyway. Also changed some char* to const char*.

16 years ago[script] Correct the math min and max functions
Charlie Brej [Wed, 8 Jul 2009 09:40:02 +0000 (10:40 +0100)] 
[script] Correct the math min and max functions

Were the wrong way round and confusingly written. Also adds a MathPi constant.

16 years ago[script] Add atan2 to the math library
Charlie Brej [Wed, 8 Jul 2009 09:06:25 +0000 (10:06 +0100)] 
[script] Add atan2 to the math library

16 years ago[script] Add "_t" to all struct names
Charlie Brej [Sat, 4 Jul 2009 11:06:02 +0000 (12:06 +0100)] 
[script] Add "_t" to all struct names

16 years ago[script] Corrected indentation and formatting to match the rest of the project
Charlie Brej [Fri, 3 Jul 2009 16:07:10 +0000 (17:07 +0100)] 
[script] Corrected indentation and formatting to match the rest of the project

Uncrustify did a reasonable job and only needed minor fixups.

16 years ago[script] Add GPL 2+ licence headers to all .c and .h files
Charlie Brej [Fri, 3 Jul 2009 14:53:43 +0000 (15:53 +0100)] 
[script] Add GPL 2+ licence headers to all .c and .h files

16 years ago[script] Remove the display state as it is now handled by the script
Charlie Brej [Fri, 3 Jul 2009 14:37:31 +0000 (15:37 +0100)] 
[script] Remove the display state as it is now handled by the script

16 years ago[script] Fix minor memory leaks
Charlie Brej [Fri, 3 Jul 2009 14:33:14 +0000 (15:33 +0100)] 
[script] Fix minor memory leaks

16 years ago[script] Free any remaining over sprites at plugin destroy
Charlie Brej [Fri, 3 Jul 2009 13:56:18 +0000 (14:56 +0100)] 
[script] Free any remaining over sprites at plugin destroy

16 years ago[script] Simplify native functions by using the hash-cast access functions
Charlie Brej [Fri, 3 Jul 2009 10:56:04 +0000 (11:56 +0100)] 
[script] Simplify native functions by using the hash-cast access functions

16 years ago[script] Use the helper hash element extraction functions
Charlie Brej [Thu, 2 Jul 2009 15:41:48 +0000 (16:41 +0100)] 
[script] Use the helper hash element extraction functions

This should simplify the code a little as it removes the need to play with
objects which must be unreffed.

16 years ago[script] Add support for setting the window background color
Charlie Brej [Thu, 2 Jul 2009 14:57:00 +0000 (15:57 +0100)] 
[script] Add support for setting the window background color

Two functions set the color of either the bottom or the top of the screen. If
the two colors are equal a solid colour draw is used. The color is supplied by
three floats specitying red green and blue elements.

16 years ago[script] Add support for getting the window width and height
Charlie Brej [Wed, 1 Jul 2009 19:20:47 +0000 (20:20 +0100)] 
[script] Add support for getting the window width and height

The example script has been updated to use this as well as to use other
features recently committed.

16 years ago[script] Simplify the object operations
Charlie Brej [Wed, 1 Jul 2009 18:53:47 +0000 (19:53 +0100)] 
[script] Simplify the object operations

Using nested switch statements made it easy to decide what to do in each
situation but this is rather verbose and causes -Wextra to complain (a lot).

Also added script_obj_is_[type] to help identify object easier and not repeat
code.

16 years ago[script] Add modify assignments (+=, *= ...)
Charlie Brej [Wed, 1 Jul 2009 15:13:13 +0000 (16:13 +0100)] 
[script] Add modify assignments (+=, *= ...)

Adds the following modify assignments: +=, -=, *=, /=, %=

16 years ago[script] Move object operating functions to script-object to avoid repetition
Charlie Brej [Wed, 1 Jul 2009 14:32:36 +0000 (15:32 +0100)] 
[script] Move object operating functions to script-object to avoid repetition

16 years ago[script] Fix bug of assigning a var to itself (e.g. val = val;)
Charlie Brej [Wed, 1 Jul 2009 09:06:43 +0000 (10:06 +0100)] 
[script] Fix bug of assigning a var to itself (e.g. val = val;)

Problem was that the var is cleared before being re-assigned, which also clears
the value we were about to write into it.

16 years ago[script] Add an example progress bar to the example script
Charlie Brej [Tue, 30 Jun 2009 22:38:16 +0000 (23:38 +0100)] 
[script] Add an example progress bar to the example script

16 years ago[script] Add support for image scale
Charlie Brej [Tue, 30 Jun 2009 22:37:04 +0000 (23:37 +0100)] 
[script] Add support for image scale

16 years ago[script] Implement script based fade_in implementation
Charlie Brej [Tue, 30 Jun 2009 21:13:25 +0000 (22:13 +0100)] 
[script] Implement script based fade_in implementation

The example script now can show a spinfinity or a fade_in behaviour. This is
just to see how easy it is to implement current plugins. In the case of fade_in
it is around 23 lines of script code

16 years ago[script] Add support for 'for'
Charlie Brej [Tue, 30 Jun 2009 20:46:40 +0000 (21:46 +0100)] 
[script] Add support for 'for'

Matches the use in C as "for (first, condition, last)" where first is executed
once, last is executed at the end of each iteration (even when continue is
executed) and condition is tested at the start of every cycle.

16 years ago[script] Add support for an "else" after an "if"
Charlie Brej [Tue, 30 Jun 2009 19:29:16 +0000 (20:29 +0100)] 
[script] Add support for an "else" after an "if"

16 years ago[script] Add support for loading the system logo image
Charlie Brej [Tue, 30 Jun 2009 16:38:48 +0000 (17:38 +0100)] 
[script] Add support for loading the system logo image

This is done specifying the filename is special://logo. Not sure if this is the
best way of implementing but it is expandable to other special files.

16 years ago[script] Add support for the password dialogue in the example script theme
Charlie Brej [Tue, 30 Jun 2009 15:58:39 +0000 (16:58 +0100)] 
[script] Add support for the password dialogue in the example script theme

16 years ago[script] Added a turn float to integer function to the math library
Charlie Brej [Tue, 30 Jun 2009 15:53:21 +0000 (16:53 +0100)] 
[script] Added a turn float to integer function to the math library

16 years ago[script] Deref the state to allow local and global to be reassigned
Charlie Brej [Tue, 30 Jun 2009 14:28:31 +0000 (15:28 +0100)] 
[script] Deref the state to allow local and global to be reassigned

This should allow local and global to be assigned to a different vareable.
This is discouriged as it may cause asserts to fail, but may be useful to save
current state and continue the function at a later time.

16 years ago[script] Handle -0 in float comparisons correctly
Charlie Brej [Tue, 30 Jun 2009 14:27:34 +0000 (15:27 +0100)] 
[script] Handle -0 in float comparisons correctly

16 years ago[script] Add simple Math functions (abs, min, max and clamp)
Charlie Brej [Tue, 30 Jun 2009 14:24:57 +0000 (15:24 +0100)] 
[script] Add simple Math functions (abs, min, max and clamp)

16 years ago[script] Remember the width and height of old sprite image for next refresh
Charlie Brej [Mon, 29 Jun 2009 15:46:06 +0000 (16:46 +0100)] 
[script] Remember the width and height of old sprite image for next refresh

When we change the sprite image, the redraw now remembers to refresh the old
area despite any change in the image size.

16 years ago[script] Refresh the part of the screen that a sprite was on when removing
Charlie Brej [Mon, 29 Jun 2009 15:18:36 +0000 (16:18 +0100)] 
[script] Refresh the part of the screen that a sprite was on when removing

When a sprite is destroyed, this should now refresh the area the sprite was
occupying.

16 years ago[script] Creating a string object with a NULL string now returns a NULL object
Charlie Brej [Mon, 29 Jun 2009 13:41:23 +0000 (14:41 +0100)] 
[script] Creating a string object with a NULL string now returns a NULL object

Strings in C are often set to NULL to signify that they have not been set. This
should be carried through to the script system rather than failing at the
conversion.

16 years ago[script] Free the functions, in the script lib plymouth, when library is freed
Charlie Brej [Mon, 29 Jun 2009 13:37:07 +0000 (14:37 +0100)] 
[script] Free the functions, in the script lib plymouth, when library is freed

16 years ago[script] add sprite opacity control
Charlie Brej [Mon, 29 Jun 2009 13:34:06 +0000 (14:34 +0100)] 
[script] add sprite opacity control

SpriteSetOpacity sets the opacity of the sprite. Also a couple fixups to
refresh when the image has been changed.

16 years ago[script] Add cos, sin, tan and square root functions to the script math library
Charlie Brej [Sun, 28 Jun 2009 20:39:19 +0000 (21:39 +0100)] 
[script] Add cos, sin, tan and square root functions to the script math library

16 years ago[script] Allow scripts to attach themselves to plymouth plugin callbacks
Charlie Brej [Thu, 25 Jun 2009 14:49:12 +0000 (15:49 +0100)] 
[script] Allow scripts to attach themselves to plymouth plugin callbacks

The scripts can now attach themselves to the following callbacks: refresh,
boot_progress, root_mounted, keyboard_input, update_status, display_normal,
display_password and display_question.

16 years ago[script] Correctly parse multiple parameter functions and allow dangeling comma
Charlie Brej [Thu, 25 Jun 2009 14:02:55 +0000 (15:02 +0100)] 
[script] Correctly parse multiple parameter functions and allow dangeling comma

Typo was causing parsing errors.

16 years ago[script] Don't error on object unref of NULL
Charlie Brej [Thu, 25 Jun 2009 10:39:01 +0000 (11:39 +0100)] 
[script] Don't error on object unref of NULL

This follows the usage of free with a NULL as well as ply-image etc.

16 years ago[script] Rationalize function calls and callbacks
Charlie Brej [Thu, 25 Jun 2009 10:25:12 +0000 (11:25 +0100)] 
[script] Rationalize function calls and callbacks

Allows script functions to be executed without extracting the body of the
function and executing that. This makes implementing callbacks simpler and
enables passing of parameters.

16 years ago[script] Output error mesages when parsing files
Charlie Brej [Tue, 23 Jun 2009 15:50:36 +0000 (16:50 +0100)] 
[script] Output error mesages when parsing files

The parses should now produce useful error messages of syntax errors in the
parsed files. This is not a 100% coverage but at least it now gives an error
with a line number rather than just an assert and a crash.

16 years ago[scan] Correct character index calculation
Charlie Brej [Tue, 23 Jun 2009 15:35:49 +0000 (16:35 +0100)] 
[scan] Correct character index calculation

Index should point to the coordinate before the character and not after.

16 years ago[scan] Remember the line and column number of tokens
Charlie Brej [Tue, 23 Jun 2009 13:26:07 +0000 (14:26 +0100)] 
[scan] Remember the line and column number of tokens

This is useful for scan and parse error reporting. The first column is zero but
this can be changed. Nedit and Emacs say zero, gedit says 1 and Vi says "0-1".

16 years ago[scan] Add error reporting to the scanner
Charlie Brej [Tue, 23 Jun 2009 13:06:30 +0000 (14:06 +0100)] 
[scan] Add error reporting to the scanner

The canner now returs error tokens when strings or comments are not correctly
terminated.

16 years ago[scan] Add block comments
Charlie Brej [Mon, 22 Jun 2009 22:38:57 +0000 (23:38 +0100)] 
[scan] Add block comments

Treats "/*" and "*/" as block comment markers. Block comments may be nested.
There is a bug where if a comment or a string is not terminated before the end
of a file, the scanner deadlocks. Need to add a way or reporting scanner
errors to the parser.

16 years ago[scan] Add parsing of line comments
Charlie Brej [Mon, 22 Jun 2009 21:59:45 +0000 (22:59 +0100)] 
[scan] Add parsing of line comments

These are currently hard coded to '//' and '#'. The code is there to return
them to the caller but currently they are thrown away.
Should add a skip_comments option and allow customisable markers.

16 years ago[script] Ensure two character operators have no space between characters
Charlie Brej [Mon, 22 Jun 2009 20:51:27 +0000 (21:51 +0100)] 
[script] Ensure two character operators have no space between characters

Checks whitespace before the second token is zero.

16 years ago[scan] Remember white space between tokens
Charlie Brej [Mon, 22 Jun 2009 20:30:09 +0000 (21:30 +0100)] 
[scan] Remember white space between tokens

Tokens now contain the number of white space characters since the last token.
This is useful in situations where white space between symbols changes the
meaning (e.g. a++ vs. a+ +).

16 years ago[script] Add support for script image rotation
Charlie Brej [Mon, 22 Jun 2009 20:20:13 +0000 (21:20 +0100)] 
[script] Add support for script image rotation

An image rotate operation creates a new image with the same dimensions but with
the contents rotated by an angle around the centre of the image. Also added a
script object to float function to allow this.

16 years ago[script] Add support for unary operations (!/+/-/++/--)
Charlie Brej [Mon, 22 Jun 2009 15:48:46 +0000 (16:48 +0100)] 
[script] Add support for unary operations (!/+/-/++/--)

Allows execution of unary operations: Pre/postfix inc/decrement, logical
negation and unary plus/minus.

The writebacks of increment/decrements happen during the execution of the
expression, unlike C where they are executed after the line if executed. This
is the case simply because it is simpler to execute this way.

16 years ago[script] Free the main script after freeing the state
Charlie Brej [Mon, 22 Jun 2009 15:42:02 +0000 (16:42 +0100)] 
[script] Free the main script after freeing the state

There are links from the script state to parsed script data. Destroy the parsed
data after freeing the state.

This should be done properly with more ref counting or moving the freeme var to
the linking structure.

16 years ago[script] Dereference on assign without affecting refcount
Charlie Brej [Mon, 22 Jun 2009 15:37:58 +0000 (16:37 +0100)] 
[script] Dereference on assign without affecting refcount

Assigns were incorrectly dereferencing creating an incorrect refcount.

16 years ago[script] Add support for logical AND and OR
Charlie Brej [Thu, 18 Jun 2009 16:27:32 +0000 (17:27 +0100)] 
[script] Add support for logical AND and OR

Allows the use of "&&" and "||". These are evaluated lazily and return the
evaluated sub-value which completed the operation rather than a bool. It allows
things like:

reply = cache_lookup(index) || slow_lookup(index);

If cache_lookup returns a false value (NULL, or 0) then slow_lookup is executed
and its result is placed in reply. Otherwise the result from cache_lookup is
used.

16 years ago[script] Add support for floats
Charlie Brej [Tue, 16 Jun 2009 15:33:29 +0000 (16:33 +0100)] 
[script] Add support for floats

Adds parsing and execution support for floats. Some operations upgrade ints to
floats with no way of turning them back to ints.

16 years agoInitial scripted plugin support
Charlie Brej [Fri, 12 Jun 2009 17:04:25 +0000 (18:04 +0100)] 
Initial scripted plugin support

This is an initial support for the scripted plugin. There are _many_ FIXMEs
and the whole code is reather unstable. The formatting is completely incorrect
and will be changed soon. There are scripts which are converted using a perl
to an C embeddable string.

16 years ago[utils] Add utf-8 support functions to determine character and string length
Charlie Brej [Wed, 15 Jul 2009 10:30:19 +0000 (11:30 +0100)] 
[utils] Add utf-8 support functions to determine character and string length

These are used to feed the keyboard input a single character at a time, to
determine the number of bullets in the password dialogue and process backspaes.