Go to advanced search

by Pancho88
Thu Jul 18, 2019 5:31 pm
Forum: Other programming languages
Topic: WSD is on Google Drive
Replies: 6
Views: 162

Re: WSD is on Google Drive

Here we go again.

WSD is in "Yet Another Programming Language" topic.
First post on Nov 2018
https://www.raspberrypi.org/forums/view ... d#p1388126

There are NO binaries executables, only C source code for those executables
in the Execs directory.

Bye
by Pancho88
Sun Jul 14, 2019 6:54 pm
Forum: Other programming languages
Topic: WSD is on Google Drive
Replies: 6
Views: 162

Re: WSD is on Google Drive

Andyroo
Thanks for your comments.

WSD is a very simple project. Basically just known in Rpi.

Seems like GitHub is for more complex projects.

Bye
by Pancho88
Sun Jul 14, 2019 5:56 pm
Forum: Other programming languages
Topic: WSD is on Google Drive
Replies: 6
Views: 162

WSD is on Google Drive

Hello On Feb 16 2019 i posted in the rpi forums a link to Google Drive, where you could get all the C source code to WSD. For some strange reason it was removed from the forums. Any way here is the link to google drive. https://drive.google.com/open?id=1GcjofvXgsfd00tq2bgnqtQlJL6o_9L8M There are 3 d...
by Pancho88
Sun Jul 07, 2019 9:55 pm
Forum: Other programming languages
Topic: Yet Another Programming Language
Replies: 9
Views: 3132

Re: Yet Another Programming Language

Hello Here is the fix to the dos/linux format problem. It is very simple, but was a little hard to see. if (ch=='"') { //QUOTED STRING n=0; while (1) { ch=MyProg[++ProgPtr]; if (ch=='\n') break; if (ch=='"') { ch=MyProg[ProgPtr + 1]; if (ch=='"') { Token[n]=ch; ProgPtr++; } else { ch=' '; //Here is ...
by Pancho88
Sun Jun 30, 2019 10:27 pm
Forum: Other programming languages
Topic: Yet Another Programming Language
Replies: 9
Views: 3132

Re: Yet Another Programming Language

Hello I transferred all files to Rpi from a windows machine. That is why i did not see the dos/linux format problem. There is a bug in handling "Double Quotes" with the linux version. This bug was well hidden, but i am working on it. The compiler must work with either format. Pearyn Thank you so muc...
by Pancho88
Sat Jun 29, 2019 12:23 am
Forum: Other programming languages
Topic: Yet Another Programming Language
Replies: 9
Views: 3132

Re: Yet Another Programming Language

Hello

Thanks paerin
I will check and make the changes needed.

Bye
by Pancho88
Fri Jun 28, 2019 10:16 pm
Forum: Other programming languages
Topic: Yet Another Programming Language
Replies: 9
Views: 3132

Re: Yet Another Programming Language

Hello On Feb 16 2019 i posted in the rpi forums a link to Google Drive, where you could get all the C source code to WSD. For some strange reason it was removed from the forums. Still, if i go to google search i can see that post is in the forums, but when i click to see it, i get a message informin...
by Pancho88
Fri Jun 28, 2019 9:17 pm
Forum: Other programming languages
Topic: WSD on hardware
Replies: 24
Views: 1192

Re: WSD on hardware

Hello Looks like i touched a raw nerve in the Basic body with this post. I thought you all knew about this simple but efficient scripting language. First post on Nov 2018 https://www.raspberrypi.org/forums/viewtopic.php?f=34&t=226235&p=1388126&hilit=wsd#p1388126 Since you did not know, you could hav...
by Pancho88
Wed Jun 26, 2019 7:13 pm
Forum: Other programming languages
Topic: WSD on hardware
Replies: 24
Views: 1192

WSD on hardware

Hello everyone So far WSD has been tested in Rpi software only. I have no experience building circuits, but I got the Edukit#2(sensors) to test WSD and xpigpio library(so) with hardware. All Edukit Woksheets come with Python code, my objective is to use WSD. Edukit 2 worksheet 2. I had a hard time t...
by Pancho88
Mon Apr 01, 2019 11:06 pm
Forum: C/C++
Topic: ATEXIT behavior
Replies: 17
Views: 2335

Re: ATEXIT behavior

Hello LDB Will you please post a section of the executable code where the DLL is unloaded and a section of the DLL code where the 'atexit' function is installed. I have built many, many executables, dynamic libraries with the Tiny C compiler with no problem. I have in my computer the Watcom C compil...
by Pancho88
Sun Mar 31, 2019 7:47 pm
Forum: C/C++
Topic: ATEXIT behavior
Replies: 17
Views: 2335

Re: ATEXIT behavior

Hello everyone. Heater That is so cute. Hey, thanks for your eye opener! Ok, I think I got to understand this problem. Why it works in linux but not in Windows. It is Not atexit bevavior. It is the difference between FreeLibrary, and dlclose. FreeLibrary Is part of Windows OS "KERNEL32.DLL", dlclose...
by Pancho88
Sat Mar 30, 2019 11:06 pm
Forum: C/C++
Topic: ATEXIT behavior
Replies: 17
Views: 2335

Re: ATEXIT behavior

Hello

I would expect "atexit" to behave the same in linux, and windows.

Atexit is in C lang, which is supposed to be very portable.

Since that is not the case, to me that is not OK.

Bye
by Pancho88
Sat Mar 30, 2019 6:53 pm
Forum: C/C++
Topic: ATEXIT behavior
Replies: 17
Views: 2335

Re: ATEXIT behavior

Hello JOJOPI Putting a sleep() between dlclose() and exit(), this is indeed what is happening. Paeryn Still, it is implementation defined so just because it works on modern Linux with glibc doesn't mean it won't break on another system. That is why it may work in linux, but not in Windows. So we hav...
by Pancho88
Sat Mar 30, 2019 12:33 am
Forum: C/C++
Topic: ATEXIT behavior
Replies: 17
Views: 2335

Re: ATEXIT behavior

Hello The executable is compiled "gcc xyz.c -o xyz -ldl" in linux, "tcc xyz.c" with tiny c in windows. The SO/DLL is compiled "gcc -shared zyx.c -o libzyx.so", "tcc -shared zyx.c" in windows. Executable loads zyx //linux hndl=dlopen("libzyx.so", RTLD_NOW); proc=dlsym(hndl, "run"); //windows hndl=Loa...
by Pancho88
Fri Mar 29, 2019 9:47 pm
Forum: C/C++
Topic: ATEXIT behavior
Replies: 17
Views: 2335

Re: ATEXIT behavior

I thought the problem was stated clearly. But anyway //SO/DLL void t1(){ printf("exiting!!!\n"); } static int iflag; //DLL_EXPORT char * _run(char *proc, int *e, int argn, char **argz) { char * run(char *proc, int *e, int argn, char **argz) { if (iflag==0) {iflag=1; atexit(t1);} //Executable int mai...
by Pancho88
Fri Mar 29, 2019 6:36 pm
Forum: C/C++
Topic: ATEXIT behavior
Replies: 17
Views: 2335

ATEXIT behavior

Hello everyone I am testing a small, simple so/dll library. It has an 'atexit' function calling another function that prints 'exiting'. The executable that loads the library, just before ending unloads the os/dll. In Rpi/stretch it prints 'exiting', looks like linux defers, delays removing it from m...
by Pancho88
Mon Jan 07, 2019 10:22 pm
Forum: Other programming languages
Topic: WSD scripts a modified pigpio library
Replies: 2
Views: 1314

Re: WSD scripts a modified pigpio library

Hello everyone Here is a conversion of a C program freq_count_1.c to a WSD script freqcnt1.sd c$=chr(10) import xmath if err then print errmsg & c$ : end import xpigpio if err then print errmsg & c$ : end OPT_P_MIN=1 OPT_P_MAX=1000 OPT_P_DEF=20 OPT_R_MIN=1 OPT_R_MAX=300 OPT_R_DEF=10 OPT_S_MIN=1 OPT_...
by Pancho88
Thu Dec 27, 2018 6:31 pm
Forum: Other programming languages
Topic: WSD scripts a modified pigpio library
Replies: 2
Views: 1314

Re: WSD scripts a modified pigpio library

Hello everyone Three more commands have been added to a modified pigpio library. xpigpio.do(CMD_SAF, gpio) 'CMD_SAF=117 gpioSetAlertFunc xpigpio.do(CMD_ISR, gpio, ...) 'CMD_ISR=118 gpioSetISRFunc xpigpio.do(CMD_STF, gpio, xid, xmillis) 'CMD_STF=119 gpioSetTimerFunc Unable to test the first 2 functio...
by Pancho88
Mon Dec 17, 2018 3:27 pm
Forum: Other programming languages
Topic: WSD scripts a modified pigpio library
Replies: 2
Views: 1314

WSD scripts a modified pigpio library

Hello everyone. Refer to Other Programmimg Languages sub-forum, topic Yet Another Programming Language Nov 4, 2018, for more information on WSD. There are two programming efforts. One is to build the Dynamic Libraries. Two is to script those libraries. I modified the pigpio library into a "Lite" sha...
by Pancho88
Mon Nov 05, 2018 4:40 pm
Forum: Other programming languages
Topic: Yet Another Programming Language
Replies: 9
Views: 3132

Re: Yet Another Programming Language

Yes.

It was originally built and tested in Windows, then ported to Android, and now to RPI zerow stretch lite.

It is basically the same for all platforms. Its difference is "dlopen vs Loadlibrary".

Its compiled byte code runs with no change in Windows, Android, and RPI.

Bye
by Pancho88
Sun Nov 04, 2018 8:56 pm
Forum: Other programming languages
Topic: Yet Another Programming Language
Replies: 9
Views: 3132

Yet Another Programming Language

Hello everyone. I have a little experience with electronics/rpi linux, but have much experience programming computers. Browsing the RosettaCode site, i found over 190 programming languages. So i decided to write one more, WSD(Scripting Dynamics). WSD is written in Ansi C. It was built and tested in ...
by Pancho88
Wed Feb 21, 2018 5:10 pm
Forum: Beginners
Topic: sdcard for headless setup
Replies: 2
Views: 400

sdcard for headless setup

Hello everyone. I recently purchased a raspberry pi zeroW, and a 4 Gbytes sdcard loaded with Raspbian(Stretch Lite). By trying a headless setup, I need to copy an empty SSH file, and wpa_supplicant.conf to the sdcard. The problem is my Windows computer sdcard reader is not working. As an alternative...

Go to advanced search