]> oss.titaniummirror.com Git - nesc.git/blobdiff - src/machine/env_machine.c
Pristine nesc-1.3.2
[nesc.git] / src / machine / env_machine.c
index 529840b6e5e76f19635760dececdb4332827cd91..865ae65feb53bb24e1ff538e6ca25bf7363de6c6 100644 (file)
@@ -15,7 +15,7 @@ along with nesC; see the file COPYING.  If not, write to
 the Free Software Foundation, 59 Temple Place - Suite 330,
 Boston, MA 02111-1307, USA.  */
 
-//$Id: env_machine.c,v 1.10 2008/06/03 21:20:22 idgay Exp $
+//$Id: env_machine.c,v 1.11 2010/04/21 20:05:52 idgay Exp $
 //@author Cory Sharp <cssharp@eecs.berkeley.edu>
 
 /* Basic pointer sizes and alignments for a machine set in the environment
@@ -49,6 +49,7 @@ static machine_spec env_machine = {
   1, 1, 1, 1,          /* int1248_align */
   2, 2,                        /* wchar_size_size */
   TRUE, TRUE,          /* char_wchar_signed */
+  NULL,                        /* no attribute for async functions */
 
   NULL,                                /* adjust_field_align */
 
@@ -260,6 +261,15 @@ static bool scan_env_machine(machine_spec * machine, const char *envname)
              n_errors++;
            }
        }
+      else if (is_literali(name = "async_functions", begin, equal))
+       {
+         int l = space - value;
+         char *s = rstralloc(permanent, l + 1);
+
+         memcpy(s, value, l);
+         s[l] = '\0';
+         machine->async_functions_atribute = s;
+       }
       else
        {
          int i = 0;