}
#endif
-void
+static void
command_evaluate_to(struct attr *attr, char *expr, struct context *ctx, struct result *res)
{
memset(res, 0, sizeof(*res));
{
struct result res;
struct context ctx;
- char *ret;
+ char *ret=NULL;
command_evaluate_to(attr, expr, &ctx, &res);
if (!ctx.error)
{
struct result res;
struct context ctx;
- int ret;
+ int ret=0;
command_evaluate_to(attr, expr, &ctx, &res);
if (!ctx.error)
gra->meth.draw_mode(gra->priv, draw_mode_end);
}
-void graphics_load_mapset(struct graphics *gra, struct displaylist *displaylist, struct mapset *mapset, struct transformation *trans, struct layout *l, int async, struct callback *cb)
+static void graphics_load_mapset(struct graphics *gra, struct displaylist *displaylist, struct mapset *mapset, struct transformation *trans, struct layout *l, int async, struct callback *cb)
{
int order=transform_get_order(trans);
ret->itm=itm;
if (itm && itm->prev && itm->prev->ways && !(itm->flags & AF_ROUNDABOUT) && (itm->prev->flags & AF_ROUNDABOUT)) {
int len=0;
- int angle;
+ int angle=0;
int entry_angle;
struct navigation_itm *itm2=itm->prev;
int exit_angle=angle_median(itm->prev->angle_end, itm->ways->angle2);
/* TRANSLATORS: right, as in 'Turn right' */
char *dir=_("right"),*strength="";
int distance=itm->dest_length-cmd->itm->dest_length;
- char *d,*ret;
+ char *d,*ret=NULL;
int delta=cmd->delta;
int level;
int strength_needed;
{
struct navigation_command *cur,*prev;
int distance=itm->dest_length-cmd->itm->dest_length;
- int l0_dist,level,dist,i,time;
+ int level, dist, i, time;
int speech_time,time2nav;
char *ret,*old,*buf,*next;
struct item *sitem; /* Holds the corresponding item from the actual map */
struct attr street_item,street_direction;
struct navigation_itm *itm;
- int mode,incr=0,first=1;
+ int mode=0, incr=0, first=1;
if (attr->type != attr_route_status)
return;
return this_->tracking;
}
-void
+static void
navit_draw_async(struct navit *this_, int async)
{
GList *l;
static void
navit_autozoom(struct navit *this_, struct coord *center, int speed, int draw)
{
- struct coord c;
struct point pc;
int distance,w,h;
double new_scale;
}
static struct command_table commands[] = {
- {"zoom_in",navit_cmd_zoom_in},
- {"zoom_out",navit_cmd_zoom_out},
- {"zoom_to_route",navit_cmd_zoom_to_route},
- {"set_center_cursor",navit_cmd_set_center_cursor},
+ {"zoom_in",command_cast(navit_cmd_zoom_in)},
+ {"zoom_out",command_cast(navit_cmd_zoom_out)},
+ {"zoom_to_route",command_cast(navit_cmd_zoom_to_route)},
+ {"set_center_cursor",command_cast(navit_cmd_set_center_cursor)},
};
graphics_overlay_resize(item->gr, &item->p, item->w, item->h, 65535, 1);
}
-void
+static void
osd_std_calculate_sizes(struct osd_item *item, struct osd_priv *priv, int w, int h)
{
struct attr vehicle_attr;
#include <string.h>
#include "debug.h"
#include "item.h"
+#include "roadprofile.h"
#include "vehicleprofile.h"
-void
+static void
vehicleprofile_set_attr_do(struct vehicleprofile *this_, struct attr *attr)
{
dbg(1,"%s:%d\n", attr_to_name(attr->type), attr->u.num);
struct attr item_types_attr;
switch (attr->type) {
case attr_roadprofile:
- if (roadprofile_get_attr(attr->u.roadprofile, attr_item_types, &item_types_attr)) {
+ if (roadprofile_get_attr(attr->u.roadprofile, attr_item_types, &item_types_attr, NULL)) {
enum item_type *types=item_types_attr.u.item_types;
while (*types != type_none) {
g_hash_table_insert(this_->roadprofile_hash, (void *)(long)(*types), attr->u.roadprofile);