Displaying 2 results from an estimated 2 matches for "was_slash".
2007 Sep 08
0
9 commits - libswfdec/swfdec_as_context.c libswfdec/swfdec_as_internal.h libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_player.c libswfdec/swfdec_video_movie_as.c
...+
/**
* swfdec_action_get_movie_by_path:
* @cx: a #SwfdecAsContext
@@@ -445,9 -426,10 +445,26 @@@
swfdec_action_get_movie_by_path (SwfdecAsContext *cx, const char *path,
SwfdecAsObject **object, const char **variable)
{
-- SwfdecAsObject *movie;
-- const char *s;
- gboolean was_slash = FALSE;
- SwfdecAsValue val;
- gboolean was_slash = FALSE;
++ SwfdecMovie *movie;
++ enum {
++ START,
++ IDENTIFIER,
++ BACK,
++ DOT,
++ COLON,
++ SLASH
++ } token = START;
++ enum {
++ STARTING = (1 << 0),
++ SLASHES = (1 << 1),
++ WAS_SLASH = (1 <...
2007 Sep 06
0
3 commits - libswfdec/swfdec_as_date.c libswfdec/swfdec_as_interpret.c libswfdec/swfdec_movie.c libswfdec/swfdec_movie.h libswfdec/swfdec_sprite_movie.c
...p or %NULL if the path does not
+ * specify a valid movie.
+ **/
+static gboolean
+swfdec_action_get_movie_by_path (SwfdecAsContext *cx, const char *path,
+ SwfdecAsObject **object, const char **variable)
+{
+ SwfdecAsObject *movie;
+ const char *s;
+ SwfdecAsValue val;
+ gboolean was_slash = FALSE;
+
+ /* shortcut for the general case */
+ if (strpbrk (path, ".:/") == NULL) {
+ *object = NULL;
+ *variable = path;
+ return TRUE;
+ }
+
+ /* in general, any combination of dot, colon and slash is allowed, but there
+ * is some weird stuff that is not allowed. WE...