[SCM] Gerris Flow Solver branch, upstream, updated. b3aa46814a06c9cb2912790b23916ffb44f1f203

Stephane Popinet s.popinet at niwa.co.nz
Fri May 15 02:51:58 UTC 2009


The following commit has been merged in the upstream branch:
commit 5f65524f11f4cd39b0690c305b7561f08ea93e11
Author: Stephane Popinet <s.popinet at niwa.co.nz>
Date:   Mon Jun 13 15:27:32 2005 +1000

    Numbers are allowed in identifiers of macros and variables
    
    darcs-hash:20050613052732-fbd8f-e0b42425263ea6dd189a45e675fccca09c351314.gz

diff --git a/src/utils.c b/src/utils.c
index 98c6f1e..a7e3559 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -255,7 +255,7 @@ static gint compile (GtsFile * fp, GfsFunction * f, const gchar * finname)
 static gchar * find_identifier (const gchar * s, const gchar * i)
 {
   gchar * f = strstr (s, i);
-  static gchar allowed[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_";
+  static gchar allowed[] = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_1234567890";
 
   if (!f || gfs_char_in_string (f[strlen(i)], allowed) ||
       (f > s && gfs_char_in_string (f[-1], allowed)))

-- 
Gerris Flow Solver



More information about the debian-science-commits mailing list