diff options
author | joerg <joerg@pkgsrc.org> | 2012-05-04 16:03:13 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2012-05-04 16:03:13 +0000 |
commit | ecd504706896b450f21ec8e5241b405f85e32846 (patch) | |
tree | b5ab3dbf5ff13b18d1f5e2c8536ee483352aee0b /cad/adms/patches | |
parent | fcc134184c66c132045a47a2bb16e08785e9dcfd (diff) | |
download | pkgsrc-ecd504706896b450f21ec8e5241b405f85e32846.tar.gz |
Don't depend on GNU inline semantic.
Diffstat (limited to 'cad/adms/patches')
-rw-r--r-- | cad/adms/patches/patch-admsVeriloga_verilogaLex.l | 30 | ||||
-rw-r--r-- | cad/adms/patches/patch-admsXml_admsXml.c | 13 |
2 files changed, 43 insertions, 0 deletions
diff --git a/cad/adms/patches/patch-admsVeriloga_verilogaLex.l b/cad/adms/patches/patch-admsVeriloga_verilogaLex.l new file mode 100644 index 00000000000..b5b754b6bc9 --- /dev/null +++ b/cad/adms/patches/patch-admsVeriloga_verilogaLex.l @@ -0,0 +1,30 @@ +$NetBSD: patch-admsVeriloga_verilogaLex.l,v 1.1 2012/05/04 16:03:13 joerg Exp $ + +--- admsVeriloga/verilogaLex.l.orig 2012-04-28 21:40:07.000000000 +0000 ++++ admsVeriloga/verilogaLex.l +@@ -33,14 +33,14 @@ void adms_veriloga_error (const char *s) + adms_message_fatal(("%s: during lexical analysis %s at line %i -- see '%s'\n", + adms_admsmain_valueof_filename(adms_global_admsmain())->_value,s,adms_admsmain_valueof_curline(adms_global_admsmain ()),adms_veriloga_text)) + } +-inline void POS_UPDATE(const int myyyleng,const char*myyytext) ++static inline void POS_UPDATE(const int myyyleng,const char*myyytext) + { + int fpos=adms_admsmain_valueof_fpos(adms_global_admsmain()); + adms_message_dbg_vla(("%s:%i:%i-%i read token '%s'\n",adms_admsmain_valueof_filename(adms_global_admsmain())->_value, + adms_admsmain_valueof_curline(adms_global_admsmain()),fpos+1,fpos+myyyleng,myyytext)) + adms_admsmain_valueto_fpos(adms_global_admsmain(),fpos+myyyleng); + } +-inline void TKRETURN(const char*myyytext, const int myyyleng) ++static inline void TKRETURN(const char*myyytext, const int myyyleng) + { + POS_UPDATE(myyyleng,myyytext); + adms_veriloga_lval._lexval=adms_lexval_new( +@@ -50,7 +50,7 @@ inline void TKRETURN(const char*myyytext + adms_admsmain_valueof_fpos(adms_global_admsmain()) + ); + } +-inline void TKSTRIPPEDRETURN(const char*myyytext, const int myyyleng) ++static inline void TKSTRIPPEDRETURN(const char*myyytext, const int myyyleng) + { + char*mystrippedstring; + int mynewlen=strlen(myyytext)-2; diff --git a/cad/adms/patches/patch-admsXml_admsXml.c b/cad/adms/patches/patch-admsXml_admsXml.c new file mode 100644 index 00000000000..6bf90646885 --- /dev/null +++ b/cad/adms/patches/patch-admsXml_admsXml.c @@ -0,0 +1,13 @@ +$NetBSD: patch-admsXml_admsXml.c,v 1.1 2012/05/04 16:03:13 joerg Exp $ + +--- admsXml/admsXml.c.orig 2012-04-28 21:39:15.000000000 +0000 ++++ admsXml/admsXml.c +@@ -254,6 +254,8 @@ + #include <admsObject/admsC.h> + #include <time.h> + ++#define inline static inline ++ + static int adms_donouse_xml_implicit_file=0; + + static p_admsttransform adms_admstpath_admsttransform(p_admsttransform myadmsttransform,const char*myname) |