Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.sys.sinclair > #3911
| From | "dott.Piergiorgio" <dott.piergiorgio@gmail.com> |
|---|---|
| Newsgroups | comp.sys.sinclair |
| Subject | Re: [Zx Spectrum] "DEF FN" Basic token problem... |
| Date | 2015-08-20 07:31 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <mr3oke$i3f$1@dont-email.me> (permalink) |
| References | <55d4af3c$0$3066$426a74cc@news.free.fr> |
Il 19/08/2015 18:30, Gzavsnap ha scritto: > Hi, > I had to debug the "Zmakebas" coded by Russell Marks. > > C# Res available inclued in "Les Schroumpfs" Hebdogiciel#62-63: > ZmakeBas upadted to 1.1c : > <http://www.hebdogiciel.fr/hd-roms/spectrum/Schroumpfs.zip> > > Problem: > The "DEF FN" function seem corrupt. > > example: > > 10 DEF FN M(X,Y)=X-INT (X/Y)*Y on a 64b Linux box, gcc vomits some score of warning, all of the same type: > zmakebas.c: In function ‘parse_options’: > zmakebas.c:419:18: warning: pointer targets in passing argument 1 of ‘strcpy’ differ in signedness [-Wpointer-sign] > strcpy(startlabel,optarg+1); > ^ > In file included from /usr/include/features.h:364:0, > from /usr/include/stdio.h:27, > from zmakebas.c:11: > /usr/include/x86_64-linux-gnu/bits/string3.h:108:1: note: expected ‘char * __restrict__’ but argument is of type ‘unsigned char *’ > __NTH (strcpy (char *__restrict __dest, const char *__restrict __src)) > ^ > In file included from /usr/include/string.h:634:0, > from zmakebas.c:12: > zmakebas.c: In function ‘grok_block’: > zmakebas.c:504:14: warning: pointer targets in passing argument 1 of ‘strlen’ differ in signedness [-Wpointer-sign] > if(strncmp(ptr+1,*lptr,2)==0) > ^ > In file included from zmakebas.c:12:0: > /usr/include/string.h:398:15: note: expected ‘const char *’ but argument is of type ‘unsigned char *’ > extern size_t strlen (const char *__s) Dunno if you use winsozz or Linux, but I suspect is linked to your reported bug, if I have enough time, I'll try to trudge into the source, but no promises (Southern Italy's summer heat sap hack energy...) Best regards from Italy, dott. Piergiorgio.
Back to comp.sys.sinclair | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[Zx Spectrum] "DEF FN" Basic token problem... Gzavsnap <**..NOSPAM..**@nospam.somewere> - 2015-08-19 18:30 +0200
Re: [Zx Spectrum] "DEF FN" Basic token problem... "dott.Piergiorgio" <dott.piergiorgio@gmail.com> - 2015-08-20 07:31 +0200
Re: [Zx Spectrum] "DEF FN" Basic token problem... Gzavsnap <**..NOSPAM..**@nospam.somewere> - 2015-08-20 13:40 +0200
Re: [Zx Spectrum] "DEF FN" Basic token problem... Gzavsnap <**..NOSPAM..**@nospam.somewere> - 2015-08-20 23:58 +0200
Re: [Zx Spectrum] "DEF FN" Basic token problem... Gzavsnap <**..NOSPAM..**@nospam.somewere> - 2015-08-21 05:11 +0200
Re: [Zx Spectrum] "DEF FN" Basic token problem... Gzavsnap <**..NOSPAM..**@nospam.somewere> - 2015-08-21 06:36 +0200
Re: [Zx Spectrum] "DEF FN" Basic token problem... Gzavsnap <**..NOSPAM..**@nospam.somewere> - 2015-08-21 06:42 +0200
Re: [Zx Spectrum] "DEF FN" Basic token problem... Gzavsnap <**..NOSPAM..**@nospam.somewere> - 2015-09-02 06:21 +0200
Re: [Zx Spectrum] "DEF FN" Basic token problem... Marcos Cruz <use_the_contact_page@programandala.net> - 2015-10-24 18:32 +0000
Re: [Zx Spectrum] "DEF FN" Basic token problem... Gzavsnap <**..NOSPAM..**@nospam.somewere> - 2015-10-24 23:27 +0200
csiph-web