Commit graph

969 commits

Author SHA1 Message Date
Ray Strode
16a0aa3286 [hashtable] Add some intptr_t casts
This is to fix some compiler warnings.
2009-08-05 18:28:06 -04:00
Ray Strode
63f116f523 [event-loop] Make ply_event_loop_free_sources static
This fixes a compiler warning.
2009-08-05 18:23:11 -04:00
Ray Strode
a6936963fb [terminal] fix header prototype
argument list was () instead of (void).  This fixes
a compiler warning.
2009-08-05 18:22:23 -04:00
Ray Strode
916c3e04da [utils] Fix signedness warning in utf8 handling 2009-08-05 18:20:54 -04:00
Ray Strode
ccea851e88 [utils] drop ply_create_unix_socket
It's dead code.
2009-08-05 18:20:48 -04:00
Ray Strode
a50b3432b7 [list] make node constructor/destructor static
They aren't public API and this fixes a compiler warning.
2009-08-05 18:12:21 -04:00
Ray Strode
9a5830f0b4 [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.
2009-08-05 18:10:37 -04:00
Ray Strode
b6712a35ca [frame-buffer] Fix some signedness warnings 2009-08-05 18:08:06 -04:00
Ray Strode
0c257e1d92 [frame-buffer] use inline at start of prototype
This fixes a gcc warning.
2009-08-05 18:05:54 -04:00
Ray Strode
93a16e060c [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.
2009-08-05 15:41:37 -04:00
Ray Strode
ce77a0e8d3 [script] Add actual generated sources to BUILT_SOURCES
Commit b01ac7970d was wrong,
it added non-generated source files to BUILT_SOURCES.
2009-08-05 14:24:31 -04:00
Charlie Brej
d31762a353 [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.
2009-08-05 16:30:13 +01:00
Charlie Brej
6b8d3bae86 [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.
2009-08-05 16:21:53 +01:00
Frederic Crozat
aa1b9c6175 [splash] do not ship generated files in tarball 2009-08-05 10:59:15 -04:00
Ray Strode
18955e7382 [script] Call stringify.pl from srcdir
This fixes a builddir != srcdir problem
2009-08-05 10:58:07 -04:00
Ray Strode
b01ac7970d [script] Add generated source files to BUILT_SOURCES
This is one part of fixing make distcheck.
2009-08-05 10:54:58 -04:00
Ray Strode
a5958e94aa [gitignore] Unignore some .plymouth files
There are a couple of .plymouth files that aren't
generated, so we shouldn't ignore them.
2009-07-24 09:30:32 -04:00
Charlie Brej
a9d8514cd7 [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.
2009-07-24 09:30:32 -04:00
Charlie Brej
ebe123a1e4 [script] Correct vareable to variable
There are likely many other misspellings that I consistently get wrong.
2009-07-24 09:30:32 -04:00
Charlie Brej
d6f6643321 [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.
2009-07-24 09:30:31 -04:00
Charlie Brej
2f1154e3c2 [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.
2009-07-24 09:30:31 -04:00
Charlie Brej
bc0d731e6f [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.
2009-07-24 09:30:31 -04:00
Charlie Brej
f787ec7744 [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.
2009-07-24 09:30:30 -04:00
Charlie Brej
fdfc7a5da7 [script] Remove a no longer necessary parse error test and message
Also a couple minor indentations
2009-07-24 09:30:30 -04:00
Charlie Brej
9879f3312f [script] Preset plymouth callback functions to script NULL objects
They were set to the real NULL which most script-object functions cannot deal
with.
2009-07-24 09:30:29 -04:00
Charlie Brej
bc214f2b2b [script] Use ply_scan_token_is_something wrapper functions in the parser
Makes the code easier to read and a bit smaller.
2009-07-24 09:30:29 -04:00
Charlie Brej
79dfa86636 [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.
2009-07-24 09:30:29 -04:00
Charlie Brej
23824af594 [script] Use a symbol table lookup parse function 2009-07-24 09:30:28 -04:00
Charlie Brej
65ef7eb7e1 [script] Merge all Left-To-Right parsing into a single function 2009-07-24 09:30:28 -04:00
Charlie Brej
a6bc1a4c7c [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;
2009-07-24 09:30:28 -04:00
Charlie Brej
621d080166 [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.
2009-07-24 09:30:27 -04:00
Charlie Brej
ee3cb7f3b2 [script] Remove some asserts which are no longer useful 2009-07-24 09:30:27 -04:00
Charlie Brej
42fe12b9fc [script] Remove some derefs as they are now handled in the access functions 2009-07-24 09:30:27 -04:00
Charlie Brej
32e0487d5e [script] More changes to use access functions 2009-07-24 09:30:26 -04:00
Charlie Brej
41ebc5f630 [script] Use hash access functions rather than doing lookups directly 2009-07-24 09:30:26 -04:00
Charlie Brej
da38f5a6b9 [script] Use access functions instead of directly accessing function objects 2009-07-24 09:30:26 -04:00
Charlie Brej
9c7e45c349 [script] Abstract formations of script_return_t with helper functions 2009-07-24 09:30:25 -04:00
Charlie Brej
36186e407a [script] Simplify object comparisons
Also removes many -Wextra warnings
2009-07-24 09:30:25 -04:00
Charlie Brej
74388bca11 [script] Typo in the MathMax function 2009-07-24 09:30:25 -04:00
Charlie Brej
2b62c964bc [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*.
2009-07-24 09:30:24 -04:00
Charlie Brej
d32a075e7a [script] Correct the math min and max functions
Were the wrong way round and confusingly written. Also adds a MathPi constant.
2009-07-24 09:30:24 -04:00
Charlie Brej
1a4e3372fa [script] Add atan2 to the math library 2009-07-24 09:30:23 -04:00
Charlie Brej
d167bd0e96 [script] Add "_t" to all struct names 2009-07-24 09:30:23 -04:00
Charlie Brej
e50ef7aacc [script] Corrected indentation and formatting to match the rest of the project
Uncrustify did a reasonable job and only needed minor fixups.
2009-07-24 09:30:23 -04:00
Charlie Brej
a36d61d12a [script] Add GPL 2+ licence headers to all .c and .h files 2009-07-24 09:30:22 -04:00
Charlie Brej
bf27872518 [script] Remove the display state as it is now handled by the script 2009-07-24 09:30:22 -04:00
Charlie Brej
9b941402fb [script] Fix minor memory leaks 2009-07-24 09:30:22 -04:00
Charlie Brej
f0ca590f14 [script] Free any remaining over sprites at plugin destroy 2009-07-24 09:30:21 -04:00
Charlie Brej
f5b7a7c814 [script] Simplify native functions by using the hash-cast access functions 2009-07-24 09:30:21 -04:00
Charlie Brej
c44fcbb6df [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.
2009-07-24 09:30:20 -04:00