avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] [RFC] catching misspeeled signal names


From: Theodore A. Roth
Subject: Re: [avr-libc-dev] [RFC] catching misspeeled signal names
Date: Wed, 21 Apr 2004 11:28:13 -0700 (PDT)

Once again, I forgot to attach the patch in the previous reply. :-(

On Wed, 21 Apr 2004, Dmitry K. wrote:

> Hi.
>
> Next items are working with `avr-libc-misspeeled-sig-2.diff':
>   - SIGNAL(SIG_INTERRUPT0) in C and asm, OK
>   - SIGNAL(SIG_MISSED) produced error in C and asm, OK
>
> But after this patch:
>   1. It is necessary to rewrite asm
>   2. It is impossible to call ISR-function as common C function.
>
> I propose next scheme, that is removing last disadvantages:
>
>   SIGNAL(SIG_INTERRUPT0)
>   ==>  SIG_INTERRUPT0 ## _TMP()     // signal.h
>   ==>  __vector_1 ## _TMP()         // signal.h
>   ==>  __vector_1_TMP()             // signal.h
>   ==>  __vector_1                   // vec_tmp.h
>
> Now:
>   SIGNAL(): with spelling cheking (C and asm)
>   SIG_XXX:  for direct substitution (old asm and function names)
>
> Files:
>   signal.h  - changed
>   vec_tmp.h - added (builded from `vec_tmp.sh')
>
> Notes:
>   - it is possible to add asm macro (.globl, .type ...)
>   as in `avr-...-2.diff'
>   - it is necessary to add comments and strings, as "-> Missp..."
>
> Attached contains files above and examples.
>
> Best regards.
>

---
Ted Roth
PGP Key ID: 0x18F846E9
Jabber ID: address@hidden

Attachment: avr-libc-misspeeled-sig-4.diff
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]