News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.

Post Reply  Post Thread 
Fluid Syntax Analysis Hack
Author Message

Posts: 231
Group: Moderators
Joined: Apr 2007
Status: Offline
Reputation: 0
Post: #1
Fluid Syntax Analysis Hack

When making code blocks in Fluid it complains about curly braces and quotation marks.
Even if they are in lua comments or legal lua commands.

Tobi did a quick and dirty hack to prevent it from doing so.
Here's how its done.

In your fltk/fluid directory
is a file called Fl_Function_Type.cxx
search for this:

const char *c_check(

replace this function

const char *c_check(const char *c, int type) {
  return 0;//Hack by Tobias Opfermann, disables Fluid syntax analysis to enable use of other languages in the code blocks.
  //return _c_check(c,type);

then to rebuild

cd <fltk folder>
make clean
./configure --enable-xft

02-26-2008 09:55 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply  Post Thread 

Messages In This Thread
Fluid Syntax Analysis Hack - iGame3D - 02-26-2008 09:55 AM

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: