Skip to content

Commit

Permalink
- After several frustrating weeks I finally succeed in repro’ing the …
Browse files Browse the repository at this point in the history
…map being stuck bug. The reason it was so hard to find is the scenario where waze wants to display a bitmap but due to some reason the image size is 0. This leads to endless loop while trying to see what text size should fit into such bitmap.

-	Fixed the appbar issues - the appbar will be always visible now.
  • Loading branch information
meirtsvi committed Apr 13, 2012
1 parent 5f439ee commit a0d52a3
Show file tree
Hide file tree
Showing 283 changed files with 59,730 additions and 56,270 deletions.
1,838 changes: 919 additions & 919 deletions WazeWP7/CibylCallTable.cs

Large diffs are not rendered by default.

Binary file modified WazeWP7/Resources/program.data.bin
Binary file not shown.
Binary file modified WazeWP75.suo
Binary file not shown.
Binary file modified bb_waze_code/j2me/c/program
Binary file not shown.
Binary file modified bb_waze_code/j2me/include/cibyl-syscalls.db
Binary file not shown.
35 changes: 35 additions & 0 deletions bb_waze_code/j2me/include/syscalls/ansi/include/assert.h
@@ -0,0 +1,35 @@
/*********************************************************************
*
* Copyright (C) 2006, Blekinge Institute of Technology
*
* Filename: assert.h
* Author: Simon Kagstrom <ska@bth.se>
* Description: Cibyl stdlib stuff
*
* $Id: assert.h 12045 2006-11-13 19:58:48Z ska $
*
********************************************************************/
#ifndef __ASSERT_H__
#define __ASSERT_H__
#if defined(__cplusplus)
extern "C" {
#endif

#if defined(NDEBUG)
# define assert(x)
#else
# include <stdio.h>
# include <stdlib.h>
# define assert(x) do { \
if ( ! (x) ) \
{\
printf("ASSERTION FAILED at %d in %s:%s\n", __LINE__, __FILE__, __FUNCTION__); \
exit(1); \
} \
} while(0)
#endif

#if defined(__cplusplus)
}
#endif
#endif /* !__ASSERT_H__ */
88 changes: 88 additions & 0 deletions bb_waze_code/j2me/include/syscalls/ansi/include/ctype.h
@@ -0,0 +1,88 @@
/*********************************************************************
*
* Copyright (C) 2006, Blekinge Institute of Technology
*
* Filename: ctype.h
* Author: Simon Kagstrom <ska@bth.se>
* Description: Cibyl ctype
*
* $Id: ctype.h 12096 2006-11-14 15:49:07Z ska $
*
********************************************************************/
#ifndef __CTYPE_H__
#define __CTYPE_H__
#if defined(__cplusplus)
extern "C" {
#endif

static inline int isascii(int c)
{
return ( (c & ~0x7f) == 0 );
}

static inline int isupper(int c)
{
return ( c >= 'A' && c <= 'Z' );
}

static inline int islower(int c)
{
return ( c >= 'a' && c <= 'z' );
}

static inline int isalpha(int c)
{
return isupper(c) || islower(c);
}

static inline int isspace(int c)
{
return (c == ' ') || (c == '\f') || (c == '\n') || (c == '\r') ||
(c == '\t') || (c == '\v');
}

static inline int isdigit(int c)
{
return (c >= '0') && (c <= '9');
}

static inline int isalnum(int c)
{
return isalpha(c) || isdigit(c);
}

static inline int isprint(int c)
{
c &= 0x7f;

return (c >= 32 && c < 127);
}

static inline int isgraph(int c)
{
return isprint(c) && c != ' ';
}

static inline int iscntrl(int c)
{
return c <= 0x1f || c == 0x7f;
}

static inline int isxdigit(int c)
{
return isdigit(c) || (c >= 'A' && c <= 'F') ||
(c >= 'a' && c <= 'f');
}

static inline int ispunct(int c)
{
return isprint(c) && !isspace(c) && !isalnum(c);
}

extern int tolower (int c);
extern int toupper (int c);

#if defined(__cplusplus)
}
#endif
#endif /* !__CTYPE_H__ */
40 changes: 40 additions & 0 deletions bb_waze_code/j2me/include/syscalls/ansi/include/dirent.h
@@ -0,0 +1,40 @@
/*********************************************************************
*
* Copyright (C) 2007, Blekinge Institute of Technology
*
* Filename: dirent.h
* Author: Simon Kagstrom <ska@bth.se>
* Description: dirents for Cibyl
*
* $Id:$
*
********************************************************************/
#ifndef __DIRENT_H__
#define __DIRENT_H__
#if defined(__cplusplus)
extern "C" {
#endif

#include <stdio.h>

struct dirent
{
char d_name[256]; /* filename */
};

typedef struct
{
struct s_cibyl_dops *ops;
void *priv; /* private stuff */
} DIR;

extern DIR *opendir(const char *name);
extern int closedir(DIR *dir);
extern struct dirent *readdir(DIR *dir);
extern int readdir_r(DIR *dir, struct dirent *entry,
struct dirent **result);

#if defined(__cplusplus)
}
#endif
#endif /* !__DIRENT_H__ */
18 changes: 18 additions & 0 deletions bb_waze_code/j2me/include/syscalls/ansi/include/errno.h
@@ -0,0 +1,18 @@
/*********************************************************************
*
* Copyright (C) 2007, Simon Kagstrom
*
* Filename: errno.h
* Author: Simon Kagstrom <simon.kagstrom@gmail.com>
* Description: Errno impl.
*
* $Id:$
*
********************************************************************/
#ifndef __ERRNO_H__
#define __ERRNO_H__

/* TMP! */
#define errno 0

#endif /* !__ERRNO_H__ */
23 changes: 23 additions & 0 deletions bb_waze_code/j2me/include/syscalls/ansi/include/fcntl.h
@@ -0,0 +1,23 @@
/*********************************************************************
*
* Copyright (C) 2006, Blekinge Institute of Technology
*
* Filename: fcntl.h
* Author: Simon Kagstrom <ska@bth.se>
* Description: fcntl
*
* $Id: fcntl.h 12097 2006-11-14 15:49:17Z ska $
*
********************************************************************/
#ifndef __FCNTL_H__
#define __FCNTL_H__
#if defined(__cplusplus)
extern "C" {
#endif

/* Fill me with stuff! */

#if defined(__cplusplus)
}
#endif
#endif /* !__FCNTL_H__ */
128 changes: 128 additions & 0 deletions bb_waze_code/j2me/include/syscalls/ansi/include/limits.h
@@ -0,0 +1,128 @@
/* Copyright (C) 1991, 92, 96, 97, 98, 99, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
The GNU C Library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with the GNU C Library; if not, write to the Free
Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
02111-1307 USA. */

/*
* ISO C99 Standard: 7.10/5.2.4.2.1 Sizes of integer types <limits.h>
*/

#ifndef _LIBC_LIMITS_H_
#define _LIBC_LIMITS_H_ 1


/* Maximum length of any multibyte character in any locale.
We define this value here since the gcc header does not define
the correct value. */
#define MB_LEN_MAX 16

/* We only protect from multiple inclusion here, because all the other
#include's protect themselves, and in GCC 2 we may #include_next through
multiple copies of this file before we get to GCC's. */
# ifndef _LIMITS_H
# define _LIMITS_H 1

/* We don't have #include_next.
Define ANSI <limits.h> for standard 32-bit words. */

/* These assume 8-bit `char's, 16-bit `short int's,
and 32-bit `int's and `long int's. */

/* Number of bits in a `char'. */
# define CHAR_BIT 8

/* Minimum and maximum values a `signed char' can hold. */
# define SCHAR_MIN (-128)
# define SCHAR_MAX 127

/* Maximum value an `unsigned char' can hold. (Minimum is 0.) */
# define UCHAR_MAX 255

/* Minimum and maximum values a `char' can hold. */
# ifdef __CHAR_UNSIGNED__
# define CHAR_MIN 0
# define CHAR_MAX UCHAR_MAX
# else
# define CHAR_MIN SCHAR_MIN
# define CHAR_MAX SCHAR_MAX
# endif

/* Minimum and maximum values a `signed short int' can hold. */
# define SHRT_MIN (-32768)
# define SHRT_MAX 32767

/* Maximum value an `unsigned short int' can hold. (Minimum is 0.) */
# define USHRT_MAX 65535

/* Minimum and maximum values a `signed int' can hold. */
# define INT_MIN (-INT_MAX - 1)
# define INT_MAX 2147483647

/* Maximum value an `unsigned int' can hold. (Minimum is 0.) */
# define UINT_MAX 4294967295U

/* Minimum and maximum values a `signed long int' can hold. */
# if __WORDSIZE == 64
# define LONG_MAX 9223372036854775807L
# else
# define LONG_MAX 2147483647L
# endif
# define LONG_MIN (-LONG_MAX - 1L)

/* Maximum value an `unsigned long int' can hold. (Minimum is 0.) */
# if __WORDSIZE == 64
# define ULONG_MAX 18446744073709551615UL
# else
# define ULONG_MAX 4294967295UL
# endif

# ifdef __USE_ISOC99

/* Minimum and maximum values a `signed long long int' can hold. */
# define LLONG_MAX 9223372036854775807LL
# define LLONG_MIN (-LLONG_MAX - 1LL)

/* Maximum value an `unsigned long long int' can hold. (Minimum is 0.) */
# define ULLONG_MAX 18446744073709551615ULL

# endif /* ISO C99 */

# endif /* limits.h */

#endif /* !_LIBC_LIMITS_H_ */

/* Get the compiler's limits.h, which defines almost all the ISO constants.
We put this #include_next outside the double inclusion check because
it should be possible to include this file more than once and still get
the definitions from gcc's header. */
#if defined __GNUC__ && !defined _GCC_LIMITS_H_

/* The <limits.h> files in some gcc versions don't define LLONG_MIN,
LLONG_MAX, and ULLONG_MAX. Instead only the values gcc defined for
ages are available. */
# ifdef __USE_ISOC99
# ifndef LLONG_MIN
# define LLONG_MIN LONG_LONG_MIN
# endif
# ifndef LLONG_MAX
# define LLONG_MAX LONG_LONG_MAX
# endif
# ifndef ULLONG_MAX
# define ULLONG_MAX ULONG_LONG_MAX
# endif
# endif
#endif

0 comments on commit a0d52a3

Please sign in to comment.