/[avr-libc]/avr-libc/xml/Atmel2libc.py
ViewVC logotype

Diff of /avr-libc/xml/Atmel2libc.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.9 by joerg_wunsch, Fri Oct 21 20:55:19 2005 UTC revision 1.10 by joerg_wunsch, Sun Oct 30 22:09:22 2005 UTC
# Line 1  Line 1 
1  #! /usr/bin/env python  #! /usr/bin/env python
2  #  #
3  # Copyright (c) 2004  Theodore A. Roth  # Copyright (c) 2004,2005  Theodore A. Roth
4  # All rights reserved.  # All rights reserved.
5  #  #
6  # Redistribution and use in source and binary forms, with or without  # Redistribution and use in source and binary forms, with or without
# Line 280  def dump_vectors (root, tradnames): Line 280  def dump_vectors (root, tradnames):
280              n += 1              n += 1
281              continue              continue
282          try:          try:
283              name = re.sub('[/,-]', '', v[1].upper())              name = re.sub('[/-]', '', v[1].upper())
284                name = re.sub(',', ' ', name)
285              name = re.sub(r'\s+', '_', name)              name = re.sub(r'\s+', '_', name)
286              if re.match('^[A-Z0-9_]+$', name):              if re.match('^[A-Z0-9_]+$', name):
287                  pass                  pass

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26