[ts-gen] setting up mysql and editing data.c and once.c in shim/src directory

Justin justins at ftml.net
Sat Jan 10 22:35:18 EST 2009


I've run into a bit of a problem with understanding how I'm to add the
lines below in 
the two files mentions. I'm a basic gnu/linux user and do not understand
the code
in the two files mentioned below.  I did some looking around at some
examples
of code from C++ and Ruby and it seems to me to be C++ code. What I need
to no
is how to properly introduce the lines below, I'm assuming I have to
place the code in
the file with some understanding of the structure. Alot of files I edit
are simple one 
liners, you just pop your modifications on a given line with a referance
name to your 
new instructions, and the program looks in the file for these values. I
know I'm talking 
caveman here, it's all I know at this time, I've been trying to learn C
in my spare time 
but only make slow progress, in slow I mean really slow. Anyhow, I've
got my whole 
life to figure these langauges out. Here's the link to the mysql setup,
I've pulled the 
section that shows the two files and the lines that should be in there
after they are 
properly modified.


http://www.trading-shim.org/faq/?database-setup

When the edits are done, they might look like this:

[herrold at couch src]$ pwd
/home/herrold/shim/shim-070202/src
[herrold at couch src]$ grep -A2 '7496' once.c
    : tws_port(7496),
      tws_host("127.0.0.1"),
      channels(c.mode.streams(p, c, f, self)),
[herrold at couch src]$ grep -A3 'localhost' data.c
  HostName("localhost"),    /* patch */ /* server host  
  (default:localhost ) */
  UserName("shim"),         /* patch */ /* username      (default:login
  name) */
  DbmsName("testing"),      /* patch */ /* database name         (no
  default) */
  PassWord(""),             /* patch */ /* password              (no
  default) */
[herrold at couch src]$             

I'm sure that this could be one of those really simple things that a
simple minded peon
such as my self might be stumped on, but honestly I don't see how to do
this without
spending hours maybe days learning basic C++ code, that is to say if I'm
right about 
it being C++ code.

Justin
-- 
  Justin
  justins at ftml.net

-- 
http://www.fastmail.fm - Choose from over 50 domains or use your own



More information about the ts-general mailing list