LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Blogs > rainbowsally
User Name
Password

Notices

Uncategorized Entries with no category
Old

Example: sig-handler funcs for C and C++ (throw-catch) PART 1

Posted 05-13-2012 at 11:22 PM by rainbowsally

Today's Features
  • THROW-CATCH in C
  • Translating signals to C++ throw-catch parameters.

To compile the C++ example these vars are set in mc2.def and should be similar for other methods of building it.
Code:
COMPILE = g++ -m32 -c -o # COMPILE <output_file> ...
CFLAGS = -Wall -g3 --save-temps
# or CFLAGS = -Wall -O2 # optimized
INCLUDE = -I $(SRCDIR) -I$(PREFIX)/include 

LINK = g++ -m32 -o # LINK <output_file> ...
LDFLAGS = #
...
Member
Posted in Uncategorized
Views 1023 Comments 0 rainbowsally is offline
Old

Misadventures In Computer Mad Science

Posted 05-11-2012 at 06:25 AM by rainbowsally
Updated 05-11-2012 at 06:29 AM by rainbowsally

Misadventures In Computer Mad Science

A friend of mine once told me that I'm the worst programmer he knew. And that's probably right. What do you expect from someone who's first programming love was Forth (ZX-81 and Co-Co).

So I always encourage folks to see what is going on and perhaps rework or clean up my messes if they can see a better way to do things.

Features:
  • Half a paragraph from the GPL v.3

See highlights near the bottom if you're...
Member
Posted in Uncategorized
Views 346 Comments 0 rainbowsally is offline
Old

Handle segmentation faults in try-catch block

Posted 05-06-2012 at 12:52 AM by rainbowsally
Updated 05-06-2012 at 05:19 AM by rainbowsally (updated code for 32 and also 64 bit arch)

[CHANGELOG:
May 6, 2012 (second edit)
Latest:
Tested 64 bit code (and also 32), corrected close brace in function that got lost in the #if-#else-#endif mixup (with extern "C" close brace)... nevermind. It works now.

Features:
  • catch segmentation faults and continue normally

Don't underestimate this concept. We'll be using it in the GUI-Interactive interpreter.

This is a highly simplified version of the SEH for linux experiment posted...
Member
Posted in Uncategorized
Views 1236 Comments 0 rainbowsally is offline
Old

GUI-Interactive: Display a list of QT4 classes

Posted 05-05-2012 at 04:51 AM by rainbowsally
Updated 05-05-2012 at 05:00 AM by rainbowsally

Today's features:
  • A stand alone executable to list all of QT4's classes.
  • A first function for an interactive interpreter for QT funcs and classes
  • Another simple but interesting parse job.

Requres:
  • the libLQ download (or your own work-alike hack)

http://www.linuxquestions.org/questi...eration-34648/

We are delving into QT's system for reasons explained in earlier blog entries. When I tried early...
Member
Posted in Uncategorized
Views 367 Comments 0 rainbowsally is offline
Old

GUI Interacitve

Posted 05-04-2012 at 11:06 AM by rainbowsally

This will be a new subtheme under the GUI Programming topic.

No examples or experiments yet, let's just talk about the how's and why's of doing this.

It's time to start thinking about an interactive layer to communicate with the GUI system. This implies an interpreter, which runs in a loop grabbing commands and executing them (if the syntax is correct) and is really not much different from a bytecode compiler which runs an execution loop to do the same, so we can do...
Member
Posted in Uncategorized
Views 240 Comments 0 rainbowsally is offline

  



All times are GMT -5. The time now is 10:50 AM.

Main Menu

My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration