struct file *
file_create(char *name, struct attr **options)
{
- struct stat stat;
struct file *file= g_new0(struct file,1);
struct attr *attr;
int open_flags=O_LARGEFILE|O_BINARY;
while(itemgra) {
GList *types=((struct itemgra *)itemgra->data)->type;
while(types) {
- if((int)types->data==type) {
+ if((long)types->data==type) {
GList *element=((struct itemgra *)itemgra->data)->elements;
while(element) {
struct element * el=element->data;
struct fibheap* fh = fh_makekeyheap();
int cnt = 0;
struct table_data *td;
- int width=wm->w;
-
-
+
if(data) {
param = data;
} else {
static GList *
process_boundaries_finish(GList *boundaries_list)
{
- GList *l,*sl,*l2,*ln;
+ GList *l,*sl;
GList *ret=NULL;
l=boundaries_list;
while (l) {
l=boundaries_list;
while (l) {
struct boundary *boundary=l->data;
+ GList *l2,*ln;
ln=l2=g_list_next(l);
while (l2) {
struct boundary *boundary2=l2->data;
}
return rv;
+#if IS_LITTLE_ENDIAN
no_packing_needed:
buffer->append (buffer, rv, array);
return rv;
+#endif
}
static size_t
gpointer value;
assert(ctx->string_hash != NULL);
if (g_hash_table_lookup_extended(ctx->string_hash, str, NULL, &value)) {
- return (int)value;
+ return (long)value;
}
if (!st->n_s) {
st->n_s++;
navit_cmd_spawn(struct navit *this, char *function, struct attr **in, struct attr ***out, int *valid)
{
int i,j, nparms, nvalid;
- const char ** argv=NULL;
+ char ** argv=NULL;
struct spawn_process_info *pi;
nparms=0;
struct osd *
osd_new(struct attr *parent, struct attr **attrs)
{
- struct attr *attr;
struct osd *o;
struct osd_priv *(*new)(struct navit *nav, struct osd_methods *meth, struct attr **attrs);
struct attr *type=attr_search(attrs, NULL, attr_type);
int route_get_destinations(struct route *this_, struct pcoord *pc, int count);
int route_get_destination_count(struct route *this_);
void route_set_destination(struct route *this_, struct pcoord *dst, int async);
+void route_append_destination(struct route *this_, struct pcoord *dst, int async);
void route_remove_nth_waypoint(struct route *this_, int n);
void route_remove_waypoint(struct route *this_);
char* route_get_destination_description(struct route *this_, int n);