Changeset 541

Show
Ignore:
Timestamp:
10/14/07 14:53:49 (1 year ago)
Author:
goodea
Message:

Change iprintf stuff to also include iscanf

Some scanf uses vnprintf, not vniprintf. We should be
using all integer anyway, so this completes it for a lot
of stdio.

Now instead of IPRINTF=1, it's INTEGER_STDIO=1. Default
is 1.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/hal/lpc2106-cmucam3/defs.mk

    r540 r541  
    3838 
    3939 
    40 # set iprintf as default (can be overriden by IPRINTF=0) 
    41 IPRINTF := 1 
    42 ifeq ($(strip $(IPRINTF)),1) 
    43   IPRINTF_FLAGS := -Dprintf=iprintf \ 
    44         $(foreach pp,as f s sn vas vf v vsn,-D$(pp)printf=$(pp)iprintf) 
     40# set iprintf and iscanf as default (can be overriden by INTEGER_STDIO=0) 
     41INTEGER_STDIO := 1 
     42ifeq ($(strip $(INTEGER_STDIO)),1) 
     43  INTEGER_STDIO_FLAGS := \ 
     44        -Dprintf=iprintf \ 
     45        $(foreach pp,as f s sn vas vf v vsn,-D$(pp)printf=$(pp)iprintf) \ 
     46        -Dscanf=iscanf \ 
     47        $(foreach pp,f s vf v vs,-D$(pp)scanf=$(pp)iscanf) 
    4548endif 
    4649 
     
    5558        -ffreestanding -std=gnu99 -g -fdata-sections -ffunction-sections \ 
    5659        -mcpu=arm7tdmi-s -fno-exceptions \ 
    57         -msoft-float -mthumb-interwork $(IPRINTF_FLAGS) 
     60        -msoft-float -mthumb-interwork $(INTEGER_STDIO_FLAGS) 
    5861 
    5962override LDFLAGS+=-lm -T$(HALDIR)/lpc2106-rom.ln \