GithubHelp home page GithubHelp logo

herrold / tool-tips Goto Github PK

View Code? Open in Web Editor NEW
2.0 4.0 6.0 254 KB

FLOSS licensed collection of utility scripts from tips, cAos, LSB, and more

Home Page: http://www.owlriver.com/tips/

Shell 79.36% Perl 3.97% PHP 0.84% Python 15.84%

tool-tips's Introduction

tool-tips's People

Contributors

herrold avatar mwichmann avatar trothr avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tool-tips's Issues

improve splitter regular expression

In lsb/fix_header_struct.py, the pattern used to split a struct member is now:

struct_mem = re.search(r'(.+)\s+([\w*]+)', line.strip(), re.S)

meaning match group element 1 is the member type and element 2 is the member name. However, it "gets it wrong" for pointer types:

GdkWindow|*window

be nice to adjust the splitting so it comes out like

GdkWindow *|window

RFE: add cacheing

add a periodic SRPM cache to consult

probably use find and time based ageing

function pointer parser

Once we recognize that a struct member is a function pointer, it would be nice to
be able to break apart the string so we can make use of it. Given that we have
split a line into a pair as in this example:

type: void
name: (* value_changed) (GtkScaleButton *button, gdouble value)

We want to break the "name" string into:

  • name entry in TypeMember: value_changed
  • Type for this fptr: (*) (GtkScaleButton *, gdouble)
  • members of fptr type: GtkScaleButton *button, gdouble value
    which for looking up the type first and then adding the field, need to
    be further broken into type/name correctly.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.